@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_chart_common); AnyChartView anyChartView = findViewById(R.id.any_chart_view); anyChartView.setProgressBar(findViewById(R.id.progress_bar)); Stock stock = AnyChart.stock(); Plot plot = stock.plot(0); plot.yGrid(true) .yMinorGrid(true); Table table = Table.instantiate("x"); table.addData(getData()); TableMapping mapping = table.mapAs("{'high': 'high', 'low': 'low'}"); Hilo hilo = plot.hilo(mapping); hilo.name("Temperature"); hilo.tooltip().format("Max: {%High}°<br/>Min: {%Low}°"); stock.tooltip().useHtml(true); anyChartView.setChart(stock); }