Hybrid View

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default ST2.1 RC2 additional series line at zero

    ST2.1 RC2 additional series line at zero


    When adding multiple series to a chart, I get an additional horizontal line at zero for each series with no points on it.
    In the image below there is actually three lines stacked horizontally on top of each other. This can be seen by disabling various series through the legend. The second image demonstrates this with just a single series left enabled.

    Is this a know bug?

    Library.jpg

    Library_2012-10-16_14-21-45.jpg

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,220
    Vote Rating
    859
    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


    I'm not sure I full follow what you are saying. So you expect to have breaks in the line if they don't have points?
    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 Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default


    the last charge demonstrates better with the orange line. there is one data series here yet there are two lines. the one with data points on it is the correct line. the horizontal line at zero is not one representative of my data and interestingly it has no markers either.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,220
    Vote Rating
    859
    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


    Hmm... can I get a test case so I can look into why this is happening?
    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.

  5. #5
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default


    this sample should repro the issue, however, I can't see the series rendered on there anyhow yet the scale on the axes is correct.

    Code:
     
     /**
     * Demonstrates how use Ext.chart.series.Line
     */
     
    Ext.define('Kitchensink.view.LineChart', {
        extend: 'Ext.Panel',
        requires: ['Ext.chart.Chart', 
            'Ext.chart.series.Line', 
            'Ext.chart.axis.Numeric', 
            'Ext.chart.axis.Time', 
            'Ext.chart.interactions.CrossZoom'],
        config: {
            cls: 'card1',
            layout: 'fit',
            items: [
                {
                    xtype: 'toolbar',
                    top: 0,
                    right: 0,
                    zIndex: 50,
                    style: {
                        background: 'none'
                    },
                    items: [
                        {
                            xtype: 'spacer'
                        }
                    ]
                }
            ]
        },
        initialize: function() {
            this.callSuper();
            
            var theStore = Ext.create('Ext.data.JsonStore', {
                fields: [
                    {name: 'c0',type: 'string'}, 
                    {name: 'c1',type: 'float'}, 
                    {name: 'c2',type: 'float'}, 
                    {name: 'c3',type: 'float'}
                ]});
    		theStore.setData([
                    {
                        c0: "US Equity",
                        c1: 29896.335527252566,
                        c2: -156889.56531551181,
                        c3: -405990.29995779973
                    }, 
                    {
                        c0: "EU Equity",
                        c1: -44777.893132892386,
                        c2: 286189.1549016299,
                        c3: -386186.06253815163
                    }, 
                    {
                        c0: "Asia FX",
                        c1: -39776.369226060982,
                        c2: -220447.05381637765,
                        c3: 1153861.648940417
                    }, 
                    {
                        c0: "Euro Credit",
                        c1: -46908.067305063858,
                        c2: -73255.397273812181,
                        c3: -276510.46322496142
                    }, 
                    {
                        c0: "Grexit",
                        c1: -23797.425289544011,
                        c2: -31672.803560119472,
                        c3: 1829122.7015802278
                    }, 
                    {
                        c0: "None",
                        c1: 40806.24044444703,
                        c2: 158939.14907189977,
                        c3: -1793745.7951687956
                    }, 
                    {
                        c0: "Strategy 3",
                        c1: -42817.476947241215,
                        c2: -204978.58454705152,
                        c3: 1462744.0904559307
                    }
                ]);
            var theChart = Ext.create('Ext.chart.CartesianChart', {
                store: theStore,
                background: 'white',
                interactions: [{type: 'crosszoom',zoomOnPanGensture: false}],
                legend: {
                    docked: 'bottom'
                },
                axes: [{
                        position: 'bottom',
                        fields: ['c0'],
                        label: {rotate: {degrees: 90}},
                        title: {text: 'Strategy'},
                        type: 'category'
                    }, {
                        fields: ['c1', 'c2', 'c3'],
                        position: 'left',
                        title: {text: ''},
                        type: 'numeric'
                    }],
                
                series: [{
                        title: 'Today',type: 'line',xField: 'c0',yField: 'c1'
                    }, {
                        title: 'MTD',type: 'line',xField: 'c0',yField: 'c2'
                    }, {
                        title: 'YTD',type: 'line',xField: 'c0',yField: 'c3'
                    }]
            });
            this.add(theChart);
            var toolbar = Ext.ComponentQuery.query('toolbar', this)[0], 
            interaction = Ext.ComponentQuery.query('interaction', this)[0];
            if (toolbar && interaction) {
                toolbar.add(interaction.getUndoButton());
            }
        }
    });

  6. #6
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
    heath.hansell is on a distinguished road

      0  

    Default


    any ideas on why the repro wont display at all?

Thread Participants: 2