graph percentage
I am using Dual Axis Clustered graph. One of the Y-axis show the percentages.
I am able to get the Y-axis display as #% format. But this #% format is multiplying the percentage value*100.
setTextFormatPreset(getY2Label(),2);
How to display the percentage as 10%,20% etc., instead of displaying the percentage as 100%,200% etc., on the Y-axis label.
Thanks.
May 26, 2005, 09:12 AM
<JG>That's exactly what the affect is according to the documentation
�% Divides by 100 and show as percentage.�
Which means you must not supply it a true percentage value to work with
You probably create your percentage using something like
PCENT/D12.2=((RETAIL_COST - DEALER_COST)/RETAIL_COST)*100;
Just change it to
PCENT/D12.2=((RETAIL_COST - DEALER_COST)/RETAIL_COST);
If your percentage is coming in as a value from your datasource then divide it by 100 in a define
Hi JG,
Thank you for the explanation. If I divide the percent by hundred, when I do the mouse over on the plot points, the percentage would be shown as 0.8 instead of 80%. So, basically what I want do is diplay the mouseover as 80% as well as the axis value as 80%. does that make sense?
May 27, 2005, 04:16 PM
<JG>That makes perfect sense and I don�t have an answer, but I�ll cogitate it over the weekend and might find something. Basic problem is that mouseover displays actual value and not graphical value.