@carbon/charts
    Preparing search index...

    Class RadarChartModel

    The charting model layer which includes mainly the chart data and options, as well as some misc. information to be shared among components

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    allDataGroups: string[]

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

    axisFlavor: AxisFlavor = AxisFlavor.DEFAULT
    colorClassNames: any = {}
    colorScale: any = {}
    services: any
    state: any = ...

    Methods

    • 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

    • Sets the zoom bar data for the current instance.

      This method sanitizes the provided zoom bar data or uses the display data if no explicit zoom data is provided. It normalizes the zoom bar data by aggregating values based on unique dates and updates the instance's state with the normalized data.

      Parameters

      • OptionalnewZoomBarData: any

        The new zoom bar data to be set. If not provided, the display data will be used.

      Returns void