mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
gauge working without thresholds
This commit is contained in:
parent
a7548cd294
commit
f8c8f2ec2c
@ -108,6 +108,7 @@ export class Gauge extends PureComponent<Props> {
|
||||
|
||||
draw() {
|
||||
const {
|
||||
baseColor,
|
||||
maxValue,
|
||||
minValue,
|
||||
timeSeries,
|
||||
@ -147,12 +148,10 @@ export class Gauge extends PureComponent<Props> {
|
||||
}),
|
||||
{
|
||||
value: maxValue,
|
||||
color: BasicGaugeColor.Red,
|
||||
color: thresholds.length > 0 ? BasicGaugeColor.Red : baseColor,
|
||||
},
|
||||
];
|
||||
|
||||
console.log(formattedThresholds);
|
||||
|
||||
const options = {
|
||||
series: {
|
||||
gauges: {
|
||||
|
Loading…
Reference in New Issue
Block a user