English
Class: D3PHistogram
Defined in: core/transforms.ts:250
Bins the values of a series. histogram.series has the columns x (middle of the bin), y (the count), x0 and x1 (the edges): bars use the edges as their width, and an auto domain fits the X axis to them.
Extends
D3PTransform
Constructors
Constructor
ts
new D3PHistogram(opts): D3PHistogram;Defined in: core/transforms.ts:254
Parameters
opts
Returns
D3PHistogram
Overrides
D3PTransform.constructor
Methods
compute()
ts
protected compute(): void;Defined in: core/transforms.ts:262
Counts the values of the input in each bin.
Returns
void
Overrides
D3PTransform.compute
destroy()
ts
destroy(): void;Defined in: core/object.ts:51
Detaches the object from all its charts, announces destroyed and releases its subscriptions. The object cannot be used afterwards.
Returns
void
Inherited from
D3PTransform.destroy
fire()
ts
protected fire<P>(event, ...args): void;Defined in: core/object.ts:41
Emits one of its own events on the bus.
Type Parameters
P
P
Parameters
event
D3PEvent<P>
args
...P extends void ? [] : [payload: P]
Returns
void
Inherited from
D3PTransform.fire
onDestroy()
ts
protected onDestroy(): void;Defined in: core/transforms.ts:268
Stops listening to the input and destroys the series it made.
Returns
void
Overrides
D3PTransform.onDestroy
refresh()
ts
protected refresh(): void;Defined in: core/transforms.ts:32
Computes again, and announces changed.
Returns
void
Inherited from
D3PTransform.refresh
watch()
ts
protected watch(): void;Defined in: core/transforms.ts:21
Recompute whenever an input changes, and when it is destroyed.
Returns
void
Inherited from
D3PTransform.watch
Properties
bus
ts
readonly bus: D3PBus;Defined in: core/object.ts:27
The bus the object uses for its events.
Inherited from
D3PTransform.bus
e
ts
readonly e: D3PEventTable<M & object>;Defined in: core/object.ts:29
The events of the object, by name: destroyed for all, and its own (axis.e.scaleChanged).
Inherited from
D3PTransform.e
inputs
ts
protected readonly inputs: D3PSeries[];Defined in: core/transforms.ts:16
Inherited from
D3PTransform.inputs
isDestroying
ts
isDestroying: boolean = false;Defined in: core/object.ts:31
Set when destroy starts: the object is not drawn after that.
Inherited from
D3PTransform.isDestroying
series
ts
readonly series: D3PSeries;Defined in: core/transforms.ts:252
The series the histogram makes.
subs
ts
protected readonly subs: D3PSubscriptions;Defined in: core/object.ts:33
The subscriptions of the object, released when it is destroyed.
Inherited from
D3PTransform.subs