Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how to change bar colors in Bar chart based configuration
venkatmadh
<p>hi</p><p> </p><p>i want to change bar colors based configuaration , please could help me, how to achieve this.</p><p> </p><p> </p><p>Advanced Thanks</p><p> </p>
Find more posts tagged with
Comments
kclark
<p>What configuration are you wanting to change the colors based on?</p>
venkatmadh
<p>Thanks clark for quick response,</p><p> </p><p> </p><p>I mean to say , Specific bars should have customized color for example success count bar should have green color, and failure count should</p><p>have red color</p><p> </p><p>my question is</p><p> </p><p>can i specify customize color to bars ? if it is possible give me one example</p><p> </p><p> </p><p>Advanced Thanks</p>
kclark
<p>Take a look at <a data-ipb='nomediaparse' href='
http://www.birt-exchange.org/forum/index.php?/topic/19914-changing-color-of-bar-chart/'>this
thread</a> it has some example code that shows how you can change bar colors. It should look something like this</p><pre class="_prettyXprint">function beforeDrawDataPoint( dph, fill, icsc ){ var sValue = dph.getDisplayValue(); if (sValue.contains("1CPTP")) { fill.set(148, 198, 222); }}</pre><p>}</p>