Please help me here.
Horizontal Bar chart Y axis values has to be dynamically generated. Y axis values need to be added or removed when the chart redraw.
Another way of my question,
Bar chart currently has 5 Y axis labels (5 bars), now I want to add 2 more y axis value and remove 1 y axis value based on trigger event.
Please let me know if my question is not understandable.
my code here,
BarChart barChart = new BarChart(true, barLabels1.length, barLabels1, barValues1); // model object
chart.getModel().removeAllSeries();
// chart.getPlotOptions().addYAxisOptions(getYAxisOptions(barChart.getTickSize(), barChart.getyAxisLabel(), barChart.getyAxisValues())); ------------> this is not working
BarChartValueSeriesBuilder.setSeriesValues(chart.getModel(), barChart); ----- > Adding the series and this works
chart.redraw(true);
Thank you
Kumar