View Full Version : Line Chart Series Renderer ignores 'type'

25 Nov 2014, 6:55 AM
I'm attempting to change the "node" on a line chart based on record values. I am able to change the color and size, but it seems 'type' is ignored.

renderer: function(sprite, record, attr, index, chartStore) {
if (record.get('status') == 'open') {
Ext.apply(attr, {
type: 'image',
src: 'images/open_data_marker.png',
fill: '#FF3333',
width: 32,
height: 32
return attr;

I'm using 4.2.1, if that matters. I've also attempted drawing the image in the renderer and attaching it to sprite.surface, but that doesn't seem to work either.

25 Nov 2014, 10:34 AM
Hi mharris45--

Would you be able to post an example test case (either here or, ideally, creating a fiddle (https://fiddle.sencha.com)) of what you're trying to do, including the chart/series config and sample data? I'll be happy to help test with you.


25 Nov 2014, 10:50 AM
Sure thing, but it seems you can't change the ExtJS version in fiddle.sencha.com when using Chrome on MacOS 10.10.

I'll try Safari

25 Nov 2014, 11:02 AM

Here's an example of what I'm trying to do