es={state.series} type=&quot;line&quot; height={350} /&gt;
&lt;/div&gt;
    </div>

    <script type="text/babel">
      const ApexChart = () => {
        const [state, setState] = React.useState({
          
            series: [
              {
                "name": "Line",
                "type": "line",
                "data": [
                  37,
                  38.3,
                  33.01,
                  30,
                  29.7,
                  30,
                  35.2,
            