I really need help on this.
Based on this question I am trying to generate table from High-charts.
In this Fiddle table is generated ok, but I need data values to be in text, not in number format.
I think format need to be changed at this line, but I am not sure …
Highcharts.numberFormat(series[i].data[category_index].y, valueDecimals) + valueSuffix,
Is it possible to achieve this?
The reason why you could not replace the data values with text and have it show up are because you are defining the data types as decimal and using the
Highcharts.numberFormatto make the y values into a decimal. Since you try to put in text it cannot format the string as a decimal so it is null. Now, you cannot simply take out thatHighcharts.numberFormatcall and have this work. A HighCharts data series requires a numeric y value. So, to do what you want we use an undocumented point property calledNote.Here is my attempt.
If what you want is to just use HighCharts to create a table in SVG/VML you can do the following.
Create a data series like this:
Now, instead of looping on the
yvalues you will loop over theNoteitems just like you had before only with the numeric stuff removed:Here is a jsFiddle (with just one series updated to use the
Notesyntax but you get the idea).