Can I reduce the number of vertical grid lines on chart?

Stimulsoft Reports.NET discussion
Post Reply
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Can I reduce the number of vertical grid lines on chart?

Post by IanMcCarthy »

The chart on my databand can display anything from two or three points to several hundred.
The vertical grid lines seem to be drawn for every data point displayed (likewise with major ticks).

The x-axis labels get drawn at regular intervals where space permits.

Is there a way to only have the grid line (tick) drawn if a label is displayed?

Charts with several hundred data points have five or six labels across the x-axis, hundreds of ticks (looks like a millipede) and the chart data area has a hatch
pattern from all the grid lines.

One grid line (tick) for each visible label would be clearer, can this be done?

Ian

Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Can I reduce the number of vertical grid lines on chart?

Post by Edward »

Please use the Step property of the Chart component.

Image

Thank you.
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Can I reduce the number of vertical grid lines on chart?

Post by IanMcCarthy »

What that does is change the number of data points (and hence grid lines and ticks) between each displayed x-axis label.
If I have 100 data points and set step to 10, then I still see 100 grid lines (and ticks) but only 10 x-labels (one every 10 data points).

What I would like to see is one one grid line, one tick and one label every 10 data points.

So with Step = 0, display grid line and tick for each point with visible label.

Changing the setting for Step doesn't change the number of grid lines or ticks displayed, only labels.

Ian
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Can I reduce the number of vertical grid lines on chart?

Post by Vital »

We can provide solution for you, but it take some time.
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Can I reduce the number of vertical grid lines on chart?

Post by IanMcCarthy »

Always gratefull for new features.

Excellent work.

Ian
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Can I reduce the number of vertical grid lines on chart?

Post by Vital »

We have added new property Step to Chart.Area.XAxis.Ticks and to Chart.Area.YAxis.Ticks
Patch will be available on our website at Dec, 18.

Thank you.
IanMcCarthy
Posts: 37
Joined: Wed Oct 11, 2006 3:44 am

Can I reduce the number of vertical grid lines on chart?

Post by IanMcCarthy »

Downloaded latest dll pack and I am able to match the number of ticks and grid lines to the labels, many thanks.

However...

I now notice that the vertical axis draws extra tick marks from the bottom of the chart area, down to the edge of the chart object.

No labels, just ticks.

I didn't get these before.

I'm not setting any step for the vertical axis, it's the default zero value.

Are you getting the same?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Can I reduce the number of vertical grid lines on chart?

Post by Vital »

We can't reproduce this problem. Please send screenshot and report to support [at] stimulsoft [dot] com

Thank you.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Can I reduce the number of vertical grid lines on chart?

Post by Vital »

Fixed. Will be available in build from Dec, 20.

Thank you.
Post Reply