|
Percrentage Problem in XY Chart |
Posted by Karthik on Sep-07-2009 21:58 |
|
In Piechart using this
c.setData(data, labels);
I am Getting
sample: 4(0.13%)
here
data is double array which contains count ie., 4
labels is string array which contains Title with Count i.e sample: 4
Result is sample: 4(0.13%)
How to do this for XY Chart
And I am getting Percentage in the below format for pie chart
wcvPieChart.ImageMap = c.getHTMLImageMap("", "", "title='{label} ({percent}%)'");
I am not getting in XY Chart Using Below code
wcvPieChart.ImageMap = c.getHTMLImageMap("", " ", "title='{xLabel}({percent}%)'"); |
Re: Percrentage Problem in XY Chart |
Posted by Peter Kwan on Sep-08-2009 00:35 |
|
Hi Karthik,
There are several meanings of percentage in an XYChart.
For example, consider a stacked bar chart with 3 data sets. A percentage can mean the percentage of a bar segment relative to the bar that contains the segment, or it can mean the percentage of a bar segment relative to the sum of all data in all data sets. The former percentage is represented as {percent}, and the latter is represented as {gpercent}.
For some chart types (such as a box-whisker chart, a candlestick chart, a scatter chart, etc), the meaning of percentage is undefined.
If you need further help, would you mind to attach your chart to help me understand what you mean by "percentage"?
Regards
Peter Kwan |
|