Class IgxPieChartBaseComponent

Hierarchy

Implements

  • OnInit

Constructors

constructor

Accessors

actualPixelScalingRatio

  • get actualPixelScalingRatio(): number
  • set actualPixelScalingRatio(v: number): void
  • Resolved pixel scaling ratio. Unless explicitly overridden by the PieChartBase.PixelScalingRatio property, this one returns the default ratio enforced by device. High resolution devices will initialize this property to a higher value.

    Returns number

  • Resolved pixel scaling ratio. Unless explicitly overridden by the PieChartBase.PixelScalingRatio property, this one returns the default ratio enforced by device. High resolution devices will initialize this property to a higher value.

    Parameters

    • v: number

    Returns void

allowSliceExplosion

  • get allowSliceExplosion(): boolean
  • set allowSliceExplosion(v: boolean): void
  • Gets or sets whether the slices can be exploded.

    Returns boolean

  • Gets or sets whether the slices can be exploded.

    Parameters

    • v: boolean

    Returns void

allowSliceSelection

  • get allowSliceSelection(): boolean
  • set allowSliceSelection(v: boolean): void
  • Gets or sets whether the slices can be selected.

    Returns boolean

  • Gets or sets whether the slices can be selected.

    Parameters

    • v: boolean

    Returns void

brushes

  • get brushes(): string[]
  • set brushes(v: string[]): void
  • Gets or sets the palette of brushes to use for coloring the slices.

    Returns string[]

  • Gets or sets the palette of brushes to use for coloring the slices.

    Parameters

    • v: string[]

    Returns void

explodedRadius

  • get explodedRadius(): number
  • set explodedRadius(v: number): void
  • Determines how much the exploded slice is offset from the center. Value between 0 and 1.

    Returns number

  • Determines how much the exploded slice is offset from the center. Value between 0 and 1.

    Parameters

    • v: number

    Returns void

explodedSlices

  • get explodedSlices(): IndexCollection
  • set explodedSlices(v: IndexCollection): void
  • Gets or sets the collection of exploded slice indices.

    Returns IndexCollection

  • Gets or sets the collection of exploded slice indices.

    Parameters

    • v: IndexCollection

    Returns void

formatLabel

  • get formatLabel(): function
  • set formatLabel(v: function): void
  • Sets or gets a function which takes an object that produces a formatted label for displaying in the chart.

    Returns function

      • (obj: any): string
      • Parameters

        • obj: any

        Returns string

  • Sets or gets a function which takes an object that produces a formatted label for displaying in the chart.

    Parameters

    • v: function
        • (obj: any): string
        • Parameters

          • obj: any

          Returns string

    Returns void

formatLegendLabel

  • get formatLegendLabel(): function
  • set formatLegendLabel(v: function): void
  • Sets or gets a function which takes an object that produces a formatted label for displaying in the chart's legend.

    Returns function

      • (obj: any): string
      • Parameters

        • obj: any

        Returns string

  • Sets or gets a function which takes an object that produces a formatted label for displaying in the chart's legend.

    Parameters

    • v: function
        • (obj: any): string
        • Parameters

          • obj: any

          Returns string

    Returns void

innerExtent

  • get innerExtent(): number
  • set innerExtent(v: number): void
  • Gets or sets the amount of space between the center and the start of the arc. This property should be set between 0 and 1. If InnerExtent is set to a value greater than 1, it will be interpreted as a percentage, effectively divided by 100.

    Returns number

  • Gets or sets the amount of space between the center and the start of the arc. This property should be set between 0 and 1. If InnerExtent is set to a value greater than 1, it will be interpreted as a percentage, effectively divided by 100.

    Parameters

    • v: number

    Returns void

isSurfaceInteractionDisabled

  • get isSurfaceInteractionDisabled(): boolean
  • set isSurfaceInteractionDisabled(v: boolean): void
  • Gets or sets whether all surface interactions with the plot area should be disabled.

    Returns boolean

  • Gets or sets whether all surface interactions with the plot area should be disabled.

    Parameters

    • v: boolean

    Returns void

labelClick

  • get labelClick(): EventEmitter<object>
  • Raised when the slice's label is clicked.

    Returns EventEmitter<object>

