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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...