.ChartViewer {
    min-width: 5em;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    display: flex;
}

.ChartViewer_canvas {
    margin: 0;
    width: 100%;
    height: 100%;
}

.ChartViewer_legend {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.ChartViewer_legend_bar {
    background: #ccc;
    border-radius: 5px 5px 0 0;
    border: solid 1px black;
    border-bottom: none;
    padding: 2px 0 2px 5px;
}

.ChartViewer_legend_bar > i {
    float: right;
}

.ChartViewer_legend_bar > span {
    font-size: 75%;
}

.ChartViewer_legend_content {
    border-radius: 0 0 5px 5px;
    border: solid 1px black;
    background: white;
}

.ChartViewer_legend_content {
    display: table;
    padding: 5px;
    margin: 0px;
}

.ChartViewer_legend_content li {
    list-style: none;
    display: table-row;
}

.ChartViewer_legend_content li > * {
    display: table-cell;
}

.ChartViewer_legend_content li > span {
    min-width: 100px;
    text-align: right;
}

.ChartViewer_legend_button {
    border-radius: 10px;
    width: 20px;
    height: 20px;
    background: #ccc;
    border: solid 1px black;
}
.ChartViewer_legend_button i {
    top: 2px;
    position: relative;
}
