Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit cf1f9c3

Browse files
author
Przemyslaw Kalitowski
committed
allow to set up orientation and displayMode of barguage
1 parent cc1626a commit cf1f9c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

grafonnet/bar_gauge_panel.libsonnet

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
datasource=null,
2020
unit=null,
2121
thresholds=[],
22+
orientation=null,
23+
displayMode=null,
2224
):: {
2325
type: 'bargauge',
2426
title: title,
@@ -43,5 +45,17 @@
4345
targets+: [target { refId: std.char(std.codepoint('A') + nextTarget) }],
4446
},
4547
addTargets(targets):: std.foldl(function(p, t) p.addTarget(t), targets, self),
48+
"options": {
49+
"reduceOptions": {
50+
"values": false,
51+
"calcs": [
52+
"mean"
53+
],
54+
"fields": ""
55+
},
56+
"orientation": orientation,
57+
"displayMode": displayMode,
58+
"showUnfilled": true
59+
},
4660
},
4761
}

0 commit comments

Comments
 (0)