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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -