|
Add percentage in Dataset Arraylist |
Posted by Merry on May-19-2012 15:01 |
|
Dear Mr peter,
Im plotting a stacked graph with Total Produced against Total Delivered. Its in
percentage.My doubt is in dataset arraylist how to concatenate percentage. data is
displayed as ,20 40 60 80 100 120 (in xaxis). I need to display the graph 20% 40% and I
want to restrict it to 100% not beyond that.Its developed in asp.net + C#.net. Need your
help.
Thanks
Merry. |
Re: Add percentage in Dataset Arraylist |
Posted by Peter Kwan on May-22-2012 01:03 |
|
Hi Merry,
You may use:
c.yAxis().setLinearScale(0, 100, 20); //axis scale 0 to 100
c.yAxis().setLabelFormat("{value}%"); //add percentage sign after the value
Hope this can help.
Regards
Peter Kwan |
Re: Add percentage in Dataset Arraylist |
Posted by Merry on May-22-2012 21:43 |
|
Dear Peter, Its working fine. Also i dont want to display 100 at the end of stacked bar. Any suggestions please. Also i have attached the file for your reference.
|
Re: Add percentage in Dataset Arraylist |
Posted by Peter Kwan on May-23-2012 02:52 |
|
Hi Merry,
ChartDirector would not automatically display 100 at the end of the bar. I suspect your code asks ChartDirector to display them. If this is the case, please modify your code to remove the line that displays the aggregate bar value. (If you have a line that calls setAggregateLabelStyle or setAggregateLabelFormat, please remove it.)
Hope this can help.
Regards
Peter Kwan |
|