Interface: RadialLinearScale<O>

Type parameters

NameType
Oextends RadialLinearScaleOptions = RadialLinearScaleOptions

Hierarchy

  • Scale<O>

    RadialLinearScale

Properties

active

Readonly active: boolean

Inherited from

Scale.active

Defined in

element.d.ts:7RadialLinearScale - 图1 (opens new window)


axis

axis: string

Inherited from

Scale.axis

Defined in

index.esm.d.ts:1239RadialLinearScale - 图2 (opens new window)


bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Inherited from

Scale.bottom

Defined in

layout.d.ts:41RadialLinearScale - 图3 (opens new window)


chart

Readonly chart: Chart<keyof ChartTypeRegistry, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Inherited from

Scale.chart

Defined in

index.esm.d.ts:1229RadialLinearScale - 图4 (opens new window)


ctx

Readonly ctx: CanvasRenderingContext2D

Inherited from

Scale.ctx

Defined in

index.esm.d.ts:1228RadialLinearScale - 图5 (opens new window)


fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Inherited from

Scale.fullSize

Defined in

layout.d.ts:17RadialLinearScale - 图6 (opens new window)


height

height: number

Height of item. Must be valid after update()

Inherited from

Scale.height

Defined in

layout.d.ts:25RadialLinearScale - 图7 (opens new window)


id

Readonly id: string

Inherited from

Scale.id

Defined in

index.esm.d.ts:1226RadialLinearScale - 图8 (opens new window)


labelRotation

labelRotation: number

Inherited from

Scale.labelRotation

Defined in

index.esm.d.ts:1240RadialLinearScale - 图9 (opens new window)


left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Inherited from

Scale.left

Defined in

layout.d.ts:29RadialLinearScale - 图10 (opens new window)


max

max: number

Inherited from

Scale.max

Defined in

index.esm.d.ts:1242RadialLinearScale - 图11 (opens new window)


maxHeight

maxHeight: number

Inherited from

Scale.maxHeight

Defined in

index.esm.d.ts:1232RadialLinearScale - 图12 (opens new window)


maxWidth

maxWidth: number

Inherited from

Scale.maxWidth

Defined in

index.esm.d.ts:1231RadialLinearScale - 图13 (opens new window)


min

min: number

Inherited from

Scale.min

Defined in

index.esm.d.ts:1241RadialLinearScale - 图14 (opens new window)


options

Readonly options: O

Inherited from

Scale.options

Defined in

element.d.ts:8RadialLinearScale - 图15 (opens new window)


paddingBottom

paddingBottom: number

Inherited from

Scale.paddingBottom

Defined in

index.esm.d.ts:1235RadialLinearScale - 图16 (opens new window)


paddingLeft

paddingLeft: number

Inherited from

Scale.paddingLeft

Defined in

index.esm.d.ts:1236RadialLinearScale - 图17 (opens new window)


paddingRight

paddingRight: number

Inherited from

Scale.paddingRight

Defined in

index.esm.d.ts:1237RadialLinearScale - 图18 (opens new window)


paddingTop

paddingTop: number

Inherited from

Scale.paddingTop

Defined in

index.esm.d.ts:1234RadialLinearScale - 图19 (opens new window)


position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Inherited from

Scale.position

Defined in

layout.d.ts:9RadialLinearScale - 图20 (opens new window)


right

right: number

Right edge of the item. Set by layout system and cannot be used in update

Inherited from

Scale.right

Defined in

layout.d.ts:37RadialLinearScale - 图21 (opens new window)


ticks

ticks: Tick[]

Inherited from

Scale.ticks

Defined in

index.esm.d.ts:1243RadialLinearScale - 图22 (opens new window)


top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Inherited from

Scale.top

Defined in

layout.d.ts:33RadialLinearScale - 图23 (opens new window)


type

Readonly type: string

Inherited from

Scale.type

Defined in

index.esm.d.ts:1227RadialLinearScale - 图24 (opens new window)


weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Inherited from

Scale.weight

Defined in

layout.d.ts:13RadialLinearScale - 图25 (opens new window)


width

width: number

Width of item. Must be valid after update()

Inherited from

Scale.width

Defined in

layout.d.ts:21RadialLinearScale - 图26 (opens new window)


x

Readonly x: number

Inherited from

Scale.x

Defined in

element.d.ts:5RadialLinearScale - 图27 (opens new window)


y

Readonly y: number

Inherited from

Scale.y

Defined in

element.d.ts:6RadialLinearScale - 图28 (opens new window)

Methods

afterBuildTicks

afterBuildTicks(): void

Returns

void

Inherited from

