Results 1 to 3 of 3

Thread: [Chart] Series renderer problem.

  1. #1

    Default [Chart] Series renderer problem.

    Hi, All!

    I need to paint particular markers of some series into other color then defined in markerConfig option during series creation. So, according to help, I can use my own series renderer:

    renderer : Function
    A function that can be overridden to set custom styling properties to each rendered element. Passes in (sprite, record, attributes, index, store) to the function.
    Series configuration:
                     title: displayName,
                     type: 'line',
                     axis: 'left',
                     xField: 'name',
                     yField: yField,
                     highlight: false,
                     showMarkers: true,
                     selectionTolerance: 3,
                     renderer: this.seriesRenderer
    Series renderer:
        seriesRenderer: function(sprite, record, attributes, index, store){
            Ext.apply(attributes, {fill: "FF0000", stroke: "FF0000"});
            return attributes;
    Looks like attributes returned from my renderer does not work. I've tried to change style of sprite(marker) within renderer function, but this didn't help too:
    seriesRenderer: function(sprite, record, attributes, index, store){
        sprite.setAttributes({fill: "FF0000", stroke: "FF0000"}, true);      
        return attributes;
    Does anybody know what is wrong?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    What Ext JS 4 version are you using?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:

    Posts are my own, not any current, past or future employer's.

  3. #3


    I've tried this on 4.1 beta 1 and 2

Tags for this Thread

Posting Permissions

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