mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* BarGauge: New value options * Fix typings for cell options, add new value mode option for bar gauge cells * Add BarGauge panel option, tests, and update test dashboard * Updated * Added default * Goodbye trusty console.log * Update * Merge changes from main * Update docs * Add valuemode doc changes * Update gdev dashboard * Update valueMode symbol name to valueDisplayMode * Use Enums as Opposed to literals, don't calculate values when hidden * Remove double import * Fix tests * One more test fix * Remove erroneous targets field, fix type of maxDataPoints * Strip nulls and add index field to Thresholds * Gen cue * remove bad targets again * Fixes --------- Co-authored-by: Kyle Cunningham <kyle@codeincarnate.com> Co-authored-by: sam boyer <sdboyer@grafana.com>
30 lines
781 B
TypeScript
30 lines
781 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 const PanelCfgModelVersion = Object.freeze([0, 0]);
|
|
|
|
export interface PanelOptions extends common.SingleStatBaseOptions {
|
|
displayMode: common.BarGaugeDisplayMode;
|
|
minVizHeight: number;
|
|
minVizWidth: number;
|
|
showUnfilled: boolean;
|
|
valueMode: common.BarGaugeValueMode;
|
|
}
|
|
|
|
export const defaultPanelOptions: Partial<PanelOptions> = {
|
|
displayMode: common.BarGaugeDisplayMode.Gradient,
|
|
minVizHeight: 10,
|
|
minVizWidth: 0,
|
|
showUnfilled: true,
|
|
valueMode: common.BarGaugeValueMode.Color,
|
|
};
|