Scale.afterBuildTicks

Defined in

index.esm.d.ts:1323RadialLinearScale - 图29 (opens new window)


afterCalculateLabelRotation

afterCalculateLabelRotation(): void

Returns

void

Inherited from

Scale.afterCalculateLabelRotation

Defined in

index.esm.d.ts:1329RadialLinearScale - 图30 (opens new window)


afterDataLimits

afterDataLimits(): void

Returns

void

Inherited from

Scale.afterDataLimits

Defined in

index.esm.d.ts:1320RadialLinearScale - 图31 (opens new window)


afterFit

afterFit(): void

Returns

void

Inherited from

Scale.afterFit

Defined in

index.esm.d.ts:1332RadialLinearScale - 图32 (opens new window)


afterSetDimensions

afterSetDimensions(): void

Returns

void

Inherited from

Scale.afterSetDimensions

Defined in

index.esm.d.ts:1317RadialLinearScale - 图33 (opens new window)


afterTickToLabelConversion

afterTickToLabelConversion(): void

Returns

void

Inherited from

Scale.afterTickToLabelConversion

Defined in

index.esm.d.ts:1326RadialLinearScale - 图34 (opens new window)


afterUpdate

afterUpdate(): void

Returns

void

Inherited from

Scale.afterUpdate

Defined in

index.esm.d.ts:1314RadialLinearScale - 图35 (opens new window)


beforeBuildTicks

beforeBuildTicks(): void

Returns

void

Inherited from

Scale.beforeBuildTicks

Defined in

index.esm.d.ts:1321RadialLinearScale - 图36 (opens new window)


beforeCalculateLabelRotation

beforeCalculateLabelRotation(): void

Returns

void

Inherited from

Scale.beforeCalculateLabelRotation

Defined in

index.esm.d.ts:1327RadialLinearScale - 图37 (opens new window)


beforeDataLimits

beforeDataLimits(): void

Returns

void

Inherited from

Scale.beforeDataLimits

Defined in

index.esm.d.ts:1318RadialLinearScale - 图38 (opens new window)


beforeFit

beforeFit(): void

Returns

void

Inherited from

Scale.beforeFit

Defined in

index.esm.d.ts:1330RadialLinearScale - 图39 (opens new window)


beforeLayout

Optional beforeLayout(): void

Called before the layout process starts

Returns

void

Inherited from

Scale.beforeLayout

Defined in

layout.d.ts:46RadialLinearScale - 图40 (opens new window)


beforeSetDimensions

beforeSetDimensions(): void

Returns

void

Inherited from

Scale.beforeSetDimensions

Defined in

index.esm.d.ts:1315RadialLinearScale - 图41 (opens new window)


beforeTickToLabelConversion

beforeTickToLabelConversion(): void

Returns

void

Inherited from

Scale.beforeTickToLabelConversion

Defined in

index.esm.d.ts:1324RadialLinearScale - 图42 (opens new window)


beforeUpdate

beforeUpdate(): void

Returns

void

Inherited from

Scale.beforeUpdate

Defined in

index.esm.d.ts:1312RadialLinearScale - 图43 (opens new window)


buildTicks

buildTicks(): Tick[]

Returns

Tick[]

Inherited from

Scale.buildTicks

Defined in

index.esm.d.ts:1322RadialLinearScale - 图44 (opens new window)


calculateLabelRotation

calculateLabelRotation(): void

Returns

void

Inherited from

Scale.calculateLabelRotation

Defined in

index.esm.d.ts:1328RadialLinearScale - 图45 (opens new window)


configure

configure(): void

Returns

void

Inherited from

Scale.configure

Defined in

index.esm.d.ts:1313RadialLinearScale - 图46 (opens new window)


determineDataLimits

determineDataLimits(): void

Returns

void

Inherited from

Scale.determineDataLimits

Defined in

index.esm.d.ts:1319RadialLinearScale - 图47 (opens new window)


draw

draw(chartArea): void

Draws the element

Parameters

NameType
chartAreaChartArea

Returns

void

Inherited from

Scale.draw

Defined in

layout.d.ts:50RadialLinearScale - 图48 (opens new window)


drawGrid

drawGrid(chartArea): void

Parameters

NameType
chartAreaChartArea

Returns

void

Inherited from

Scale.drawGrid

Defined in

index.esm.d.ts:1248RadialLinearScale - 图49 (opens new window)


drawLabels

drawLabels(chartArea): void

Parameters

NameType
chartAreaChartArea

Returns

void

Inherited from

Scale.drawLabels

Defined in

index.esm.d.ts:1247RadialLinearScale - 图50 (opens new window)


