Choyee Posted August 12, 2010 Report Posted August 12, 2010 Hi, What should I do to display data between 0 and 1.0 with step of 0.2? This is what I did: chart1.AxisY.Min = 0; chart1.AxisY.Max = 1; chart1.AxisY.Step = new DataUnit(0.2); And Y-Axis labels show '0 0 1 1 1' for each step. Also, can I set data between 0 and 0.001 or something like that? Thanks. Quote
JuanC Posted August 13, 2010 Report Posted August 13, 2010 You can change the number of decimals as follows chart1.AxisY.Labels.Decimals = 3; Also note that even though data-related properties are declared of type DataUnit (including Min, Max, Step) you do not have to manually create the DatatUnit objects as they expose intrinsic cast from double and datetime which allows you to write this chart1.AxisY.Step = 0.2; But if the X axis is of type datetime you can write this chart1.AxisX.Min = new DateTime(...) I am not sure I understand the last question about 0 and 0.001, is this also related to number of decimals? JuanC Quote
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.