Add support for larger prefixes for y-axis labels (Highstock)
Currently, the Highstock code supports "k" (kilo) and "M" (mega) prefixes when creating the y-axis labels, but doesn't support anything larger. At the very least, can we add support for "G" (giga)?
2012-08-08: This is now implemented in the radial branch. http://jsfiddle.net/highcharts/Phb2W/
2012-08-07: We propose to move these definitions out to the language object, as an array called lang.numericSymbols:
lang: {
numericSymbols: [‘k’, ‘M’, ‘G’, ‘T’, ‘P’, ‘E’]
}
Each item in the array is a multiple of 1000 of the previous. This also allows for other symbols, for example the implementer can define a symbol of ‘,000’ instead of ‘k’, or speak out the number as ’ thousands’ or ’ millions’. A value of null will skip the symbol altogether and use the full number formatting.
-
The next Highstock maintenance release will correlate to 2.3.
-
Kyle Getz commented
Which Highstock release does that correlate to?
-
The development branch that is used in the demo. The new feature will be released in 2.3.
-
Kyle Getz commented
What exactly is the radial branch?
-
Kyle Getz commented
Excellent, sounds like a good plan.
-
Kyle Getz commented
If you guys are going to be augmenting that portion of the code anyway, I'd actually suggest adding enough SI prefixes to handle all 64-bit numbers, which would mean adding 'G', 'T', 'P', and 'E'.