0👍
You have an syntax error on
<div style={{display: "flex"}}>
This is the correct way:
<div style="display: flex;">
This is the correct way:
<div styles="{{display: flex;}}">
Take a look at this example:
<div style="display: flex;">
<div style="width: 100px; height: 100px; background-color:red;">
<p>
CHART
</p>
</div>
<div style="width: 100px; height: 100px; background-color:blue;">
<p>
CHART
</p>
</div>
</div>
https://www.w3schools.com/html/html_styles.asp
Take a look at this anwser.
- Chartjs-Failing to render chart – "can't acquire context from the given item"
- Chartjs-Chart.js how to inser values from json
Source:stackexchange.com