Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
side-by-side bar chart editing
mh10
Hi,
I have side-by-side bar char which has two y series and 10 values on x-axis.
out of these 10 values, i have to highlight only two bars of one value with different color, and also shows these 2 different color for these values in Legend.
Any suggestions?
Thanks
Find more posts tagged with
Comments
mwilliams
Hi mh10,
Can you explain a little more in detail? I'm not sure if I'm understanding correctly. Thanks.
mh10
Hi Michael,<br />
Please see attached bar chart from Zip file, which i am trying to create.<br />
<br />
In this graph, two bars related to value A, B, C, E has same Green & Red color. But two bars of value D should have Brown & Black color...to hightlight it also symbol 'D' on X-axis should be in bold.<br />
<br />
In graph legend also i have to show these four colors as you can see in attached graph file.<br />
<br />
<br />
let me know your opinion<br />
<br />
Thanks<br />
<br />
<br />
<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>Hi mh10,<br />
<br />
Can you explain a little more in detail? I'm not sure if I'm understanding correctly. Thanks.</p></blockquote>
mwilliams
mh10,
You can definitely color the two bars different colors initially with the palette. Then, you can use scripting in the beforeDrawDataPoint() function in the chart script to color the two bars for 'D' black and brown. Adding the extra items to the legend is something I haven't done and I'm not sure it's possible to just add them. You might be able to do this by adding a couple more series' to the chart as series 1 and 4 with values of 0, so the bar doesn't show up and then change their title and color in the chart script for the legend. I have not tested this though.
mh10
Hi Michael,<br />
can you tell me more detail on this beforeDrawDataPoint() function.<br />
if i want brown & voilet color for two bars of particular value then what will be the script?<br />
<br />
<br />
<br />
Thanks<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>mh10,<br />
<br />
You can definitely color the two bars different colors initially with the palette. Then, you can use scripting in the beforeDrawDataPoint() function in the chart script to color the two bars for 'D' black and brown. Adding the extra items to the legend is something I haven't done and I'm not sure it's possible to just add them. You might be able to do this by adding a couple more series' to the chart as series 1 and 4 with values of 0, so the bar doesn't show up and then change their title and color in the chart script for the legend. I have not tested this though.</p></blockquote>
mh10
Hi Michael,<br />
your "Highlighting the Top N Bars in a BIRT Bar Chart" article link helped me in this.<br />
<br />
Thanks for it, Appreciate !!!!<br />
<br />
<br />
<br />
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>mh10,<br />
<br />
You can definitely color the two bars different colors initially with the palette. Then, you can use scripting in the beforeDrawDataPoint() function in the chart script to color the two bars for 'D' black and brown. Adding the extra items to the legend is something I haven't done and I'm not sure it's possible to just add them. You might be able to do this by adding a couple more series' to the chart as series 1 and 4 with values of 0, so the bar doesn't show up and then change their title and color in the chart script for the legend. I have not tested this though.</p></blockquote>
mwilliams
mh10,
Sorry for the delayed response. Glad to hear you found that example and it was helpful!