Georg.Meyer Posted September 6, 2010 Report Share Posted September 6, 2010 How can I format the numerical values in the data view of a chart independently of the corresponding numerical labels of the y-axis?Currently, I use the following code, which changes both the format of the y-axis labels and the format of the data-view values: chart.AxisY.Labels.CustomFormat = "0.00";chart.DataView.Visibility = Visibility.Visible;However, I would like to use the format "0.##" for the y-axis labels and the format "0.00" for the data-view values. Quote Link to comment Share on other sites More sharing options...
JuanC Posted September 7, 2010 Report Share Posted September 7, 2010 Whenever we display the data (tooltips, data view, etc.) we will honor the DataFormat property, e.g. chart1.AxisY.Labels.CustomFormat = "0.##"; chart1.AxisY.DataFormat.CustomFormat = "0.00"; JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.