octa Posted January 21, 2011 Report Share Posted January 21, 2011 Is there any way to set the number of decimals in pointlabels in code behind? Thanks, Dan Quote Link to comment Share on other sites More sharing options...
JuanC Posted January 22, 2011 Report Share Posted January 22, 2011 Each axis controls not only how labels are displayed but also how values are displayed that are "tied" to such axis, for example point labels, tooltips and data view. >> To change the labels chart1.AxisY.Labels.Decimals = 1; >> To change other values displayed according to this axis chart1.AxisY.DataFormat.Decimals = 3; Also note that both Labels and DataFormat support other properties such as Format (Currency, Numeric, etc.), CustomFormat and ScaleUnit that contribute to how values are formatted. JuanC Quote Link to comment Share on other sites More sharing options...
octa Posted January 31, 2011 Author Report Share Posted January 31, 2011 Thanks! 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.