<div class="wrap"> <select id="model" onChange={() => this.changeData()} class="flat-select"> <option value="iphone5">iPhone 5</option> <option value="iphone6">iPhone 6</option> <option value="iphone7">iPhone 7</option> </select> <div id="chart-year" class="chart-box"> <ReactApexChart options={this.state.chartOptionsYear} series={this.state.seriesYear} type="bar" height="350" /> </div> <div id="chart-quarter" class="chart-box"> <ReactApexChart options={this.state.chartOptionsQuarter} series={this.state.seriesQuarter} type="bar" height="350" /> </div> </div>