chartjs-colorful

chartjs-colorful - v1.0.0 / ColorfulScale

Class: ColorfulScale<O>

colorful-scale.

Type parameters

Name Type
O extends ColorfulScaleOptions = ColorfulScaleOptions

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ColorfulScale<O>(cfg)

Type parameters

Name Type
O extends ColorfulScaleOptions<O> = ColorfulScaleOptions

Parameters

Name Type
cfg any

Overrides

LinearScale<O\>.constructor

Properties

defaults

Static Readonly defaults: _DeepPartialObject<ColorfulScaleOptions> = colorfulScaleDefaults

Overrides

LinearScale.defaults


descriptors

Static Readonly descriptors: Object

Type declaration

Name Type
_scriptable boolean

id

Static Readonly id: "colorful"

Overrides

LinearScale.id

Methods

_computeGridLineItems

_computeGridLineItems(chartArea): { tx1: number ; tx2: number }[]

Parameters

Name Type
chartArea ChartArea

Returns

{ tx1: number ; tx2: number }[]


_createGradient

_createGradient(): CanvasGradient

Returns

CanvasGradient


_getGradient

_getGradient(): CanvasGradient

Returns

CanvasGradient


afterFit

afterFit(): void

Returns

void

Overrides

LinearScale.afterFit


drawGrid

drawGrid(chartArea): void

Parameters

Name Type
chartArea ChartArea

Returns

void

Overrides

LinearScale.drawGrid


drawLabels

drawLabels(chartArea): void

Parameters

Name Type
chartArea ChartArea

Returns

void

Overrides

LinearScale.drawLabels


init

init(options): void

Parameters

Name Type
options O

Returns

void

Overrides

LinearScale.init