PDA

View Full Version : Chart x-axis has too many values.



maps_tecnologia
10 Jan 2012, 12:26 PM
Hello, I am building some line charts that show data from like 200+ records.

The data is like [someNumber, someDate].
someNumber has a small range, but the dates range too much and I end up with my x-axis full of text and hard to read.

I was hoping there is some feature that filters the values and only shows like the first, the middle and the last one, or something like that.

Any ideas?

maps_tecnologia
11 Jan 2012, 9:09 AM
I got around that problem by rotating the dates to fit the screen better:



label: { renderer: Ext.util.Format.dateRenderer("d/m/y"),
font: '9px Arial',
rotate: {
degrees: 45
}
}


I have another problem related to my series of my line chart.
My line chart display dates on the xaxis and floats on my yaxis.
The float numbers are all between 0 and 1, so they are really small. I need to change their scale. Multiply them by 100 so they are percentages.

I can't find anyway to do that. i tried renderer, format, template,etc.

Any ideas?