@carbon/charts
    Preparing search index...

    Class MeterTitle

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    configs: any = {}
    id: string = ''
    model: ChartModel
    parent: Selection<SVGGraphicsElement | HTMLDivElement, any, HTMLElement, any> = undefined
    renderType: RenderTypes = RenderTypes.SVG
    services: Services
    type: string = 'meter-title'

    Methods

    • Parameters

      • configs: { ariaLabel?: string; isPresentational?: boolean; withinChartClip?: boolean } = ...

      Returns Selection<any, any, Element, any>

    • graphs used in combo charts share a model with global options but can receive their own local options. this function retrieves the global options and merges it with any options passed into this component's config.options object.

      Returns any

    • Get the associated status icon for the data

      Parameters

      • status: Statuses

        the active status for the meter chart

      Returns
          | "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z"
          | "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z"
          | "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"

    • Returns the index for a maximum length substring that is less than the width parameter.

      Parameters

      • title: any

        the title node used for getting the text lengths of substrings

      • start: number

        the start index for the binary search

      • end: number

        the end index for the binary search

      • width: number

        the width of the svg container that holds the title

      Returns number