Results 1 to 5 of 5

Thread: Scatter series renderers incorrect when the store only has a single item.

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2012
    Posts
    6

    Default Scatter series renderers incorrect when the store only has a single item.

    Ext version tested:
    • Ext 4.1.3
    Browser versions tested against:
    • Chrome 24.0.1312.51 m
    DOCTYPE tested against:
    • ____
    Description:
    • It a store has only a single item the plots created by the scatter series don't appear on the chart rendering area.
    Steps to reproduce the problem:
    • Create a chart with a scatter series and assign it a store with a single record in it.
    The result that was expected:
    • The scatter series should renderer the plots the left vertical axis.
    The result that occurs instead:
    • The scatter series renders the plots on the far left of it's bounds, outside the defined axes.
    HELPFUL INFORMATION

    Debugging already done:

    • This bug is due to Ininity being returned for the xScale value from the scatter series getBounds() function.
    Possible fix;


    • Check whether any of the scaler values are Infinity and set then to the corresponding bbox measurement.
    return {
    bbox: bbox,
    minX: minX,
    minY: minY,
    xScale: xScale == Infinity ? bbox.width : xScale,
    yScale: yScale == Infinity ? bbox.height : yScale
    };



  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    London
    Posts
    16

    Default scatter series when the store has a single item

    Hi,
    Is this bug solved ?

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    London
    Posts
    16

    Default

    Hi,
    Where I should write this code to avoid the problem with a store that has only one record?

    return {
    bbox: bbox,
    minX: minX,
    minY: minY,
    xScale: xScale == Infinity ? bbox.width : xScale,
    yScale: yScale == Infinity ? bbox.height : yScale
    };

    Thanks
    Ozlem

  5. #5

    Default

    Hi, Is this resolved? Can anybody provide a workaround?

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
  •