Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am using Chart control in .NET 3.5 framework. I set my secondary Y-Axis which shows percenatge value. I follow the code below
in my source code file:
;Set the lable format as % for secoudry Y axis
chart.ChartAreas(strChartArea).AxisY2.LabelStyle.Format = "P0"

Labels on Y-Axis in output is having a dispaly format of 10,000% as max value on axis but i have to set it for 100% as max value on axis/

How can i do this?
Posted
Updated 26-May-10 23:11pm
v4

1 solution

I just got the answer.
C++
chart.ChartAreas(strChartArea).AxisY2.LabelStyle.Format = "{0:0}%"

:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900