labelExtent

  • get labelExtent(): number
  • set labelExtent(v: number): void
  • Gets or sets the pixel amount by which the labels are offset from the edge of the slices.

    Returns number

  • Gets or sets the pixel amount by which the labels are offset from the edge of the slices.

    Parameters

    • v: number

    Returns void

labelInnerColor

  • get labelInnerColor(): string
  • set labelInnerColor(v: string): void
  • Gets or sets the color for labels rendered inside of the pie chart.

    Returns string

  • Gets or sets the color for labels rendered inside of the pie chart.

    Parameters

    • v: string

    Returns void

labelMemberPath

  • get labelMemberPath(): string
  • set labelMemberPath(v: string): void
  • Gets or sets the property name that contains the labels.

    Returns string

  • Gets or sets the property name that contains the labels.

    Parameters

    • v: string

    Returns void

labelOuterColor

  • get labelOuterColor(): string
  • set labelOuterColor(v: string): void
  • Gets or sets the color for labels rendered outside of the pie chart.

    Returns string

  • Gets or sets the color for labels rendered outside of the pie chart.

    Parameters

    • v: string

    Returns void

labelsPosition

  • Gets or sets the position of chart labels.

    Returns LabelsPosition

  • Gets or sets the position of chart labels.

    Parameters

    Returns void

leaderLineMargin

  • get leaderLineMargin(): number
  • set leaderLineMargin(v: number): void
  • Gets or sets the margin between a label and the end of its leader line. The default is 6 pixels.

    Returns number

  • Gets or sets the margin between a label and the end of its leader line. The default is 6 pixels.

    Parameters

    • v: number

    Returns void

leaderLineType

  • Gets or sets what type of leader lines will be used for the outside end labels.

    Returns LeaderLineType

  • Gets or sets what type of leader lines will be used for the outside end labels.

    Parameters

    Returns void

leaderLineVisibility

  • Gets or sets whether the leader lines are visible.

    Returns Visibility

  • Gets or sets whether the leader lines are visible.

    Parameters

    Returns void

legendItemBadgeTemplate

  • Gets or sets the LegendItemBadgeTemplate property. The legend item badge is created according to the LegendItemBadgeTemplate on-demand by the chart object itself.

    Returns IgDataTemplate

  • Gets or sets the LegendItemBadgeTemplate property. The legend item badge is created according to the LegendItemBadgeTemplate on-demand by the chart object itself.

    Parameters

    Returns void

legendItemTemplate

  • Gets or sets the LegendItemTemplate property. The legend item control content is created according to the LegendItemTemplate on-demand by the chart object itself.

    Returns IgDataTemplate

  • Gets or sets the LegendItemTemplate property. The legend item control content is created according to the LegendItemTemplate on-demand by the chart object itself.

    Parameters

    Returns void

legendLabelMemberPath

  • get legendLabelMemberPath(): string
  • set legendLabelMemberPath(v: string): void
  • Gets or sets the property name that contains the legend labels.

    Returns string

  • Gets or sets the property name that contains the legend labels.

    Parameters

    • v: string

    Returns void

othersCategoryFill

  • get othersCategoryFill(): string
  • set othersCategoryFill(v: string): void
  • Gets or sets the fill brush.

    Returns string

  • Gets or sets the fill brush.

    Parameters

    • v: string

    Returns void

othersCategoryOpacity

  • get othersCategoryOpacity(): number
  • set othersCategoryOpacity(v: number): void
  • Gets or sets the opacity.

    Returns number

  • Gets or sets the opacity.

    Parameters

    • v: number

    Returns void

othersCategoryStroke

  • get othersCategoryStroke(): string
  • set othersCategoryStroke(v: string): void
  • Gets or sets the stroke brush.

    Returns string

  • Gets or sets the stroke brush.

    Parameters

    • v: string

    Returns void

othersCategoryStrokeThickness

  • get othersCategoryStrokeThickness(): number
  • set othersCategoryStrokeThickness(v: number): void
  • Gets or sets the stroke thickness.

    Returns number

  • Gets or sets the stroke thickness.

    Parameters

    • v: number

    Returns void

