chartjs-colorful

chartjs-colorful - v1.0.0

chartjs-colorful - v1.0.0

Table of contents

Namespaces

Classes

Interfaces

Type Aliases

Variables

Functions

Type Aliases

Color

Ƭ Color: string


ColorConverter

Ƭ ColorConverter: (color: Color) => Color

Type declaration

▸ (color): Color

Parameters
Name Type
color Color
Returns

Color


ColorFnNames

Ƭ ColorFnNames: "color" | "color2" | "gradient" | "colors" | "colors2" | "gradients"

color: color by datasetIndex. color2: converted color by datasetIndex. gradient: gradient color by datasetIndex. colors: color by dataIndex.(ex.type=’pie’) colors2: converted color by dataIndex.(ex.type=’pie’) gradients: gradient color by dataIndex.(ex.type=’pie’)


ColorLinear

Ƭ ColorLinear: (value: number) => Color

Type declaration

▸ (value): Color

Given a value in the range [0,1], returns the corresponding color.

Parameters
Name Type Description
value number 0.0, 1.0
Returns

Color


Colors

Ƭ Colors: Color[]


NamedColors

Ƭ NamedColors: Record<string, Colors>


NamedLinear

Ƭ NamedLinear: Record<string, ColorLinear>


Scheme

Ƭ Scheme: Color[]


ScriptableColor

Ƭ ScriptableColor: (ctx: any) => Color | null

Type declaration

▸ (ctx): Color | null

Parameters
Name Type
ctx any
Returns

Color | null


ScriptableValue

Ƭ ScriptableValue: (ctx: any) => number | null | undefined

Type declaration

▸ (ctx): number | null | undefined

Parameters
Name Type
ctx any
Returns

number | null | undefined

Variables

ColorfulPlugin

Const ColorfulPlugin: Plugin<keyof ChartTypeRegistry, ColorfulPluginOptions>


colorfulPluginDatasetDefaults

Const colorfulPluginDatasetDefaults: ColorfulPluginDatasetOptions[]

Functions

isBicolor

isBicolor(what): what is Bicolor

Parameters

Name Type
what any

Returns

what is Bicolor