Results 1 to 2 of 2

Thread: Accessing/Toggling series in a chart

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    92
    Answers
    6
    Vote Rating
    0
      0  

    Default Accessing/Toggling series in a chart

    Hi all,

    I'm trying to access the series on my chart so I can show and hide my lines with button actions. I cant find any sort of getSeries() method for charts, or documentation of how to hide/show series once I access them.

    I'd like to do something like this:

    Code:
    daily:function(button){
                    var     panel = button.up('panel'),
                            chart = panel.down('chart'),
                            series = chart.getSeries();
                    console.log(series);
                    series[1].hide();
    
            },

    If anyone has some pointers on how to go about this it would be much appreciated

    Thanks!

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1382
      0  

    Default

    Could just use chart.series, it's a mixed collection
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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