mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Gauges: Fixing broken auto sizing (#79926)
This commit is contained in:
parent
7746250367
commit
9126dbceaf
@ -30,8 +30,8 @@ It extends [SingleStatBaseOptions](#singlestatbaseoptions).
|
|||||||
|-----------------|-------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
|-----------------|-------------------------------------------------|----------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `displayMode` | string | **Yes** | | Enum expressing the possible display modes<br/>for the bar gauge component of Grafana UI<br/>Possible values are: `basic`, `lcd`, `gradient`. |
|
| `displayMode` | string | **Yes** | | Enum expressing the possible display modes<br/>for the bar gauge component of Grafana UI<br/>Possible values are: `basic`, `lcd`, `gradient`. |
|
||||||
| `maxVizHeight` | uint32 | **Yes** | `300` | |
|
| `maxVizHeight` | uint32 | **Yes** | `300` | |
|
||||||
| `minVizHeight` | uint32 | **Yes** | `75` | |
|
| `minVizHeight` | uint32 | **Yes** | `16` | |
|
||||||
| `minVizWidth` | uint32 | **Yes** | `75` | |
|
| `minVizWidth` | uint32 | **Yes** | `8` | |
|
||||||
| `namePlacement` | string | **Yes** | | Allows for the bar gauge name to be placed explicitly<br/>Possible values are: `auto`, `top`, `left`. |
|
| `namePlacement` | string | **Yes** | | Allows for the bar gauge name to be placed explicitly<br/>Possible values are: `auto`, `top`, `left`. |
|
||||||
| `showUnfilled` | boolean | **Yes** | `true` | |
|
| `showUnfilled` | boolean | **Yes** | `true` | |
|
||||||
| `sizing` | string | **Yes** | | Allows for the bar gauge size to be set explicitly<br/>Possible values are: `auto`, `manual`. |
|
| `sizing` | string | **Yes** | | Allows for the bar gauge size to be set explicitly<br/>Possible values are: `auto`, `manual`. |
|
||||||
|
@ -28,8 +28,8 @@ It extends [SingleStatBaseOptions](#singlestatbaseoptions).
|
|||||||
|
|
||||||
| Property | Type | Required | Default | Description |
|
| Property | Type | Required | Default | Description |
|
||||||
|------------------------|-------------------------------------------------|----------|---------|---------------------------------------------------------------------------------------------------------------------------------------------|
|
|------------------------|-------------------------------------------------|----------|---------|---------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `minVizHeight` | uint32 | **Yes** | `200` | |
|
| `minVizHeight` | uint32 | **Yes** | `75` | |
|
||||||
| `minVizWidth` | uint32 | **Yes** | `200` | |
|
| `minVizWidth` | uint32 | **Yes** | `75` | |
|
||||||
| `showThresholdLabels` | boolean | **Yes** | `false` | |
|
| `showThresholdLabels` | boolean | **Yes** | `false` | |
|
||||||
| `showThresholdMarkers` | boolean | **Yes** | `true` | |
|
| `showThresholdMarkers` | boolean | **Yes** | `true` | |
|
||||||
| `sizing` | string | **Yes** | | Allows for the bar gauge size to be set explicitly<br/>Possible values are: `auto`, `manual`. |
|
| `sizing` | string | **Yes** | | Allows for the bar gauge size to be set explicitly<br/>Possible values are: `auto`, `manual`. |
|
||||||
|
@ -27,8 +27,8 @@ export interface Options extends common.SingleStatBaseOptions {
|
|||||||
export const defaultOptions: Partial<Options> = {
|
export const defaultOptions: Partial<Options> = {
|
||||||
displayMode: common.BarGaugeDisplayMode.Gradient,
|
displayMode: common.BarGaugeDisplayMode.Gradient,
|
||||||
maxVizHeight: 300,
|
maxVizHeight: 300,
|
||||||
minVizHeight: 75,
|
minVizHeight: 16,
|
||||||
minVizWidth: 75,
|
minVizWidth: 8,
|
||||||
namePlacement: common.BarGaugeNamePlacement.Auto,
|
namePlacement: common.BarGaugeNamePlacement.Auto,
|
||||||
showUnfilled: true,
|
showUnfilled: true,
|
||||||
sizing: common.BarGaugeSizing.Auto,
|
sizing: common.BarGaugeSizing.Auto,
|
||||||
|
@ -22,8 +22,8 @@ export interface Options extends common.SingleStatBaseOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const defaultOptions: Partial<Options> = {
|
export const defaultOptions: Partial<Options> = {
|
||||||
minVizHeight: 200,
|
minVizHeight: 75,
|
||||||
minVizWidth: 200,
|
minVizWidth: 75,
|
||||||
showThresholdLabels: false,
|
showThresholdLabels: false,
|
||||||
showThresholdMarkers: true,
|
showThresholdMarkers: true,
|
||||||
sizing: common.BarGaugeSizing.Auto,
|
sizing: common.BarGaugeSizing.Auto,
|
||||||
|
@ -32,8 +32,8 @@ composableKinds: PanelCfg: {
|
|||||||
namePlacement: common.BarGaugeNamePlacement & (*"auto" | _)
|
namePlacement: common.BarGaugeNamePlacement & (*"auto" | _)
|
||||||
showUnfilled: bool | *true
|
showUnfilled: bool | *true
|
||||||
sizing: common.BarGaugeSizing & (*"auto" | _)
|
sizing: common.BarGaugeSizing & (*"auto" | _)
|
||||||
minVizWidth: uint32 | *75
|
minVizWidth: uint32 | *8
|
||||||
minVizHeight: uint32 | *75
|
minVizHeight: uint32 | *16
|
||||||
maxVizHeight: uint32 | *300
|
maxVizHeight: uint32 | *300
|
||||||
} @cuetsy(kind="interface")
|
} @cuetsy(kind="interface")
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ export interface Options extends common.SingleStatBaseOptions {
|
|||||||
export const defaultOptions: Partial<Options> = {
|
export const defaultOptions: Partial<Options> = {
|
||||||
displayMode: common.BarGaugeDisplayMode.Gradient,
|
displayMode: common.BarGaugeDisplayMode.Gradient,
|
||||||
maxVizHeight: 300,
|
maxVizHeight: 300,
|
||||||
minVizHeight: 75,
|
minVizHeight: 16,
|
||||||
minVizWidth: 75,
|
minVizWidth: 8,
|
||||||
namePlacement: common.BarGaugeNamePlacement.Auto,
|
namePlacement: common.BarGaugeNamePlacement.Auto,
|
||||||
showUnfilled: true,
|
showUnfilled: true,
|
||||||
sizing: common.BarGaugeSizing.Auto,
|
sizing: common.BarGaugeSizing.Auto,
|
||||||
|
@ -30,8 +30,8 @@ composableKinds: PanelCfg: {
|
|||||||
showThresholdLabels: bool | *false
|
showThresholdLabels: bool | *false
|
||||||
showThresholdMarkers: bool | *true
|
showThresholdMarkers: bool | *true
|
||||||
sizing: common.BarGaugeSizing & (*"auto" | _)
|
sizing: common.BarGaugeSizing & (*"auto" | _)
|
||||||
minVizWidth: uint32 | *200
|
minVizWidth: uint32 | *75
|
||||||
minVizHeight: uint32 | *200
|
minVizHeight: uint32 | *75
|
||||||
} @cuetsy(kind="interface")
|
} @cuetsy(kind="interface")
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
@ -19,8 +19,8 @@ export interface Options extends common.SingleStatBaseOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const defaultOptions: Partial<Options> = {
|
export const defaultOptions: Partial<Options> = {
|
||||||
minVizHeight: 200,
|
minVizHeight: 75,
|
||||||
minVizWidth: 200,
|
minVizWidth: 75,
|
||||||
showThresholdLabels: false,
|
showThresholdLabels: false,
|
||||||
showThresholdMarkers: true,
|
showThresholdMarkers: true,
|
||||||
sizing: common.BarGaugeSizing.Auto,
|
sizing: common.BarGaugeSizing.Auto,
|
||||||
|
Loading…
Reference in New Issue
Block a user