Jump to content
Software FX Community

Set Number of Decimals in Pointlabels


octa

Recommended Posts

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

Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...