Jump to content
Software FX Community

Y-axis labels using the rules of Significant digit and 1-2-5 principal


Recommended Posts


 Can you please provide some details or an example on how exactly you need the Y axis labels to be formatted. The CustomFormat Property allows you to set a template for how the labels will be shown:

chart1.AxisX.LabelsFormat.Format = AxisFormat.Date;

chart1.AxisX.LabelsFormat.CustomFormat = "MMM-yy";

You can get detailed information on how to manipulate the CustomeFormat property in the Chart FX API reference:

API Reference > ChartFX.WinForms > ValueFormat Class > Properties > CustomFormat

Or you can read it here:





Link to comment
Share on other sites

I had already seen the format of axis, but this doesn't speak about the rules I have specified.

Please have a look at the links below, here you can find more details. I want my Y-axis labels to have this rules.

1-2-5 rule


 Significant digit


Link to comment
Share on other sites


The 1-2-5 rule speaks about the proposed step values for Y axis scales. While you can achieve any of those scale represenations by simply using the step property of the axis, Chart FX will not adhere to that rule when automatically calculting the axis. If what you need is for the the chart to automatically adjust the scale to the 1-2-5 rule based on the plotted values, you will need to handle that in your code in order to evaluate the data and set the step property accordingly.





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.

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...