extjs - Render data points in a Sencha Chart in a specific color -
i want render of datapoint in charts in different color other, depending on values in store. problem i'm experiencing not marker rendered in different color line marker can see in fiddle: https://fiddle.sencha.com/#fiddle/lmu
is there way change color of actual datapoint?
thanks in advance!
change renderer function -
renderer: function (sprite, config, rendererdata, index) { var items = rendererdata.store.getdata().items; if (items[index].data.hidden && config.type ==='marker') { // check config.type (data point return marker type , lines return line) return { strokestyle: 'yellow', linewidth: 5 }; // added linewidth can see different color } }
Comments
Post a Comment