Construct a IndividualPointFill object, specifying any amount of its properties.
// Example, for most cases no arguments are necessary (fallback color will be black).
const individualPointFill = new IndividualPointFill()
// Example, specify fallback color for data points without associated color.
const individualPointFill = new IndividualPointFill({
color: ColorRGBA( 0, 255, 0 )
})
Object containing any amount of IndividualPointFill properties.
Get automatically computed highlight style.
FillStyle object
Get Fallback Color of IndividualPointFill.
Color object
Construct a new IndividualPointFill object based on this one, but with modified fallback color.
Example:
// specify new color
individualfill.setColor( ColorHEX('#F00') )
// change individual color properties
individualfill.setColor( color => color.setA(80) )
Either a Color object or a function, which will be used to create a new Color based on current value.
New IndividualPointFill object
Unlike other types in Immutable.js, the Record()
function creates a new
Record Factory, which is a function that creates Record instances.
See above for examples of using Record()
.
Note: Record
is a factory function and not a class, and does not use the
new
keyword during construction.
Style class for describing a individually configured fill color, enabling users to specify data-point specific colors.
Instances of IndividualPointFill, like all LCJS style classes, are immutable, meaning that its setters don't modify the actual object, but instead return a completely new modified object.
Properties of IndividualPointFill:
color
: fallback color to be used with data points that were not associated with a color. Construct a LCJS color using one of the many available factories:IndividualPointFill Usage:
IndividualPointFill can be used with a select group of series:
// Example, individual points fill color. PointSeries.setPointFillStyle(new IndividualPointFill())
Related information:
For more fill styles, see: