Results 1 to 4 of 4

Thread: ST2.1 RC2 Legend not hiding line series

    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
    Oct 2012
    Posts
    46
    Vote Rating
    0
      0  

    Default ST2.1 RC2 Legend not hiding line series

    In Ext.chart.series.Series

    Code:
        
    setHiddenByIndex: function (index, value) {        if (Ext.isArray(this.getHidden())) {
                this.getHidden()[index] = value;
                this.updateHidden(this.getHidden());
            } else {
                this.getHidden()[0] = value;
                this.updateHidden(this.getHidden());
            }
        }
    changing to the following allows for a line series to be hidden when clicking on the legend item

    Code:
        
    setHiddenByIndex: function (index, value) {        if (Ext.isArray(this.getHidden())) {
                this.getHidden()[index] = value;
                this.updateHidden(this.getHidden());
            } else {
                this.setHidden(value);
                this.updateHidden(this.getHidden());
            }
        },

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

    Default

    This has already been fixed for the next release.
    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

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    This has already been fixed for the next release.
    I'm not sure that this fix made it in.

    http://docs.sencha.com/touch/2-1/sou...-series-Series
    Code:
        
        setHiddenByIndex: function (index, value) {
            if (Ext.isArray(this.getHidden())) {
                this.getHidden()[index] = value;
                this.updateHidden(this.getHidden());
            } else {
                this.setHidden(value);
            }
        },

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    46
    Vote Rating
    0
      0  

    Default

    Ignore that.

Posting Permissions

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