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