Create a new instance
Set or get color accessor function. Chart will assign this, not assigned in user code.
Composite charts need the same underlying scale, however, with a different colorAccessor. It is unlikely that it will be used directly.
Generated using TypeDoc
Overrides the color selection algorithm, replacing it with a simple function.
Normally colors will be determined by calling the
colorAccessor
to get a value, and then passing that value through thecolorScale
.But sometimes it is difficult to get a color scale to produce the desired effect. The
colorCalculator
takes the datum and index and returns a color directly.