Jump to content
Software FX Community

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


amankazi
 Share

Recommended Posts

Hi,

 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:

 http://support.softwarefx.com/OnlineDoc/CfxNet70//WinAPI/ValueFormat_CustomFormat.htm

Regards,

 TT

 

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

http://books.google.co.in/books?id=Mome27I8KgsC&pg=PA20&lpg=PA20&dq=1+2+5+rule+in+numerical+scale&source=web&ots=CugjCE8Kee&sig=XbzYJ7tg14crvo9Vn6cfz281uRE&hl=en&sa=X&oi=book_result&resnum=4&ct=result#PPA20,M1

 Significant digit

http://en.wikipedia.org/wiki/Significant_digit

Link to comment
Share on other sites

Ok,.

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.

 Regards,

 

TT

 

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