Interface: BarCalc
Experimental
Bar calcdata. Index-aligned typed arrays, one entry per bar.
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
bars | public | StackOutput | Experimental Layout and stacking result (updated by crossTraceCalc). |
base | readonly | Float64Array | Experimental User base per bar (calc space), 0 where unset. |
ends | public | object | Experimental Bar ends (x, y linear): where error bars attach (center of the bar's far edge). |
ends.x | public | Float64Array | - |
ends.y | public | Float64Array | - |
errorX | public | ErrorBarCalc | undefined | Experimental Error bars along x and y, at the bar ends (after stacking, as in Plotly). |
errorY | public | ErrorBarCalc | undefined | Experimental |
floor | public | boolean | Experimental Some bar starts at -Infinity (log axis without a positive base): draw it from the axis floor. |
hasBase | readonly | Uint8Array | Experimental 1 where the user set a base for that bar. |
length | readonly | number | Experimental |
minSpacing? | readonly | number | Experimental A minimum position spacing (Plotly's width1): a histogram collapsed to one bin knows its bin width, which then sizes the bars. Unset for bars. |
orientation | readonly | "v" | "h" | Experimental |
overlayAlone? | readonly | boolean | Experimental In overlay mode, lay this trace out on its own, with its own position spacing (Plotly lays out every overlaid trace alone): overlaid histograms keep their own bin widths. Unset for bars, which share one layout. |
period? | readonly | object | Experimental With xperiod (yperiod for horizontal bars): the period of each bar on the position axis (linear), which pos is aligned within. Hover along that axis catches a bar over its period (Plotly's bar/hover.js). Unset without a period. |
period.ends | readonly | Float64Array | - |
period.starts | readonly | Float64Array | - |
pos | readonly | Float64Array | Experimental Positions (linear coordinates of the position axis); NaN where a bar cannot be placed. |
positionValues? | readonly | ArrayLike<unknown> | Experimental The position of each bar as label and template value (%{label}, %{x}), when it is not the trace's position coordinate: a histogram's bin centers (calc space). Unset for bars. |
posType | readonly | AxisType | undefined | Experimental Position-axis type, when known. |
s0 | public | Float64Array | Experimental Bar start / end on the size axis, linear. -Infinity: starts below a log axis. |
s1 | public | Float64Array | Experimental |
size | readonly | Float64Array | Experimental Lengths in calc space of the size axis (ms on date axes, raw values on log axes). |
sizeType | readonly | AxisType | undefined | Experimental Size-axis type, when known. |