Highcharts Dashboards
    Preparing search index...

    Class that represents a KPI component.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    captionElement?: HTMLElement

    The HTML element where the caption is.

    chart?: Chart

    Reference to the chart.

    chartContainer?: HTMLElement

    HTML element where the chart is created.

    connectorHandlers: ConnectorHandler[] = []

    The connector handlers for the component. They are used to handle the connector options and data tables.

    dimensions: { height: number | null; width: number | null }

    Size of the component (width and height).

    editableOptions: EditableOptions

    An array of options marked as editable by the UI.

    id: string

    Sets an ID for the component's div.

    isActive?: boolean

    Whether the component state is active.

    options: Options

    KPI component's options.

    subtitle: HTMLElement

    The HTML element where the subtitle is created.

    syncHandlers?: OptionsRecord

    The sync handlers for the component.

    defaultChartOptions: Types.DeepPartial<ChartOptions> = ...

    Default options of the KPI component.

    {
    chart: {
    type: 'spline',
    zooming: {
    mouseWheel: {
    enabled: false
    }
    }
    },
    title: {
    text: void 0
    },
    xAxis: {
    visible: false
    },
    yAxis: {
    visible: false,
    title: {
    text: null
    }
    },
    legend: {
    enabled: false
    },
    credits: {
    enabled: false
    },
    tooltip: {
    outside: true
    },
    plotOptions: {
    series: {
    marker: {
    enabled: false
    }
    }
    }
    }
    defaultOptions: Partial<Options> & DeepPartial<Options> = ...

    Default options of the KPI component.

    formulaFunctions: {
        AVERAGE: Object;
        COUNT: Object;
        MAX: Object;
        MEDIAN: Object;
        MIN: Object;
        PRODUCT: Object;
        SUM: Object;
    } = ...

    The formula option's default formula functions map.

    predefinedSyncConfig: PredefinedSyncConfig = KPISyncs

    Predefined sync config for the KPI component.

    Methods

    • Destroys the highcharts component.

      Returns void

    • Returns the data table connected to the component by the connectorId and dataTableKey. If both args are undefined, the first data table is returned.

      Parameters

      • OptionalconnectorId: string

        The id of the connector.

      • OptionaldataTableKey: string

        The key of the data table within the connector.

      Returns DataTable | undefined

      The data table, or undefined if no matching handler is found.

    • Parameters

      • OptionalpropertyPath: (string | number)[]

      Returns string | number | boolean | undefined

    • Returns the component's options when it is dropped from the sidebar.

      Parameters

      • sidebar: SidebarPopup

        The sidebar popup.

      Returns Partial<Options>

    • Resize the component

      Parameters

      • Optionalwidth: string | number | null

        The width to set the component to. Can be pixels, a percentage string or null. Null will unset the style

      • Optionalheight: string | number | null

        The height to set the component to. Can be pixels, a percentage string or null. Null will unset the style.

      Returns this

    • It's a temporary alternative for the resize method. It sets the strict pixel height for the component so that the content can be distributed in the right way, without looping the resizers in the content and container.

      Parameters

      • Optionalwidth: string | number | null

        The width to set the component to.

      • Optionalheight: string | number | null

        The height to set the component to.

      Returns void

    • Adjusts size of component to parent's cell size when animation is done.

      Parameters

      • element: HTMLElement

        HTML element that is resized.

      Returns void

    • Sets the value that should be displayed in the KPI.

      Parameters

      • value: string | number | undefined = ...

        The value to display in the KPI.

      Returns void

    • Handles updating via options.

      Parameters

      • options: Partial<Options>

        The options to apply.

      • shouldRerender: boolean = true

      Returns Promise<void>