Instances of Color, 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.
Color creation:
Create LCJS colors using any of the many available factories:
Watch out! A common misuse is to attempt styling components directly with color.
Color is the lowest level style class in whole LCJS library, and is never used directly for styling components,
instead it must be wrapped within a more descriptive style type.
For example, SolidFill describes coloring with single, solid color.
Style class for describing a color.
Instances of Color, 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.
Color creation:
Create LCJS colors using any of the many available factories:
Color usage:
Watch out! A common misuse is to attempt styling components directly with color. Color is the lowest level style class in whole LCJS library, and is never used directly for styling components, instead it must be wrapped within a more descriptive style type. For example, SolidFill describes coloring with single, solid color.
Example usage:
Example 1, specifying chart title color using ColorRGBA and SolidFill
Example 2, specifying line series stroke style using ColorRGBA, SolidFill and SolidLine