drawTitle

drawTitle(chartArea): void

Parameters

NameType
chartAreaChartArea

Returns

void

Inherited from

Scale.drawTitle

Defined in

index.esm.d.ts:1246RadialLinearScale - 图51 (opens new window)


fit

fit(): void

Returns

void

Inherited from

Scale.fit

Defined in

index.esm.d.ts:1331RadialLinearScale - 图52 (opens new window)


generateTickLabels

generateTickLabels(ticks): void

Parameters

NameType
ticksTick[]

Returns

void

Inherited from

Scale.generateTickLabels

Defined in

index.esm.d.ts:1325RadialLinearScale - 图53 (opens new window)


getBasePixel

getBasePixel(): number

Returns the pixel for the minimum chart value The coordinate (0, 0) is at the upper-left corner of the canvas

Returns

number

Inherited from

Scale.getBasePixel

Defined in

index.esm.d.ts:1304RadialLinearScale - 图54 (opens new window)


getBasePosition

getBasePosition(index): Object

Parameters

NameType
indexnumber

Returns

Object

NameType
anglenumber
xnumber
ynumber

Defined in

index.esm.d.ts:3477RadialLinearScale - 图55 (opens new window)


getBaseValue

getBaseValue(): number

Returns

number

Inherited from

Scale.getBaseValue

Defined in

index.esm.d.ts:1298RadialLinearScale - 图56 (opens new window)


getDecimalForPixel

getDecimalForPixel(pixel): number

Parameters

NameType
pixelnumber

Returns

number

Inherited from

Scale.getDecimalForPixel

Defined in

index.esm.d.ts:1254RadialLinearScale - 图57 (opens new window)


getDistanceFromCenterForValue

getDistanceFromCenterForValue(value): number

Parameters

NameType
valuenumber

Returns

number

Defined in

index.esm.d.ts:3472RadialLinearScale - 图58 (opens new window)


getIndexAngle

getIndexAngle(index): number

Parameters

NameType
indexnumber

Returns

number

Defined in

index.esm.d.ts:3471RadialLinearScale - 图59 (opens new window)


getLabelForValue

getLabelForValue(value): string

Used to get the label to display in the tooltip for the given value

Parameters

NameType
valuenumber

Returns

string

Inherited from

Scale.getLabelForValue

Defined in

index.esm.d.ts:1274RadialLinearScale - 图60 (opens new window)


getLabels

getLabels(): string[]

Returns

string[]

Inherited from

Scale.getLabels

Defined in

index.esm.d.ts:1311RadialLinearScale - 图61 (opens new window)


getLineWidthForValue

getLineWidthForValue(value): number

Returns the grid line width at given value

Parameters

NameType
valuenumber

Returns

number

Inherited from

Scale.getLineWidthForValue

Defined in

index.esm.d.ts:1279RadialLinearScale - 图62 (opens new window)


getMatchingVisibleMetas

getMatchingVisibleMetas(type?): ChartMeta<Element<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof ChartTypeRegistry>[]

Parameters

NameType
type?string

Returns

ChartMeta<Element<AnyObject, AnyObject>, Element<AnyObject, AnyObject>, keyof ChartTypeRegistry>[]

Inherited from

Scale.getMatchingVisibleMetas

Defined in

index.esm.d.ts:1244RadialLinearScale - 图63 (opens new window)


getMinMax

getMinMax(canStack): Object

Parameters

NameType
canStackboolean

Returns

Object

NameType
maxnumber
minnumber

Inherited from

Scale.getMinMax

Defined in

index.esm.d.ts:1309RadialLinearScale - 图64 (opens new window)


getPadding

Optional getPadding(): ChartArea

Returns an object with padding on the edges

Returns

ChartArea

Inherited from

Scale.getPadding

Defined in

layout.d.ts:54RadialLinearScale - 图65 (opens new window)


getPixelForDecimal

getPixelForDecimal(decimal): number

Utility for getting the pixel location of a percentage of scale The coordinate (0, 0) is at the upper-left corner of the canvas

Parameters

NameType
decimalnumber

Returns

number

Inherited from

Scale.getPixelForDecimal

Defined in

index.esm.d.ts:1261RadialLinearScale - 图66 (opens new window)


getPixelForTick

getPixelForTick(index): number

Returns the location of the tick at the given index The coordinate (0, 0) is at the upper-left corner of the canvas

Parameters

NameType
indexnumber

Returns

number

Inherited from

Scale.getPixelForTick

Defined in

index.esm.d.ts:1268RadialLinearScale - 图67 (opens new window)


getPixelForValue

