Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    6
    Vote Rating
    0
    FoxXav is on a distinguished road

      0  

    Exclamation Series renderer overide error

    Series renderer overide error


    Hi there !

    I started to use Sencha designer 2 since two weeks.
    I have looked for a way to add a little bar with another color on the top of each column of a column chart.

    The way I found was to override the renderer function of the serie and create a new sprite to add on the graph for each column.
    Code:
    function(sprite, record, attr, index, store) {
        var mark = Ext.create(Ext.draw.Sprite, { /* Here is the new sprite that I add at the top of each column */
          type: 'rect',
          fill: '#FF3333',
          surface: sprite.surface,
          width: attr.width+1,
          x:attr.x,
          y:attr.y,
          height:4
        });
        mark.show(true);
      }
    
      attr.fill='#4444EE'; /* Here I change the color of the column */
      return attr;
    }


    If there is a more simple way to do it I'm interested in it however my method work when testing on the browser but in the sencha designer 2 it mess up everything and give me this error :
    TypeError: 'undefined' is not an object

    See you

    sencha designer param.jpg
    Last edited by FoxXav; 2 Mar 2012 at 5:05 AM. Reason: adding a screenshot