Jump to content
Software FX Community

Shifting the major grid line..


himpact

Recommended Posts

Hi,

I have a histogram chart using the xy line plot.

The sections are working properly, but I cannot get the gridline to shift.

Basically, I need the grid line to start at say 0.5, but the steps are 2.

The grid line will start at 0, 2, 4,, etc instead of the intended, 0.5, 2.5, 4.5 etc.

Thanks

 HL

Link to comment
Share on other sites

Set:

chart1.AxisX.Style &= ~AxisStyles.AutoFirstLabel;

chart1.AxisX.LabelsFormat.Decimals = 1;

Assuming your X-Axis Min is 0.5, you will get what you need. If your X-Axis min is zero and you want the labels to start at 0.5 regardless, then do this instead:

chart1.AxisX.FirstLabel = 1;

chart1.AxisX.LabelValue = 0.5;

Please review the documentation on these properties.

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.

×
×
  • Create New...