paul.koanui Posted October 22, 2007 Report Share Posted October 22, 2007 Hello, I have a chart with an Y-Axis which I need to display only whole numbers. At the same time, however, I want the data point labels to show their value to 2 decimals. I thought that changing the Decimals property of the LabelsFormat property to zero would solve the problem. It did for the axis labels but it also rounds my data point labels to the nearest whole number as well. How can I achieve the type of formatting that I'm looking for? Thanks, Paul Link to comment Share on other sites More sharing options...
maximop Posted October 22, 2007 Report Share Posted October 22, 2007 You need to set the Decimals property of the data format and enable the point labels as follows: chart1.AxisY.LabelsFormat.Decimals = 0; chart1.AxisY.DataFormat.Decimals = 2; chart1.AllSeries.PointLabels.Visible = true;This will show whole numbers for the y-axis labels, and decimals for the point labels. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.