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

Allow configuring options of bar gauge panel #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions grafonnet/bar_gauge_panel.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @param datasource (optional) Panel datasource.
* @param unit (optional) The unit of the data.
* @param thresholds (optional) An array of threashold values.
* @param options (optional) An object containing panel options
*
* @method addTarget(target) Adds a target object.
* @method addTargets(targets) Adds an array of targets.
Expand All @@ -19,6 +20,7 @@
datasource=null,
unit=null,
thresholds=[],
options={},
):: {
type: 'bargauge',
title: title,
Expand All @@ -35,6 +37,7 @@
},
},
},
options: options,
_nextTarget:: 0,
addTarget(target):: self {
// automatically ref id in added targets.
Expand Down