Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Nov 2008
    Location
    Tehran, Iran
    Posts
    11
    Vote Rating
    0
    PATMAP is on a distinguished road

      0  

    Default [BUG] Ext-4.2.0.489 Draw Line Chart

    [BUG] Ext-4.2.0.489 Draw Line Chart


    Hi,

    There is an bug in drawing a line chart both LTR and RTL mode.
    index variable in this code not defined.

    Code:
    series.getLegendColor(index)
    Code:
        drawLine: function(fromX, fromY, toX, toY, z, seriesStyle) {
            var me = this,
                surface = me.surface,
                series = me.series;
            
            return me.add('line', surface.add({
                type: 'path',
                path: 'M' + fromX + ',' + fromY + 'L' + toX + ',' + toY,
                zIndex: (z || 0) + 2,
                "stroke-width": series.lineWidth,
                "stroke-linejoin": "round",
                "stroke-dasharray": series.dash,
                stroke: seriesStyle.stroke || series.getLegendColor(index) || '#000',
                style: {
                    cursor: 'pointer'
                }
            }));
        },
    Regards

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,047
    Vote Rating
    850
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Can I get a test case I can run locally?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Location
    Tehran, Iran
    Posts
    11
    Vote Rating
    0
    PATMAP is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Can I get a test case I can run locally?
    Hi,

    Yes,

    For see 4.1.1a Chart Demo

    http://85.133.205.203:8081/ChartDemo_4.1.x.dll


    For see 4.2.0.489 Chart Demo

    http://85.133.205.203:8081/ChartDemo_4.2.x.dll


    Regards

Thread Participants: 1