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.
  1. #1
    Touch Premium Member
    Join Date
    Nov 2011
    Location
    Belfast, N.Ireland
    Posts
    4
    Vote Rating
    0
    aneeson is on a distinguished road

      0  

    Default Cannot create custom Ext.chart.axis.Axis

    Cannot create custom Ext.chart.axis.Axis


    REQUIRED INFORMATION Ext version tested:
    • Ext 4.0.7
    Description:
    • 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.
    Steps to reproduce the problem:
    • Define a custom axis (alias: 'axis.mycustomaxis')
    • Attempt to use the axis in a chart (this.axes[{type:'Mycustomaxis'}]
    The result that was expected:
    • The axis should render in the same way as its parent
    The result that occurs instead:
    • The labels on the axis all come out as undefined
    HELPFUL INFORMATION
    Ext.chart.axis.Axis:
    Code:
         
        ...
    
        if (me.type == 'Numeric' || me.type == 'Time')
        {
            calcLabels = true;
            me.labels = [stepCalcs.from];
        }
    
        ...
    Possible fix:
    • Rather than rely on the types to determine if labels need to be calculated, include a property in the Axis class

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    433
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Location
    Stockholm
    Posts
    1
    Vote Rating
    0
    seebergs is on a distinguished road

      0  

    Default


    Will this be fixed in 4.1?