I am setting up a page with a column chart and below is the constructor. I want to format the datalabels so they show what is on the xaxis. As soon as I add the bolded piece of code below I get a javascript error saying type undefined if I remove the chunk everything works fine I just get the wrong datalabels. I copied this chunk of code pretty much exactly from the DataLabelsFormatter class javadocs. Any ideas?:
I just tried the following code, and didn't run into any issues. Some of the callback handler code was adjusted in the 1.1.1 release, so it may be that it was fixed there.
I am setting up a page with a column chart and below is the constructor. I want to format the datalabels so they show what is on the xaxis. As soon as I add the bolded piece of code below I get a javascript error saying type undefined if I remove the chunk everything works fine I just get the wrong datalabels. I copied this chunk of code pretty much exactly from the DataLabelsFormatter class javadocs. Any ideas?:
*** chart.setSeriesPlotOptions(new SeriesPlotOptions().setDataLabels(new DataLabels().setFormatter(new DataLabelsFormatter()
*** {
*** public String format(DataLabelsData dataLabelsData)
*** {
*** return "A";
*** }
*** })));***
I just tried the following code, and didn't run into any issues. Some of the callback handler code was adjusted in the 1.1.1 release, so it may be that it was fixed there.
Can you try upgrading to version 1.1.1 and let us know if that clears the issue you're seeing or not?
https://sourceforge.net/projects/gwt-highcharts/files/1.1.1/