Jump to content
Software FX Community

Set Y-Axis Scale between 0 and 1


Recommended Posts


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?





Link to comment
Share on other sites

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?


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