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:

Hierarchy

Constructors

Properties

Methods

Constructors

  • 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 )
    })

    Parameters

    Returns IndividualPointFill

Properties

color: Color

For 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.

type: "fillstyle" = 'fillstyle'

Methods

  • Get Fallback Color of IndividualPointFill.

    Returns

    Color object

    Returns Color

  • 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) )

    Returns

    New IndividualPointFill object

    Parameters

    Returns IndividualPointFill