Skip to content

Commit

Permalink
stroke color drive
Browse files Browse the repository at this point in the history
see changelog
  • Loading branch information
andymchugh committed May 28, 2024
1 parent eb916c2 commit adec015
Show file tree
Hide file tree
Showing 8 changed files with 768 additions and 22 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ an additional clip-path rect is added to the SVG. This rect then gets driven bas
incoming data. New config terms:
- cells.cell-name.fillLevel

Stroke Color
------------
Adds support for driving stroke color. i.e. coloring the structural lines of shapes and connections.
The yaml drive is identical in nature to the fillColor drive.
New config terms:
- cells.cell-name.strokeColor

## 1.12.0
URL Grafana Variables
---------------------
Expand Down
63 changes: 63 additions & 0 deletions provisioning/dashboardData/strokeColor_datapoint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---

#------------------------------------------------------------------------------
# YAML Aliases to simplify maintenance

anchorLinks:
- link: &grafana-home
url: "https://grafana.com/"
params: "time"
- thresholds: &thresholds-lrg
- {color: "green", level: 0}
- {color: "orange", level: 500}
- {color: "red", level: 800}
- thresholds: &thresholds-sml
- {color: "green", level: 0}
- {color: "orange", level: 100}
- {color: "red", level: 150}

test:
testDataSparse: true

#------------------------------------------------------------------------------
# Panel Config

gradientMode: "hue"
cellIdPreamble: "cell-"

cells:
inbox_depth:
dataRef: "test-data-large-sin"
label:
separator: "cr"
units: "none"
labelColor:
thresholds: *thresholds-lrg
strokeColor:
thresholds: *thresholds-lrg
db_transactions:
dataRef: "test-data-large-cos"
label:
separator: "cr"
units: "ops"
decimalPoints: 0
strokeColor:
thresholds: *thresholds-lrg
start_rate:
dataRef: "test-data-small-sin"
label:
separator: "colon"
units: "pps"
labelColor:
thresholds: *thresholds-sml
strokeColor:
thresholds: *thresholds-sml
active_workers:
dataRef: "test-data-small-cos"
label:
separator: "cr"
units: "none"
labelColor:
thresholds: *thresholds-sml
strokeColor:
thresholds: *thresholds-sml
Loading

0 comments on commit adec015

Please sign in to comment.