|
Barchart colouring a single bar ... |
Posted by Divya on Jun-14-2013 17:19 |
|
Hello,
I got requirement from client where he wants a single bar from the data set to be colored
different in a Bar Chart
For example if i have a data set:
double[] data={4563,3458,8765}
then the bar the representing say 8765 should be in yellow are rest should be in blue .
Is it possible to do this using Chart director.Or if there is any other way to achieve it please
do let me know..
Thanks
|
Re: Barchart colouring a single bar ... |
Posted by Peter Kwan on Jun-15-2013 01:55 |
|
Hi Divya,
You may use the a Multi-Color Bar Chart to achieve what you need. In this bar chart, you can specify the color of every bar. So you can specific all bars as blue, except the 8765 which is yellow. You may look up "Multi-Color Bar Chart" from the ChartDirector documentation index for the sample code.
Hope this can help.
Regards
Peter Kwan |
Re: Barchart colouring a single bar ... |
Posted by Divya on Jun-19-2013 15:26 |
|
Thank you i overlooked that in the Chart director.. |
|