Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
    Tink is on a distinguished road

      0  

    Default Hard coded check for Bar series in Axis

    Hard coded check for Bar series in Axis


    At line 188 of Axis.js there is a hard coded check for the Bar series.

    Code like this prevents users creating their own series. You can see this by just duplicating the Bar series, giving it a new name and trying to use it. This code should be checking properties (or if JS was 'ready'), an interface.

    I need to create a overlaid bar series, something thats been available since the early days of Flex 3.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,940
    Vote Rating
    635
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
    Tink is on a distinguished road

      0  

    Default


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1.1
    Browser versions tested against:
    • Chrome 24.0.1312.51 m
    DOCTYPE tested against:
    • ____
    Description:
    • Hard coded check for Bar series in Axis.js and get for 'bar' type in Cartesian.js.getAxisForXandYFields() make it difficult to create custom bar series.
    Steps to reproduce the problem:
    • Duplicate Bar.js and try and use it.
    The result that was expected:
    • The exact same results as using a standard bar series as the code is the same.
    The result that occurs instead:
    • The chart displays data incorrectly.
    HELPFUL INFORMATION

    Debugging already done:
    • In Axis.js line 188 checks the seriesClasses contains Bar and that the series is an instance of Bar.
    • In Cartesian.js line 253, checks that the type is 'bar' to decide whether to flip axis.
    Possible fix;[LIST][*]Add properties that are not used for any type checking.

Thread Participants: 1

Tags for this Thread