OptionalcaptionThe HTML element where the caption is.
OptionalchartReference to the chart.
OptionalchartHTML element where the chart is created.
The connector handlers for the component. They are used to handle the connector options and data tables.
ProtecteddimensionsSize of the component (width and height).
An array of options marked as editable by the UI.
Sets an ID for the component's div.
OptionalisWhether the component state is active.
KPI component's options.
The HTML element where the subtitle is created.
Protected OptionalsyncThe sync handlers for the component.
StaticdefaultDefault 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
}
}
}
}
StaticdefaultDefault options of the KPI component.
StaticformulaThe formula option's default formula functions map.
StaticpredefinedPredefined sync config for the KPI component.
Destroys the highcharts component.
Returns the data table connected to the component by the connectorId
and dataTableKey. If both args are undefined, the first data table is
returned.
OptionalconnectorId: stringThe id of the connector.
OptionaldataTableKey: stringThe key of the data table within the connector.
The data table, or undefined if no matching handler is found.
OptionalpropertyPath: (string | number)[]Returns the component's options when it is dropped from the sidebar.
The sidebar popup.
Initializes connector handlers for the component.
Resize the component
Optionalwidth: string | number | nullThe width to set the component to. Can be pixels, a percentage string or null. Null will unset the style
Optionalheight: string | number | nullThe height to set the component to. Can be pixels, a percentage string or null. Null will unset the style.
ProtectedresizeIt'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.
Optionalwidth: string | number | nullThe width to set the component to.
Optionalheight: string | number | nullThe height to set the component to.
Adjusts size of component to parent's cell size when animation is done.
HTML element that is resized.
Adds caption at the bottom of component's container.
The options for the caption.
Adds title at the top of component's container.
The options for the title.
Sets the value that should be displayed in the KPI.
The value to display in the KPI.
Handles updating via options.
The options to apply.
Class that represents a KPI component.