changeKpiWidgetComparison()
Home > @gooddata/sdk-ui-dashboard > changeKpiWidgetComparison
changeKpiWidgetComparison() function
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Creates the ChangeKpiWidgetComparison command. Dispatching this command will result in change of what comparison method - if any - is used for the KPI's Measure. The KPI may compare measure value from current period (as selected by the date filter) to previous period and then depending on whether the current value grows can visualize that as a good or bad thing.
Signature:
export declare function changeKpiWidgetComparison(ref: ObjRef, comparison: IKpiWidgetComparison, correlationId?: string): IChangeKpiWidgetComparison;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
ref |
reference of the KPI widget to modify | |
|
comparison |
new comparison setting | |
|
correlationId |
string |
(Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns: