SharpPlot Reference > SharpPlot Properties > XGridThreshold Property SharpPlot.XGridThreshold Property
Set X grid threshold which will draw gridlines at major ticks. The default value is 80% of standard tick length, or 4pt if XTickStyle is Absolute.
public double 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.
sp.XGridThreshold = 1.5;
This will draw vertical grid lines at any major tickmarks which are above 1.5pt if the XTickStyle has been set to Absolute.
See also ...SharpPlot Members | SharpPlot.XTickStyle Property | SharpPlot.SetXTickLengths Method
Send comments on this topic © Dyalog Ltd 2021
|