Jump to content
Software FX Community

Percentage formating


RaV
 Share

Recommended Posts

HelloI try to format float values as percentage (either axis.DataFormat.CustomFormat = "#0.00" or DataFormat.Format = ChartFX.WinForms.AxisFormat.Percentage ) and in chart everything is fine but in DataGrid values are 100x greater. With normal decimal formating both chart and grid have good values.How can solve this problem?I'm using ChartFx version 7.0.2893.24916.RegardsRaV

Link to comment
Share on other sites

Use ChartFX.WinForms.AxisFormat.Percentage only if your values go from 0 to 1 and you wnat to see them as a percentage (e.g. 50% of 0.5).

Notice that DataFormat does NOT affect the axis labels, if you want both the axis labels and the datagrid to have the same formatting use:

axis.LabelsFormat.CustomFormat = "#0.00%" 

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...