Interface: RadialLinearScale<O>

    • RadialLinearScale

    Readonly active: boolean

    Inherited from

    .active

    Defined in

    element.d.ts:7 (opens new window)


    axis

    axis: string

    Inherited from

    .axis

    Defined in

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


    bottom

    bottom: number

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

    Inherited from

    .bottom

    Defined in

    layout.d.ts:41 (opens new window)


    chart

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

    Inherited from

    .chart

    Defined in

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


    ctx

    Readonly ctx: CanvasRenderingContext2D

    Inherited from

    .ctx

    Defined in

    index.esm.d.ts:1188 (opens new window)


    fullSize

    fullSize: boolean

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

    Inherited from

    .fullSize

    Defined in

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


    height

    height: number

    Height of item. Must be valid after update()

    Inherited from

    .height

    Defined in

    layout.d.ts:25 (opens new window)


    id

    Readonly id: string

    Inherited from

    .id

    Defined in

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


    labelRotation

    labelRotation: number

    Inherited from

    .labelRotation

    Defined in

    index.esm.d.ts:1200 (opens new window)


    left

    left: number

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

    Inherited from

    .left

    Defined in

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


    max

    max: number

    Inherited from

    .max

    Defined in

    index.esm.d.ts:1202 (opens new window)


    maxHeight

    maxHeight: number

    Inherited from

    .maxHeight

    Defined in

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


    maxWidth

    maxWidth: number

    Inherited from

    .maxWidth

    Defined in

    index.esm.d.ts:1191 (opens new window)


    min

    min: number

    Inherited from

    .min

    Defined in

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


    options

    Readonly options: O

    Inherited from

    .options

    Defined in

    element.d.ts:8 (opens new window)


    paddingBottom

    paddingBottom: number

    Inherited from

    .paddingBottom

    Defined in

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


    paddingLeft

    paddingLeft: number

    Inherited from

    .paddingLeft

    Defined in

    index.esm.d.ts:1196 (opens new window)


    paddingRight

    paddingRight: number

    Inherited from

    .paddingRight

    Defined in

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


    paddingTop

    paddingTop: number

    Inherited from

    .paddingTop

    Defined in

    index.esm.d.ts:1194 (opens new window)


    position

    position: LayoutPosition

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

    Inherited from

    Scale.

    Defined in


    right

    right: number

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

    Inherited from

    Scale.

    Defined in


    ticks

    ticks: []

    Inherited from

    .ticks

    Defined in

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


    top

    top: number

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

    Inherited from

    .top

    Defined in

    layout.d.ts:33 (opens new window)


    type

    Readonly type: string

    Inherited from

    .type

    Defined in

    index.esm.d.ts:1187RadialLinearScale - 图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

    .weight

    Defined in

    layout.d.ts:13 (opens new window)


    width

    width: number

    Width of item. Must be valid after update()

    Inherited from

    .width

    Defined in

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


    x

    Readonly x: number

    Inherited from

    .x

    Defined in

    element.d.ts:5 (opens new window)


    y

    Readonly y: number

    Inherited from

    .y

    Defined in

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

    afterBuildTicks(): void

    Returns

    void

    Inherited from

    .afterBuildTicks

    Defined in

    index.esm.d.ts:1283 (opens new window)


    afterCalculateLabelRotation

    afterCalculateLabelRotation(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    afterDataLimits

    afterDataLimits(): void

    Returns

    void

    Inherited from

    .afterDataLimits

    Defined in

    index.esm.d.ts:1280 (opens new window)


    afterFit

    afterFit(): void

    Returns

    void

    Inherited from

    Defined in


    afterSetDimensions

    afterSetDimensions(): void

    Returns

    void

    Inherited from

    .afterSetDimensions

    Defined in

    index.esm.d.ts:1277 (opens new window)


    afterTickToLabelConversion

    afterTickToLabelConversion(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    afterUpdate

    afterUpdate(): void

    Returns

    void

    Inherited from

    .afterUpdate

    Defined in

    index.esm.d.ts:1274 (opens new window)


    beforeBuildTicks

    beforeBuildTicks(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    beforeCalculateLabelRotation

    beforeCalculateLabelRotation(): void

    Returns

    void

    Inherited from

    .beforeCalculateLabelRotation

    Defined in

    index.esm.d.ts:1287 (opens new window)


    beforeDataLimits

    beforeDataLimits(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    beforeFit

    beforeFit(): void

    Returns

    void

    Inherited from

    .beforeFit

    Defined in

    index.esm.d.ts:1290 (opens new window)


    beforeLayout

    Optional beforeLayout(): void

    Called before the layout process starts

    Returns

    void

    Inherited from

    Scale.

    Defined in


    beforeSetDimensions

    beforeSetDimensions(): void

    Returns

    void

    Inherited from

    .beforeSetDimensions

    Defined in

    index.esm.d.ts:1275 (opens new window)


    beforeTickToLabelConversion

    beforeTickToLabelConversion(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    beforeUpdate

    beforeUpdate(): void

    Returns

    void

    Inherited from

    .beforeUpdate

    Defined in

    index.esm.d.ts:1272 (opens new window)


    buildTicks

    buildTicks(): Tick[]

    Returns

    Tick[]

    Inherited from

    Scale.

    Defined in


    calculateLabelRotation

    calculateLabelRotation(): void

    Returns

    void

    Inherited from

    .calculateLabelRotation

    Defined in

    index.esm.d.ts:1288 (opens new window)


    configure

    configure(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    determineDataLimits

    determineDataLimits(): void

    Returns

    void

    Inherited from

    .determineDataLimits

    Defined in

    index.esm.d.ts:1279 (opens new window)


    draw

    draw(chartArea): void

    Draws the element

    Parameters

    NameType
    chartArea

    Returns

    void

    Inherited from

    Scale.

    Defined in


    drawGrid

    drawGrid(chartArea): void

    Parameters

    NameType
    chartAreaChartArea

    Returns

    void

    Inherited from

    .drawGrid

    Defined in

    index.esm.d.ts:1208 (opens new window)


    drawLabels

    drawLabels(chartArea): void

    Parameters

    NameType
    chartArea

    Returns

    void

    Inherited from

    Scale.

    Defined in


    drawTitle

    drawTitle(chartArea): void

    Parameters

    NameType
    chartAreaChartArea

    Returns

    void

    Inherited from

    .drawTitle

    Defined in

    index.esm.d.ts:1206 (opens new window)


    fit

    fit(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    generateTickLabels

    generateTickLabels(ticks): void

    Parameters

    NameType
    ticksTick[]

    Returns

    void

    Inherited from

    .generateTickLabels

    Defined in

    index.esm.d.ts:1285 (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

    Inherited from

    Scale.

    Defined in


    getBasePosition

    getBasePosition(index): Object

    Parameters

    NameType
    indexnumber

    Returns

    Object

    NameType
    anglenumber
    xnumber
    ynumber

    Defined in

    index.esm.d.ts:3342 (opens new window)


    getBaseValue

    getBaseValue(): number

    Returns

    number

    Inherited from

    Scale.

    Defined in


    getDecimalForPixel(pixel): number

    Parameters

    NameType
    pixelnumber

    Returns

    number

    Inherited from

    .getDecimalForPixel

    Defined in

    index.esm.d.ts:1214 (opens new window)


    getDistanceFromCenterForValue

    getDistanceFromCenterForValue(value): number

    Parameters

    NameType
    valuenumber

    Returns

    number

    Defined in


    getIndexAngle

    getIndexAngle(index): number

    Parameters

    NameType
    indexnumber

    Returns

    number

    Defined in


    getLabelForValue

    getLabelForValue(value): string

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

    Parameters

    Returns

    string

    Inherited from

    Scale.

    Defined in


    getLabels

    getLabels(): string[]

    Returns

    string[]

    Inherited from

    .getLabels

    Defined in

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


    getLineWidthForValue

    getLineWidthForValue(value): number

    Returns the grid line width at given value

    Parameters

    NameType
    valuenumber

    Returns

    number

    Inherited from

    .getLineWidthForValue

    Defined in

    index.esm.d.ts:1239 (opens new window)


    getMatchingVisibleMetas

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

    Parameters

    NameType
    type?string

    Returns

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

    Inherited from

    .getMatchingVisibleMetas

    Defined in

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


    getMinMax

    getMinMax(canStack): Object

    Parameters

    NameType
    canStackboolean

    Returns

    Object

    NameType
    maxnumber
    minnumber

    Inherited from

    .getMinMax

    Defined in

    index.esm.d.ts:1269 (opens new window)


    getPadding

    Optional getPadding(): ChartArea

    Returns an object with padding on the edges

    Returns

    ChartArea

    Inherited from

    Scale.

    Defined in


    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.

    Defined in


    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.

    Defined in


    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.

    Defined in


    getPointLabelPosition

    getPointLabelPosition(index):

    Parameters

    NameType
    indexnumber

    Returns

    ChartArea

    Defined in

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


    getPointPosition

    getPointPosition(index, distanceFromCenter): Object

    Parameters

    NameType
    indexnumber
    distanceFromCenternumber

    Returns

    Object

    NameType
    anglenumber
    xnumber
    ynumber

    Defined in


    getPointPositionForValue

    getPointPositionForValue(index, ): Object

    Parameters

    Returns

    Object

    NameType
    anglenumber
    xnumber
    ynumber

    Defined in

    index.esm.d.ts:3340RadialLinearScale - 图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.

    Defined in


    getTicks

    getTicks(): []

    Returns

    []

    Inherited from

    .getTicks

    Defined in

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


    getUserBounds

    getUserBounds(): Object

    Returns

    Object

    NameType
    maxnumber
    maxDefinedboolean
    minnumber
    minDefinedboolean

    Inherited from

    Scale.

    Defined in


    getValueForDistanceFromCenter

    getValueForDistanceFromCenter(distance): number

    Parameters

    NameType
    distancenumber

    Returns

    number

    Defined in

    index.esm.d.ts:3338RadialLinearScale - 图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

    .getValueForPixel

    Defined in

    index.esm.d.ts:1256 (opens new window)


    hasValue

    hasValue(): boolean

    Returns

    boolean

    Inherited from

    Scale.

    Defined in


    init

    init(options): void

    Parameters

    NameType
    optionsO

    Returns

    void

    Inherited from

    Scale.

    Defined in


    isFullSize

    isFullSize(): boolean

    Returns

    boolean

    Inherited from

    .isFullSize

    Defined in

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


    isHorizontal

    isHorizontal(): boolean

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

    Returns

    boolean

    Inherited from

    Scale.

    Defined in


    parse

    parse(raw, index): unknown

    Parameters

    NameType
    rawunknown
    indexnumber

    Returns

    unknown

    Inherited from

    Scale.

    Defined in


    setCenterPoint

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

    Parameters

    NameType
    leftMovementnumber
    rightMovementnumber
    topMovementnumber
    bottomMovementnumber

    Returns

    void

    Defined in

    index.esm.d.ts:3335 (opens new window)


    setDimensions

    setDimensions(): void

    Returns

    void

    Inherited from

    Scale.

    Defined in


    tooltipPosition

    tooltipPosition(useFinalPosition?):

    Parameters

    NameType
    useFinalPosition?boolean

    Returns

    Point

    Inherited from

    Scale.

    Defined in


    update(width, height, margins?): void

    Takes two parameters: width and height.

    Parameters

    Returns

    void

    Inherited from

    .update

    Defined in

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