SharpPlot.XGridThreshold Property

Set X grid threshold which will draw gridlines at major ticks. The default value is 80% of standard tick length.

public int XGridThreshold {get; set;}

Example

sp.XGridThreshold = 50;

This will draw gridlines at any major ticks above 50% of the standard length. Typically this would be used with spanned X-labels to create a hierarchical timeseries, for example gridlines at year boundaries with monthly (small) tickmarks and standard tickmarks at the year-end.

See also ...

SharpPlot Members | SetXTickLengths Method