mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 05:46:28 +08:00

* Stat: Add percent change color modes * Apply color mode to percent change component * Remove todo * Create percent change color function and add tests * drew08t/stat-percent-change-color-modes/ maybe fix import error? --------- Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
32 lines
956 B
TypeScript
32 lines
956 B
TypeScript
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
//
|
|
// Generated by:
|
|
// public/app/plugins/gen.go
|
|
// Using jennies:
|
|
// TSTypesJenny
|
|
// PluginTsTypesJenny
|
|
//
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
import * as common from '@grafana/schema';
|
|
|
|
export interface Options extends common.SingleStatBaseOptions {
|
|
colorMode: common.BigValueColorMode;
|
|
graphMode: common.BigValueGraphMode;
|
|
justifyMode: common.BigValueJustifyMode;
|
|
percentChangeColorMode: common.PercentChangeColorMode;
|
|
showPercentChange: boolean;
|
|
textMode: common.BigValueTextMode;
|
|
wideLayout: boolean;
|
|
}
|
|
|
|
export const defaultOptions: Partial<Options> = {
|
|
colorMode: common.BigValueColorMode.Value,
|
|
graphMode: common.BigValueGraphMode.Area,
|
|
justifyMode: common.BigValueJustifyMode.Auto,
|
|
percentChangeColorMode: common.PercentChangeColorMode.Standard,
|
|
showPercentChange: false,
|
|
textMode: common.BigValueTextMode.Auto,
|
|
wideLayout: true,
|
|
};
|