-
18 Jan 2012 4:27 AM #1
Cannot create custom Ext.chart.axis.Axis
Cannot create custom Ext.chart.axis.Axis
REQUIRED INFORMATION Ext version tested:
- Ext 4.0.7
- Creating a custom Ext.chart.axis.Axis causes errors as the code in Ext.chart.axis.Axis.drawAxis() has hard-coded references to the 'Numeric' and 'Time' custom types.
- Define a custom axis (alias: 'axis.mycustomaxis')
- Attempt to use the axis in a chart (this.axes[{type:'Mycustomaxis'}]
- The axis should render in the same way as its parent
- The labels on the axis all come out as undefined
Ext.chart.axis.Axis:
Possible fix:Code:... if (me.type == 'Numeric' || me.type == 'Time') { calcLabels = true; me.labels = [stepCalcs.from]; } ...- Rather than rely on the types to determine if labels need to be calculated, include a property in the Axis class
-
18 Jan 2012 7:04 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
Thank you for the report.
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.
-
6 Feb 2012 11:35 PM #3
Will this be fixed in 4.1?
You found a bug! We've classified it as
EXTJSIV-5153
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote