<div>
<div class="chart-wrap">
<div id="chart">
<ReactApexChart options={state.options} series={state.series} type="donut" width={380} />
</div>
</div>
<div class="actions">
<button
onClick={() => appendData()}
>
+ ADD
</button>
<button
onClick={() => removeData()}
>
- REMOVE
</button>
<button
onClick={() => randomize()}
>
RANDOMIZE
</button>
<button
onClick={() => reset()}
>
RESET
</button>
</div>
</div>