Results 1 to 5 of 5

Thread: chart setSeriesStylesByIndex

  1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    212

    Default chart setSeriesStylesByIndex

    Hi,

    i want to do something like this:

    http://developer.yahoo.com/yui/examp...ideseries.html

    there it is possible with the function setSeriesStylesByIndex to hide specified series.

    how can i make this in ext 3.0?

    there i dont find this function.

    thx

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Code:
    Ext.override(Ext.Chart, {
        setSeriesStylesByIndex: function(index, styles){
            this.seriesStyles = this.seriesStyles || [];
            this.seriesStyles[index] = styles;
            this.swf.setSeriesStylesByIndex(index, Ext.encode(styles));
        }
    });

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Posts
    212

    Default

    it dont work, il become this firebug error:

    this.swf.setSeriesStylesByIndex is not a function


    PHP Code:
    Ext.override(Ext.chart.ColumnChart, {
        
    setSeriesStylesByIndex: function(indexstyles){
            
    this.seriesStyles this.seriesStyles || [];
            
    this.seriesStyles[index] = styles;
            
    this.swf.setSeriesStylesByIndex(indexExt.encode(styles));
        }
    }); 
    thx

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Was this method added in the YUI 2.8.0r4 release?

    In that case you would need to upgrade the charts.swf.

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Posts
    212

    Default

    thanks, it works!

Posting Permissions

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