getPixelForValue(value, index?): number

Returns the location of the given data point. Value can either be an index or a numerical value The coordinate (0, 0) is at the upper-left corner of the canvas

Parameters

NameType
valuenumber
index?number

Returns

number

Inherited from

Scale.getPixelForValue

Defined in

index.esm.d.ts:1288RadialLinearScale - 图68 (opens new window)


getPointLabelPosition

getPointLabelPosition(index): ChartArea

Parameters

NameType
indexnumber

Returns

ChartArea

Defined in

index.esm.d.ts:3476RadialLinearScale - 图69 (opens new window)


getPointPosition

getPointPosition(index, distanceFromCenter): Object

Parameters

NameType
indexnumber
distanceFromCenternumber

Returns

Object

NameType
anglenumber
xnumber
ynumber

Defined in

index.esm.d.ts:3474RadialLinearScale - 图70 (opens new window)


getPointPositionForValue

getPointPositionForValue(index, value): Object

Parameters

NameType
indexnumber
valuenumber

Returns

Object

NameType
anglenumber
xnumber
ynumber

Defined in

index.esm.d.ts:3475RadialLinearScale - 图71 (opens new window)


getProps

getProps<P>(props, final?): Pick<unknown, P[number]>

Type parameters

NameType
Pextends never[]

Parameters

NameType
propsP
final?boolean

Returns

Pick<unknown, P[number]>

Inherited from

Scale.getProps

Defined in

element.d.ts:12RadialLinearScale - 图72 (opens new window)


getTicks

getTicks(): Tick[]

Returns

Tick[]

Inherited from

Scale.getTicks

Defined in

index.esm.d.ts:1310RadialLinearScale - 图73 (opens new window)


getUserBounds

getUserBounds(): Object

Returns

Object

NameType
maxnumber
maxDefinedboolean
minnumber
minDefinedboolean

Inherited from

Scale.getUserBounds

Defined in

index.esm.d.ts:1308RadialLinearScale - 图74 (opens new window)


getValueForDistanceFromCenter

getValueForDistanceFromCenter(distance): number

Parameters

NameType
distancenumber

Returns

number

Defined in

index.esm.d.ts:3473RadialLinearScale - 图75 (opens new window)


getValueForPixel

getValueForPixel(pixel): number

Used to get the data value from a given pixel. This is the inverse of getPixelForValue The coordinate (0, 0) is at the upper-left corner of the canvas

Parameters

NameType
pixelnumber

Returns

number

Inherited from

Scale.getValueForPixel

Defined in

index.esm.d.ts:1296RadialLinearScale - 图76 (opens new window)


hasValue

hasValue(): boolean

Returns

boolean

Inherited from

Scale.hasValue

Defined in

element.d.ts:11RadialLinearScale - 图77 (opens new window)


init

init(options): void

Parameters

NameType
optionsO

Returns

void

Inherited from

Scale.init

Defined in

index.esm.d.ts:1306RadialLinearScale - 图78 (opens new window)


isFullSize

isFullSize(): boolean

Returns

boolean

Inherited from

Scale.isFullSize

Defined in

index.esm.d.ts:1334RadialLinearScale - 图79 (opens new window)


isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns

boolean

Inherited from

Scale.isHorizontal

Defined in

layout.d.ts:58RadialLinearScale - 图80 (opens new window)


parse

parse(raw, index): unknown

Parameters

NameType
rawunknown
indexnumber

Returns

unknown

Inherited from

Scale.parse

Defined in

index.esm.d.ts:1307RadialLinearScale - 图81 (opens new window)


setCenterPoint

setCenterPoint(leftMovement, rightMovement, topMovement, bottomMovement): void

Parameters

NameType
leftMovementnumber
rightMovementnumber
topMovementnumber
bottomMovementnumber

Returns

void

Defined in

index.esm.d.ts:3470RadialLinearScale - 图82 (opens new window)


setDimensions

setDimensions(): void

Returns

void

Inherited from

Scale.setDimensions

Defined in

index.esm.d.ts:1316RadialLinearScale - 图83 (opens new window)


tooltipPosition

tooltipPosition(useFinalPosition?): Point

Parameters

NameType
useFinalPosition?boolean

Returns

Point

Inherited from

Scale.tooltipPosition

Defined in

element.d.ts:10RadialLinearScale - 图84 (opens new window)


update

update(width, height, margins?): void

Takes two parameters: width and height.

Parameters

NameType
widthnumber
heightnumber
margins?ChartArea

Returns

void

Inherited from

Scale.update

Defined in

layout.d.ts:64RadialLinearScale - 图85 (opens new window)