othersCategoryText

  • get othersCategoryText(): string
  • set othersCategoryText(v: string): void
  • Gets or sets the label of the Others slice.

    Returns string

  • Gets or sets the label of the Others slice.

    Parameters

    • v: string

    Returns void

othersCategoryThreshold

  • get othersCategoryThreshold(): number
  • set othersCategoryThreshold(v: number): void
  • Gets or sets the threshold value that determines if slices are grouped into the Others slice.

    Returns number

  • Gets or sets the threshold value that determines if slices are grouped into the Others slice.

    Parameters

    • v: number

    Returns void

othersCategoryType

  • Gets or sets whether to use numeric or percent-based threshold value.

    Returns OthersCategoryType

  • Gets or sets whether to use numeric or percent-based threshold value.

    Parameters

    Returns void

outlines

  • get outlines(): string[]
  • set outlines(v: string[]): void
  • Gets or sets the palette of brushes to use for outlines on the slices.

    Returns string[]

  • Gets or sets the palette of brushes to use for outlines on the slices.

    Parameters

    • v: string[]

    Returns void

pixelScalingRatio

  • get pixelScalingRatio(): number
  • set pixelScalingRatio(v: number): void
  • Gets or sets the scaling value used to affect the pixel density of the control. A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control to appear blurry.

    Returns number

  • Gets or sets the scaling value used to affect the pixel density of the control. A higher scaling ratio will produce crisper visuals at the expense of memory. Lower values will cause the control to appear blurry.

    Parameters

    • v: number

    Returns void

radiusFactor

  • get radiusFactor(): number
  • set radiusFactor(v: number): void
  • Gets or sets the scaling factor of the chart's radius. Value between 0 and 1.

    Returns number

  • Gets or sets the scaling factor of the chart's radius. Value between 0 and 1.

    Parameters

    • v: number

    Returns void

selectedItem

  • get selectedItem(): any
  • set selectedItem(v: any): void
  • Gets or sets the currently selected data item. If a different data item is provided the pie chart will select the slice associated with the new item.

    Returns any

  • Gets or sets the currently selected data item. If a different data item is provided the pie chart will select the slice associated with the new item.

    Parameters

    • v: any

    Returns void

selectedItemChanged

  • get selectedItemChanged(): EventEmitter<object>
  • Raised when the SelectedItem property has changed.

    Returns EventEmitter<object>

selectedItemChanging

  • get selectedItemChanging(): EventEmitter<object>
  • Raised when the SelectedItem property is changing. This event is cancelable.

    Returns EventEmitter<object>

selectedItems

  • get selectedItems(): ObjectCollection
  • set selectedItems(v: ObjectCollection): void
  • Gets the currently selected data items. Adding or removing data items from this collection will select or deselect the slices associated with those items.

    Returns ObjectCollection

  • Gets the currently selected data items. Adding or removing data items from this collection will select or deselect the slices associated with those items.

    Parameters

    • v: ObjectCollection

    Returns void

selectedItemsChanged

  • get selectedItemsChanged(): EventEmitter<object>
  • Raised when the SelectedItems collection has changed.

    Returns EventEmitter<object>

selectedItemsChanging

  • get selectedItemsChanging(): EventEmitter<object>
  • Raised when the SelectedItems collection is changing. This event is cancelable.

    Returns EventEmitter<object>

selectedSliceFill

  • get selectedSliceFill(): string
  • set selectedSliceFill(v: string): void
  • Gets or sets the fill brush.

    Returns string

  • Gets or sets the fill brush.

    Parameters

    • v: string

    Returns void

selectedSliceOpacity

  • get selectedSliceOpacity(): number
  • set selectedSliceOpacity(v: number): void
  • Gets or sets the opacity.

    Returns number

  • Gets or sets the opacity.

    Parameters

    • v: number

    Returns void

selectedSliceStroke

  • get selectedSliceStroke(): string
  • set selectedSliceStroke(v: string): void
  • Gets or sets the stroke brush.

    Returns string

  • Gets or sets the stroke brush.

    Parameters

    • v: string

    Returns void

selectedSliceStrokeThickness

  • get selectedSliceStrokeThickness(): number
  • set selectedSliceStrokeThickness(v: number): void
  • Gets or sets the stroke thickness.

    Returns number

  • Gets or sets the stroke thickness.

    Parameters

    • v: number

    Returns void

