Chartjs-Chart js size and placement

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.

Leave a comment