SharpPlot Reference > SharpPlot Properties > ClassInterval Property

SharpPlot.ClassInterval Property

Set the Class interval for histograms.

A positive value gives the arithmetic interval between histogram bins (their width).

A negative values indicate the number of bins across the X axis.

The default is 0, letting SharpPlot make an intelligent judgement depending on the data you pass to DrawHistogram.

Intervals generally include their lower bound and exclude their upper bound, excepted for the last interval which includes the maximum value when ClassInterval is negative.

public double ClassInterval {get; set;}

Example

sp.ClassInterval = 10; // group data modulo ten
sp.SetXTickMarks(10); // set tickmarks accordingly

See also ...

SharpPlot Members | SharpPlot.DrawHistogram Method


Send comments on this topic
© Dyalog Ltd 2021