selectionMode

  • Gets or sets which mode to use for selecting slices.

    Returns SliceSelectionMode

  • Gets or sets which mode to use for selecting slices.

    Parameters

    Returns void

sliceClick

  • get sliceClick(): EventEmitter<object>
  • Raised when the slice is clicked.

    Returns EventEmitter<object>

startAngle

  • get startAngle(): number
  • set startAngle(v: number): void
  • Gets or sets the starting angle of the chart. The default zero value is equivalent to 3 o'clock.

    Returns number

  • Gets or sets the starting angle of the chart. The default zero value is equivalent to 3 o'clock.

    Parameters

    • v: number

    Returns void

sweepDirection

  • Gets or sets the rotational direction of the chart.

    Returns SweepDirection

  • Gets or sets the rotational direction of the chart.

    Parameters

    Returns void

textStyle

  • get textStyle(): string
  • set textStyle(v: string): void
  • Manually overrides the style to use for the labels.

    Returns string

  • Manually overrides the style to use for the labels.

    Parameters

    • v: string

    Returns void

toolTip

  • get toolTip(): any
  • set toolTip(v: any): void
  • Gets or sets the ToolTip for the chart.

    Returns any

  • Gets or sets the ToolTip for the chart.

    Parameters

    • v: any

    Returns void

valueMemberPath

  • get valueMemberPath(): string
  • set valueMemberPath(v: string): void
  • Gets or Sets the property name that contains the values.

    Returns string

  • Gets or Sets the property name that contains the values.

    Parameters

    • v: string

    Returns void

Methods

destroy

  • destroy(): void
  • Invoked when the instance is being destroyed.

    Returns void

ensureOthersCategoryStyle

  • ensureOthersCategoryStyle(): void
  • Returns void

ensureSelectedStyle

  • ensureSelectedStyle(): void
  • Returns void

exportSerializedVisualData

  • exportSerializedVisualData(): string
  • Returns the chart visuals expressed as a serialized string.

    Returns string

flush

  • flush(): void
  • Use to force the pie chart to finish any deferred work before printing or evaluating its visual. This should only be called if the visual of the pie chart needs to be synchronously saved or evaluated. Calling this method too often will hinder the performance of the pie chart.

    Returns void

ngOnInit

  • ngOnInit(): void
  • Returns void

notifyClearItems

  • notifyClearItems(source_: any): void
  • Manually notifies the pie chart's data source that the data it has bound to has been cleared and needs to be re-examined. This should not be called if the data that the pie chart is bound to is already observable.

    Parameters

    • source_: any
      • The data source.

    Returns void

notifyContainerResized

  • notifyContainerResized(): void
  • Notification from the containing object that the container has been resized.

    Returns void

notifyInsertItem

  • notifyInsertItem(source_: any, index: number, newItem: any): void
  • Parameters

    • source_: any
    • index: number
    • newItem: any

    Returns void

notifyRemoveItem

  • notifyRemoveItem(source_: any, index: number, oldItem: any): void
  • Parameters

    • source_: any
    • index: number
    • oldItem: any

    Returns void

notifySetItem

  • notifySetItem(source_: any, index: number, oldItem: any, newItem: any): void
  • Parameters

    • source_: any
    • index: number
    • oldItem: any
    • newItem: any

    Returns void

provideContainer

  • provideContainer(container: any): void
  • Invoked by the containing object to provide reference to the container.

    Parameters

    • container: any
      • Reference to the container.

    Returns void

removeWidgetLevelDataSource

  • removeWidgetLevelDataSource(): void
  • Resets items data source.

    Returns void

setWidgetLevelDataSource

  • setWidgetLevelDataSource(source_: any): void
  • Assigns data source for the items.

    Parameters

    • source_: any
      • Array of the data source items.

    Returns void

simulateLeftClick

  • simulateLeftClick(point: IgPoint): void
  • Simulates a mouse click action at the specified point.

    Parameters

    • point: IgPoint
      • The point to click at.

    Returns void

styleUpdated

  • styleUpdated(): void
  • Invoked when style is updated.

    Returns void

Static _createFromInternal

  • Parameters

    • internal: any

    Returns IgxPieChartBaseComponent