@carbon/charts
    Preparing search index...

    Class ChartModelCartesian

    This supports adding X and Y Cartesian[2D] zoom data to a ChartModel

    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

    • Returns {
          primaryDomain: any;
          primaryRange: any;
          secondaryDomain: any;
          secondaryRange: any;
      }

    • 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

    • 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