Skip to content

@graphty/graphty-element / session / HistogramOptions

Interface: HistogramOptions ​

Defined in: graphty-element/src/session/results/types.ts:737

How a histogram is cut.

Properties ​

bins? ​

readonly optional bins?: number

Defined in: graphty-element/src/session/results/types.ts:739

How many bins to produce. The element picks a sensible number when this is absent.


scale? ​

readonly optional scale?: "linear" | "auto" | "log"

Defined in: graphty-element/src/session/results/types.ts:747

Whether the bin edges are evenly spaced or logarithmic.

"auto" takes whichever the column's own spread argues for, which is what a chart drawn without a reader's instruction should do. Whatever is asked for, Histogram.scale reports what was applied.