<div class="chart-container" id="chart-id-1"></div>
<div class="chart-container" id="{{id}}"></div>
{
"id": "chart-id-1"
}
/**
* Chart container
*/
@media screen {
.chart-container {
width: 100%;
}
.chart-container > * {
margin-top: 0;
}
}
Use this component to render your charts. There’s only one property; id, that’s required. This sets the value for the id attribute on the element which in turn will be required for the JavaScript to target it in order to render the graph.