<p>Hey guys i need kinda help, with coloring a Bar chart. I'm checking which value the current bar got and want to color it by different values. but the prob is that it only checks for the first value and gives the same color to the rest of the bars. Here's my code </p><pre class="_prettyXprint _lang-js">function beforeDrawDataPoint( dph, fill, icsc ){ var condition = dph.getBaseDisplayValue(); var varValue = parseFloat(condition); if(varValue > 8.0) { fill.set(50, 205, 50); } else if(varValue < 8.0) { fill.set(255, 0, 0); } else { fill.set(0, 191, 255); }}</pre><p><img src='
http://www7.pic-upload.de/20.01.14/jrgiles7yph3.jpg' alt='Posted Image' class='bbc_img' /></p><p>Actually the bars of the valuse 3 and 5 should be red.</p><p> </p><p>Hope you guys can help me</p>