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
    heath.hansell is on a distinguished road

      0  

    Default ST2.1 RC2 Legend not hiding line series

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,668
    Vote Rating
    746
    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


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


    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
    heath.hansell is on a distinguished road

      0  

    Default


    Ignore that.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar