Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DonutChartComponent

Donut chart component.

Note: In order to use charts, please include the following JavaScript file from patternfly. For example:
require('patternfly/dist/js/patternfly-settings');

Usage:
import { DonutChartModule } from 'patternfly-ng/chart';

Or:
import { DonutChartModule } from 'patternfly-ng';

Hierarchy

Implements

  • DoCheck
  • OnDestroy
  • OnInit

Index

Constructors

constructor

Properties

chartData

chartData: any[]

An array containing key value pairs:

key - string representing an arc within the donut chart value - number representing the value of the arc

Protected chartDefaults

chartDefaults: ChartDefaults

chartLoaded

chartLoaded: EventEmitter<any> = new EventEmitter()

Event emitted with the chart reference after load is complete

type

{EventEmitter}

config

Configuration object containing details about how to render the chart

Protected windowRef

windowRef: WindowReference

Methods

Protected generateChart

getCenterLabelText

  • getCenterLabelText(): any

Protected getChartData

  • getChartData(): any

ngDoCheck

  • ngDoCheck(): void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void

Protected setupConfig

  • setupConfig(): void

Protected setupConfigDefaults

  • setupConfigDefaults(): void

Generated using TypeDoc