Results 1 to 2 of 2

Thread: Chart x-axis has too many values.

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    So Paulo - SP
    Posts
    22
    Vote Rating
    0
      0  

    Default Chart x-axis has too many values.

    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?

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    So Paulo - SP
    Posts
    22
    Vote Rating
    0
      0  

    Default

    I got around that problem by rotating the dates to fit the screen better:

    Code:
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •