Results 1 to 3 of 3

Thread: Hard coded check for Bar series in Axis

    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
      0  

    Default 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
    18,584
    Vote Rating
    873
      0  
    Evan Trimboli
    Twitter - @evantrimboli

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    6
    Vote Rating
    0
      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.

Tags for this Thread

Posting Permissions

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