Represents concentric circles divided on arcs depending on data.

Hierarchy

Hierarchy

Constructors

Properties

The series actually present in the chart. Do not directly modify this array. This array's contents can be modified by causing Angular to reproject the child content. Or adding and removing series from the manual series collection on the series property.

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

static contextType = MyContext
// For TS pre-3.7:
context!: React.ContextType<typeof MyContext>
// For TS 3.7 and above:
declare context: React.ContextType<typeof MyContext>
props: Readonly<IIgrDoughnutChartProps> & Readonly<{
    children?: ReactNode;
}>
refs: {
    [key: string]: ReactInstance;
}

Type declaration

  • [key: string]: ReactInstance
state: Readonly<{}>
contextType?: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}

Accessors

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

    Returns number

  • set actualPixelScalingRatio(v): void
  • Parameters

    • v: number

    Returns void

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

    Returns boolean

  • set allowSliceExplosion(v): void
  • Parameters

    • v: boolean

    Returns void

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

    Returns boolean

  • set allowSliceSelection(v): void
  • Parameters

    • v: boolean

    Returns void

  • get height(): string
  • Returns string

  • set height(value): void
  • Parameters

    • value: string

    Returns void

  • get holeDimensionsChanged(): ((s, e) => void)
  • Raised when the dimensions (center point or radius) of the doughnut hole change.

    Returns ((s, e) => void)

  • set holeDimensionsChanged(ev): void
  • Parameters

    Returns void

  • get i(): XamDoughnutChart
  • Returns XamDoughnutChart

  • get innerExtent(): number
  • Gets or sets the inner extent of the doughnut chart. It is percent from the outer ring's radius.

    Returns number

  • set innerExtent(v): void
  • Parameters

    • v: number

    Returns void

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

    Returns boolean

  • set isSurfaceInteractionDisabled(v): void
  • Parameters

    • v: boolean

    Returns void

  • get pixelScalingRatio(): 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.

    Returns number

  • set pixelScalingRatio(v): void
  • Parameters

    • v: number

    Returns void

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

    Returns string

  • set selectedSliceFill(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns number

  • set selectedSliceOpacity(v): void
  • Parameters

    • v: number

    Returns void

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

    Returns string

  • set selectedSliceStroke(v): void
  • Parameters

    • v: string

    Returns void

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

    Returns number

  • set selectedSliceStrokeThickness(v): void
  • Parameters

    • v: number

    Returns void

  • get sliceClick(): ((s, e) => void)
  • Raised when the slice is clicked.

    Returns ((s, e) => void)

  • set sliceClick(ev): void
  • Parameters

    Returns void

  • get width(): string
  • Returns string

  • set width(value): void
  • Parameters

    • value: string

    Returns void

Methods

  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

  • Returns void

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns the chart visuals expressed as a serialized string.

    Returns string

  • Parameters

    • name: string

    Returns any

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

    Returns void

  • Parameters

    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Gets the center coordinates of the doughnut chart's center presenter.

    Returns IgPoint

  • Gets the ID of the UI container.

    Returns string

  • Gets the hole radius of the doughnut chart's center presenter.

    Returns number

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns any

  • Returns void

  • Used to manually notify the chart that the data source has reset or cleared its items.

    Parameters

    • source_: any

    Returns void

  • Parameters

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

    Returns void

  • Parameters

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

    Returns void

  • Called when the control has been resized.

    Returns void

  • Parameters

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

    Returns void

  • Called by the UI framework to provide a UI container for rendering this control.

    Parameters

    • container: any
      • The UI container element.

    Returns void

  • Returns DetailedReactHTMLElement<{
        children: any[];
        className: string;
        ref: ((div) => void);
    }, HTMLDivElement>

  • Type parameters

    Type Parameters

    • K extends never

    Parameters

    • state: {} | ((prevState, props) => {} | Pick<{}, K>) | Pick<{}, K>
    • Optional callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Parameters

    • nextProps: any
    • nextState: any

    Returns boolean