Jump to content
Software FX Community

Percentage formating


RaV

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...