Class GaugeChartModel

The gauge chart model layer

Hierarchy (view full)

Constructors

Properties

allDataGroups: string[]

A list of all the data groups that have existed within the lifetime of the chart

colorClassNames: any = {}
colorScale: any = {}
services: any
state: any = ...

Methods

  • Charts that have group configs passed into them, only want to retrieve the display data relevant to that chart

    Parameters

    • Optionalgroups: any

      the included datasets for the particular chart

    Returns any

  • Should the data point be filled?

    Parameters

    • group: any
    • Optionalkey: any
    • Optionaldata: any
    • OptionaldefaultFilled: boolean

      the default for this chart

    Returns any

  • Sets the data for the current instance.

    This method sanitizes the provided data, generates data groups, and updates the instance's state with the sanitized data and data groups.

    Parameters

    • newData: any

      The new data to be set. This data will be cloned and sanitized.

    Returns any

    • The sanitized version of the provided data.
  • Updates the current options for the instance.

    This method retrieves the existing options, updates the legend additional items, and merges the new options with the existing ones. The instance's state is then updated with the merged options.

    Parameters

    • newOptions: any

      The new options to be set. These options will be merged with the existing options.

    Returns void