Components Interactions Examples Tutorials API FAQ
Options
Menu

Hierarchy

Index

Constructors

constructor

  • new Pie(): Pie

Properties

Protected _boundingBox

_boundingBox: Selection<void>

Protected _clipPathEnabled

_clipPathEnabled: boolean

Private _endAngle

_endAngle: any

Private _endAngles

_endAngles: any

Protected _isAnchored

_isAnchored: boolean

Protected _isSetup

_isSetup: boolean

Private _labelFormatter

_labelFormatter: any

Private _labelsEnabled

_labelsEnabled: any

Protected _propertyBindings

_propertyBindings: Map<AccessorScaleBinding<any, any>>

Protected _propertyExtents

_propertyExtents: Map<any[]>

Protected _renderArea

_renderArea: Selection<void>

Protected _renderCallback

_renderCallback: ScaleCallback<Scale<any, any>>

Private _startAngle

_startAngle: any

Private _startAngles

_startAngles: any

Private _strokeDrawers

_strokeDrawers: any

Static Protected _ANIMATION_MAX_DURATION

_ANIMATION_MAX_DURATION: number

Static Private _INNER_RADIUS_KEY

_INNER_RADIUS_KEY: any

Static Private _OUTER_RADIUS_KEY

_OUTER_RADIUS_KEY: any

Static Private _SECTOR_VALUE_KEY

_SECTOR_VALUE_KEY: any

Methods

Protected _addDataset

Protected _additionalPaint

  • _additionalPaint(time: number): void

Protected _animateOnNextRender

  • _animateOnNextRender(): boolean

Protected _bindProperty

  • _bindProperty(property: string, value: any, scale: Scale<any, any>): void

Protected _buildLightweightPlotEntities

Protected _createDrawer

Protected _createNodesForDataset

Private _drawLabels

  • _drawLabels(): any

Protected _entityVisibleOnPlot

Protected _extentsForProperty

  • _extentsForProperty(property: string): any[]

Protected _filterForProperty

  • _filterForProperty(property: string): Accessor<boolean>

Protected _generateAttrToProjector

Protected _generateDrawSteps

Private _generateStrokeDrawSteps

  • _generateStrokeDrawSteps(): any

Protected _getAnimator

Protected _getDataToDraw

Protected _getDrawersInOrder

  • _getDrawersInOrder(): Drawer[]

Protected _installScaleForKey

  • _installScaleForKey(scale: Scale<any, any>, key: string): void

Protected _onDatasetUpdate

  • _onDatasetUpdate(): void

Private _pieCenter

  • _pieCenter(): any

Protected _pixelPoint

  • _pixelPoint(datum: any, index: number, dataset: Dataset): object

Protected _propertyProjectors

Protected _removeDataset

Protected _removeDatasetNodes

  • _removeDatasetNodes(dataset: Dataset): void

Protected _setup

  • _setup(): void

Protected _sizeFromOffer

  • _sizeFromOffer(availableWidth: number, availableHeight: number): object

Private _sliceIndexForPoint

  • _sliceIndexForPoint(p: any): any

Protected _uninstallScaleForKey

  • _uninstallScaleForKey(scale: Scale<any, any>, key: string): void

Protected _updateExtents

  • _updateExtents(): void

Protected _updateExtentsForProperty

  • _updateExtentsForProperty(property: string): void

Private _updatePieAngles

  • _updatePieAngles(): any

addClass

  • addClass(cssClass: string)

addDataset

anchor

animated

  • animated(): boolean
  • animated(willAnimate: boolean)

animator

  • animator(animatorKey: string): Animator
  • animator(animatorKey: string, animator: Animator)

attr

  • Gets the AccessorScaleBinding for a particular attribute.

    Type parameters

    • A

    Parameters

    • attr: string

    Returns AccessorScaleBinding<A, number | string>

  • Sets a particular attribute to a constant value or the result of an Accessor.

    Parameters

  • Sets a particular attribute to a scaled constant value or scaled result of an Accessor. The provided Scale will account for the attribute values when autoDomain()-ing.

    Type parameters

    • A

    Parameters

    • attr: string
    • attrValue: A | Accessor<A>
    • scale: Scale<A, number | string>

      The Scale used to scale the attrValue.

background

  • Gets the Selection containing the behind the visual elements of the Component.

    Will return undefined if the Component has not been anchored.

    Returns Selection<void>

    background selection for the Component

bounds

  • Returns Bounds

    for the component in pixel space, where the topLeft represents the component's minimum x and y values and the bottomRight represents the component's maximum x and y values.

