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 )
})
Optional
props: Partial<VisibleFillStyleProperties>Object containing any amount of IndividualPointFill properties.
Readonly
colorFor SolidFill: Color which is used to fill shape.
For IndividualPointFill: Fallback Color for filling shape if individual Color was not given.
For PalettedFill: Fallback Color for filling shape if palette was not given.
Readonly
typeConstruct 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) )
New IndividualPointFill object
Either a Color object or a function, which will be used to create a new Color based on current value.
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:
Related information:
For more fill styles, see: