Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    yaojun_0220 is on a distinguished road

      0  

    Exclamation Unanswered: how to add new series in line chart

    Unanswered: how to add new series in line chart


    hi, everyone!

    sorry for my poor English. actually what should I do to add new series of line in existing line chart? I need to add the other line in line chart when user drag on something in my panel. i am out of idea with this hope your guys can help me in this. Thankyou

    Hope Can hear you soon!

    From
    Jun

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Posts
    168
    Vote Rating
    0
    philogb is on a distinguished road

      0  

    Default


    Hi - Once you have your Ext.chart.Panel rendered and you want to add a line you can add a new line series by setting:

    Code:
    //get the chart
              var chart = panel.items.get(0);
    //add a new series
              chart.series.add({
                  type: 'line',
                  highlight: {
                      size: 7,
                      radius: 7
                  },
                  axis: 'left',
                  smooth: true,
                  xField: 'name',
                  yField: 'yFieldName',
                  title: 'newSeries',
                  markerConfig: {
                      type: 'circle',
                      radius: 3
                  }
              });
    //refresh the chart
              chart.refresh();
    I hope this helps,

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Vote Rating
    1
    hundare is on a distinguished road

      0  

    Default adding series dynamically in touch charts 2

    adding series dynamically in touch charts 2


    Hi,

    I want to add series dynamically to the scatter chart. Iam using touch charts 2 beta version. Can anyone help me with this.

    Thanks!

Thread Participants: 2

Tags for this Thread