This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiaddStackingConfig

commonOptionsBuilder.addStackingConfig() function

commonOptionsBuilder.addStackingConfig() function

Signature

export declare function addStackingConfig(builder: FieldConfigEditorBuilder<{
    stacking: StackingConfig;
}>, defaultConfig?: StackingConfig, category?: string[]): void;

Import

import { commonOptionsBuilder } from '@grafana/ui';
const { addStackingConfig } = commonOptionsBuilder;

Parameters

Parameter Type Description
builder FieldConfigEditorBuilder<{
stacking: StackingConfig;
}>
defaultConfig StackingConfig
category string[]

Returns:

void