Skip to content Skip to sidebar Skip to footer

Android Highcharts How To Enable Or Disable Data Labels

I am working on android. By using highchart I have created a barchart. HIOptions options = new HIOptions(); HIChart chart = new HIChart(); chart.setType('bar'); options

Solution 1:

They have changed the datalabel property. Now you have to do the following

HIDataLabels dataLabels = new HIDataLabels();
dataLabels.setEnabled(false);
ArrayList<HIDataLabels> dataLabelsList = new ArrayList<>();
dataLabelsList.add(dataLabels);
bar1.setDataLabels(dataLabelsList);

Try the above code after you set data to bar1

For more information see this comment

Post a Comment for "Android Highcharts How To Enable Or Disable Data Labels"