computeLayout

  • computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number)

content

  • Gets a Selection containing a that holds the visual elements of the Component.

    Will return undefined if the Component has not been anchored.

    Returns Selection<void>

    content selection for the Component

datasets

destroy

  • destroy(): void

detach

  • detach()

endAngle

  • endAngle(): number
  • endAngle(angle: number)
  • Gets the end angle of the Pie Plot.

    Returns number

    Returns the end angle

  • Sets the end angle of the Pie Plot.

    Parameters

    • angle: number

entities

entitiesAt

entityNearest

  • Returns the {Plots.PlotEntity} nearest to the query point, or undefined if no {Plots.PlotEntity} can be found.

    Parameters

    • queryPoint: Point
    • Optional bounds: object

    Returns PlotEntity

    The nearest PlotEntity, or undefined if no {Plots.PlotEntity} can be found.

fixedHeight

  • fixedHeight(): boolean
  • Checks if the Component has a fixed height or if it grows to fill available space. Returns false by default on the base Component class.

    Returns boolean

fixedWidth

  • fixedWidth(): boolean
  • Checks if the Component has a fixed width or if it grows to fill available space. Returns false by default on the base Component class.

    Returns boolean

foreground

  • Gets the Selection containing the in front of the visual elements of the Component.

    Will return undefined if the Component has not been anchored.

    Returns Selection<void>

hasClass

  • hasClass(cssClass: string): boolean
  • Checks if the Component has a given CSS class.

    Parameters

    • cssClass: string

      The CSS class to check for.

    Returns boolean

height

  • height(): number

innerRadius

  • Gets the AccessorScaleBinding for the inner radius.

    Type parameters

    • R

    Returns AccessorScaleBinding<R, number>

  • Sets the inner radius to a constant number or the result of an Accessor.

    Parameters

    • innerRadius: number | Accessor<number>

    Returns any

    The calling Pie Plot.

  • Sets the inner radius to a scaled constant value or scaled result of an Accessor. The provided Scale will account for the values when autoDomain()-ing.

    Type parameters

    • R

    Parameters

    Returns any

    The calling Pie Plot.

labelFormatter

labelsEnabled

  • labelsEnabled(): boolean
  • labelsEnabled(enabled: boolean)
  • Get whether slice labels are enabled.

    Returns boolean

    Whether slices should display labels or not.

  • Sets whether labels are enabled.

    Parameters

    • enabled: boolean

offAnchor

offDetach

onAnchor

onDetach

onResize

  • Sets a callback that gets called when the component resizes. The size change is not guaranteed to be reflected by the DOM at the time the callback is fired.

    Parameters

origin

originToSVG

outerRadius

  • Gets the AccessorScaleBinding for the outer radius.

    Type parameters

    • R

    Returns AccessorScaleBinding<R, number>

  • Sets the outer radius to a constant number or the result of an Accessor.

    Parameters

    • outerRadius: number | Accessor<number>
  • Sets the outer radius to a scaled constant value or scaled result of an Accessor. The provided Scale will account for the values when autoDomain()-ing.

    Type parameters

    • R

    Parameters

parent

redraw

  • redraw()
  • Causes the Component to re-layout and render.

    This function should be called when a CSS change has occured that could influence the layout of the Component, such as changing the font size.

removeClass

  • removeClass(cssClass: string)

removeDataset

render

  • render()

renderImmediately

  • renderImmediately()

renderTo

  • renderTo(element: String | Element | Selection<void>)

requestedSpace

  • requestedSpace(availableWidth: number, availableHeight: number): SpaceRequest

sectorValue

  • Gets the AccessorScaleBinding for the sector value.

    Type parameters

    • S

    Returns AccessorScaleBinding<S, number>

  • Sets the sector value to a constant number or the result of an Accessor.

    Parameters

    • sectorValue: number | Accessor<number>
  • Sets the sector value to a scaled constant value or scaled result of an Accessor. The provided Scale will account for the values when autoDomain()-ing.

    Type parameters

    • S

    Parameters

selections

startAngle

  • startAngle(): number
  • startAngle(angle: number)
  • Gets the start angle of the Pie Plot

    Returns number

    Returns the start angle

  • Sets the start angle of the Pie Plot.

    Parameters

    • angle: number

width

  • width(): number

xAlignment

  • xAlignment(): string
  • xAlignment(xAlignment: string)

yAlignment

  • yAlignment(): string
  • yAlignment(yAlignment: string)

Static Protected _isValidData

  • _isValidData(value: any): boolean

Static Protected _scaledAccessor

Generated using TypeDoc