Mar 28, 2013, 4:09 PM
[OPEN] [#192] Chart axis setTitle
Hello,
I am trying to use setTile function to change title of a chart axis. Initially chart store is empty. In a function I load data into chart store. For the first time I try to use setTitle as below, setTitle function is not available and it does not work. Next time, axis properties are extended to include .setTitle and it works. What condition should I set for setting title in the first try also?
Available properties after first data load:
If I call App.Chart1.redraw before calling .setTitle it works fine but in this case axes labels move right / or chart moves left. Please see attached figure below:
I am trying to use setTile function to change title of a chart axis. Initially chart store is empty. In a function I load data into chart store. For the first time I try to use setTitle as below, setTitle function is not available and it does not work. Next time, axis properties are extended to include .setTitle and it works. What condition should I set for setting title in the first try also?
App.Chart1.axes.items[0].setTitle("Value");
Initially available properties of App.Chart1.axes.items[0]:
+ label {...} Object
grid true Boolean
+ position "bottom" String
+ fields [Data] Object, (Array)
+ type "Numeric" String
minimum 0 Number
grid true Boolean
+ position "bottom" String
+ fields [Data] Object, (Array)
+ type "Numeric" String
minimum 0 Number
+ chart {...} Object
+ axisStyle {...} Object
+ axisLabelLeftStyle {...} Object
+ axisLabelRightStyle {...} Object
+ axisLabelTopStyle {...} Object
... and more
+ axisStyle {...} Object
+ axisLabelLeftStyle {...} Object
+ axisLabelRightStyle {...} Object
+ axisLabelTopStyle {...} Object
... and more
Last edited by Daniil; Apr 09, 2013 at 4:05 AM.
Reason: [OPEN] [#192]