amankazi Posted November 19, 2008 Report Share Posted November 19, 2008 In general chart can be drawn for, Graphing Statistics & Data. I have to represent the Y-axis labels using the rules of Significant digit and 1-2-5 principal. Does, chartFx supports this? Quote Link to comment Share on other sites More sharing options...
TomasT Posted November 19, 2008 Report Share Posted November 19, 2008 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 Quote Link to comment Share on other sites More sharing options...
amankazi Posted November 19, 2008 Author Report Share Posted November 19, 2008 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 Quote Link to comment Share on other sites More sharing options...
TomasT Posted November 20, 2008 Report Share Posted November 20, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.