PDA

View Full Version : adjust labels in line chart



peterarsentev
2 Mar 2012, 3:05 AM
Hello, I have problems with a LineChart. I would like to build LineChart with large range data for x axis.
For example y(x) = x*x; {-1000, 1000}. I can set min x, max x and step, but all labels will be shown and it looks not so good.
http://s16.postimage.org/otbfu3ri9/Selection_047.jpg

(http://postimage.org/image/otbfu3ri9/)http://tinypic.com/r/2n87b6p/5

How can I arrange it?

Regard.

BrendanC
6 Mar 2012, 8:02 PM
I would use a label provider on the axis. A good example is the numeric axis in the stacked bar example. http://sencha.com/examples-dev/#ExamplePlace:stackedbarchart
(http://sencha.com/examples-dev/#ExamplePlace:stackedbarchart)Here 100000000 is changed to the more readable 100M.

(http://sencha.com/examples-dev/#ExamplePlace:stackedbarchart)