PDA

View Full Version : [FIXED] document exactly what Axis#label values can be



jep
1 Nov 2012, 2:49 PM
In ST 2.1 RC2, this is the help for Axis#label:


label : Object
The label configuration object for the Axis. This object may include style attributes like spacing, padding, font, and a renderer function that receives a string or number and returns a new string with the modified values.

Defaults to: {x: 0, y: 0, textBaseline: 'middle', textAlign: 'center', fontSize: 12, fontFamily: 'Helvetica'}


This needs to be much better defined. It leaves off important ones like rotate. Is it actually using some kind of CSS values or is it custom to ST? Who knows!

mitchellsimoens
2 Nov 2012, 5:19 AM
Thanks for the report! I have opened a bug in our bug tracker.

sroy3
10 Dec 2012, 8:20 AM
any word on this? Need desperate help with axis labels on Numeric axis (i.e. divide or multiply with fixed value), but the "label renderer" function does not seem to work.