Skip to content

Commit

Permalink
Merge pull request #2211 from amnonh/heatmap_start_color_from_zero
Browse files Browse the repository at this point in the history
Heatmap start color from zero
  • Loading branch information
amnonh authored Mar 10, 2024
2 parents 9e6774d + de4bce6 commit 382da47
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 5 deletions.
5 changes: 2 additions & 3 deletions grafana/scylla-detailed.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@
"panels": [
{
"title": "Tablet over time per [[by]]",
"type": "heatmap",
"class": "barchart_panel",
"class": "heatmap_panel",
"gridPos": {
"h": 13,
"w": 24
Expand All @@ -107,7 +106,7 @@
}
]
},
{
{
"title": "Tablet per [[by]]",
"class": "barchart_panel",
"span": 12,
Expand Down
3 changes: 1 addition & 2 deletions grafana/scylla-ks.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"panels": [
{
"title": "Tablets over time per [[by]]",
"type": "heatmap",
"class": "barchart_panel",
"class": "heatmap_panel",
"gridPos": {
"h": 13,
"w": 24
Expand Down
68 changes: 68 additions & 0 deletions grafana/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,74 @@
}
]
},
"heatmap_panel": {
"class": "graph_panel",
"fieldConfig": {
"defaults": {
"custom": {
"scaleDistribution": {
"type": "linear"
},
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
}
}
},
"overrides": []
},
"options": {
"calculate": false,
"yAxis": {
"axisPlacement": "left",
"reverse": false
},
"rowsFrame": {
"layout": "auto"
},
"color": {
"mode": "scheme",
"fill": "dark-orange",
"scale": "exponential",
"exponent": 0.5,
"scheme": "Oranges",
"steps": 64,
"reverse": false,
"min": 0
},
"cellGap": 1,
"filterValues": {
"le": 1e-9
},
"tooltip": {
"mode": "single",
"yHistogram": false,
"showColorScale": false,
"sort": "none"
},
"legend": {
"show": true,
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"barRadius": 0,
"barWidth": 0.89,
"fullHighlight": false,
"groupWidth": 0.7,
"orientation": "auto",
"showValue": "always",
"stacking": "none",
"xTickLabelRotation": 0,
"xTickLabelSpacing": 0
},
"type": "heatmap"
},
"barchart_panel": {
"type": "barchart",
"class": "graph_panel",
Expand Down

0 comments on commit 382da47

Please sign in to comment.