HI
i want to display range axis as a percentage of total value.
for example : if i have values as 20 ,40 ,80 ,200 ,60 then the bar chart display Y-axis as --
(20/200)*100 = 10
(40/200)*100 = 20
(80/200)*100 = 40
(200/200)*100 = 100
(60/200)*100 = 30
Also i want to display them as : total = 20+40+80+200+60 =400
y-axis as -- ( 20/400)*100 = 5
(40/400)*100 = 10
(80/400)*100 =20
(200/400)*100 = 50
(60/400)*100 = 15
How can i customize my bar chart.
displaying value in bar chart as a percentage of tatal value
-
- Posts: 9
- Joined: Fri Jun 13, 2008 4:09 am
- Location: Japan
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
For the latter, try using a StackedBarRenderer. The former will most likely require you to create a custom dataset to return the values to plot. I am not sure why you would want to plot the values as a percentage of the maximum value and as a percentage of the total value, but it's your plot.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
-
- Posts: 9
- Joined: Fri Jun 13, 2008 4:09 am
- Location: Japan