Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DonutUtilizationComponent

Donut Utilization chart component.

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

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 utilization chart

thresholdChanged

thresholdChanged: EventEmitter<any> = new EventEmitter()

Event emitted when the Used amount passes a user defined threshold

type

{EventEmitter}

Methods

Protected generateChart

  • generateChart(config: ChartConfig, reload?: boolean): void

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