PDA

View Full Version : Chart axis lables and series lables customizing Issues



rahul1
2 May 2013, 8:40 AM
I am having problem with the scale of the values showing at vertical axis. How can I limit the no. of values to be displayed at vertical axis labels. and adjust the ticker scale accordingly.

Also how can i force my series data label to be display at the top of the chart having same color as of the chart color.

slemmon
6 May 2013, 9:03 AM
You might check out the properties: majorTickSteps and minorTickSteps as they allow some control over how many ticks are present on a given axis:
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.chart.axis.Axis-cfg-majorTickSteps
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.chart.axis.Axis-cfg-minorTickSteps

Perhaps the label config is what you're looking for?
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.chart.Label-cfg-label