-
2 Mar 2012 11:33 AM #1
Unanswered: Chart Time Axis not scaling correctly
Unanswered: Chart Time Axis not scaling correctly
I've been working with the charting library for a while now trying to figure out how to get the time axis to scale with the marks at the 1st of each month. The following is the code for my time axis:
where minDate is the first day of the month a year ago and max date is the first of the next month from the current date. I thought the step property would guarantee that it would step from, say March 1st to April 1st to May 1st, etc. Any thoughts on this would be appreciated!Code:{ type: 'Time', position: 'bottom', fields: ['date'], dateFormat: 'M \'y', groupBy: 'year, month', step: [Ext.Date.MONTH, 1], fromDate: minDate, toDate: maxDate }
Also, the time is stored as a numerical timestamp if that has any bearing on an answer.
I'm using ExtJS 4.0.7
-
2 Mar 2012 11:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
To be honest, I have had issues with the time axis in 4.x
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
2 Mar 2012 1:50 PM #3
What sort of problems have you had and have you found a solution? I really need to get this to work and I'm not finding any way around it. I'm pretty sure I know exactly why the scaling is off based on what the time axis code is trying to do, but I don't know a workaround.
-
1 Jun 2012 4:34 AM #4
I would love to know if there's a work around for this too.
Most of the charts have time as one of their axis so this bug makes extjs charts pretty unusable!
-
21 Jun 2012 1:08 AM #5
Time Axis - monthly (yearly) steps
Time Axis - monthly (yearly) steps
I would love to use time axis too, but this bug is kind of a dealbreaker for using the extjs charts. Almost EVERY chart hast a time component, very often scaled in monthly or yearly steps. Looks like the time axis cannot deal with the various length of different months. For the moment it seems the only choice is to switch to the highcharts library for the time being.
Please, please get things straight with the time axis. I would rather go with an homogen extjs solution than mix various js-frameworks.
thanks in advance.
Mikestrangers are friends i haven't met yet
-
20 Jul 2012 4:13 AM #6


Reply With Quote