mirror of https://github.com/grafana/grafana
Geomap: Minor style fixes (#38532)
* Fixed hover font-weight, option casing, and added simple test dashboard with 3 panels * Update theme colors * Style tweaks to legend * Updated Co-authored-by: Ryan McKinley <ryantxu@gmail.com>pull/38577/head
parent
12320dda3c
commit
d5ed4e9c8c
@ -0,0 +1,404 @@ |
|||||||
|
{ |
||||||
|
"annotations": { |
||||||
|
"list": [ |
||||||
|
{ |
||||||
|
"builtIn": 1, |
||||||
|
"datasource": "-- Grafana --", |
||||||
|
"enable": true, |
||||||
|
"hide": true, |
||||||
|
"iconColor": "rgba(0, 211, 255, 1)", |
||||||
|
"name": "Annotations & Alerts", |
||||||
|
"target": { |
||||||
|
"limit": 100, |
||||||
|
"matchAny": false, |
||||||
|
"tags": [], |
||||||
|
"type": "dashboard" |
||||||
|
}, |
||||||
|
"type": "dashboard" |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
"editable": true, |
||||||
|
"gnetId": null, |
||||||
|
"graphTooltip": 0, |
||||||
|
"links": [], |
||||||
|
"liveNow": false, |
||||||
|
"panels": [ |
||||||
|
{ |
||||||
|
"datasource": null, |
||||||
|
"fieldConfig": { |
||||||
|
"defaults": { |
||||||
|
"color": { |
||||||
|
"mode": "continuous-GrYlRd" |
||||||
|
}, |
||||||
|
"mappings": [], |
||||||
|
"thresholds": { |
||||||
|
"mode": "absolute", |
||||||
|
"steps": [ |
||||||
|
{ |
||||||
|
"color": "green", |
||||||
|
"value": null |
||||||
|
}, |
||||||
|
{ |
||||||
|
"color": "red", |
||||||
|
"value": 80 |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"overrides": [] |
||||||
|
}, |
||||||
|
"gridPos": { |
||||||
|
"h": 11, |
||||||
|
"w": 9, |
||||||
|
"x": 0, |
||||||
|
"y": 0 |
||||||
|
}, |
||||||
|
"id": 62, |
||||||
|
"options": { |
||||||
|
"basemap": { |
||||||
|
"config": {}, |
||||||
|
"type": "default" |
||||||
|
}, |
||||||
|
"controls": { |
||||||
|
"mouseWheelZoom": true, |
||||||
|
"showAttribution": true, |
||||||
|
"showDebug": false, |
||||||
|
"showScale": false, |
||||||
|
"showZoom": true |
||||||
|
}, |
||||||
|
"layers": [ |
||||||
|
{ |
||||||
|
"config": { |
||||||
|
"color": { |
||||||
|
"field": "Price", |
||||||
|
"fixed": "dark-green" |
||||||
|
}, |
||||||
|
"fillOpacity": 0.4, |
||||||
|
"shape": "circle", |
||||||
|
"showLegend": true, |
||||||
|
"size": { |
||||||
|
"field": "Count", |
||||||
|
"fixed": 5, |
||||||
|
"max": 15, |
||||||
|
"min": 2 |
||||||
|
} |
||||||
|
}, |
||||||
|
"location": { |
||||||
|
"gazetteer": "public/gazetteer/usa-states.json", |
||||||
|
"lookup": "State", |
||||||
|
"mode": "auto" |
||||||
|
}, |
||||||
|
"type": "markers" |
||||||
|
} |
||||||
|
], |
||||||
|
"view": { |
||||||
|
"id": "coords", |
||||||
|
"lat": 38.297683, |
||||||
|
"lon": -99.228359, |
||||||
|
"shared": true, |
||||||
|
"zoom": 3.98 |
||||||
|
} |
||||||
|
}, |
||||||
|
"targets": [ |
||||||
|
{ |
||||||
|
"csvFileName": "flight_info_by_state.csv", |
||||||
|
"refId": "A", |
||||||
|
"scenarioId": "csv_file" |
||||||
|
} |
||||||
|
], |
||||||
|
"title": "Size, color mapped to different fields + share view", |
||||||
|
"type": "geomap" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"datasource": null, |
||||||
|
"fieldConfig": { |
||||||
|
"defaults": { |
||||||
|
"color": { |
||||||
|
"mode": "thresholds" |
||||||
|
}, |
||||||
|
"mappings": [], |
||||||
|
"thresholds": { |
||||||
|
"mode": "absolute", |
||||||
|
"steps": [ |
||||||
|
{ |
||||||
|
"color": "green", |
||||||
|
"value": null |
||||||
|
}, |
||||||
|
{ |
||||||
|
"color": "red", |
||||||
|
"value": 80 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"color": "#EAB839", |
||||||
|
"value": 90 |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"overrides": [] |
||||||
|
}, |
||||||
|
"gridPos": { |
||||||
|
"h": 11, |
||||||
|
"w": 9, |
||||||
|
"x": 9, |
||||||
|
"y": 0 |
||||||
|
}, |
||||||
|
"id": 66, |
||||||
|
"options": { |
||||||
|
"basemap": { |
||||||
|
"config": {}, |
||||||
|
"type": "default" |
||||||
|
}, |
||||||
|
"controls": { |
||||||
|
"mouseWheelZoom": true, |
||||||
|
"showAttribution": true, |
||||||
|
"showDebug": false, |
||||||
|
"showScale": false, |
||||||
|
"showZoom": true |
||||||
|
}, |
||||||
|
"layers": [ |
||||||
|
{ |
||||||
|
"config": { |
||||||
|
"color": { |
||||||
|
"field": "Price", |
||||||
|
"fixed": "dark-green" |
||||||
|
}, |
||||||
|
"fillOpacity": 0.4, |
||||||
|
"shape": "circle", |
||||||
|
"showLegend": true, |
||||||
|
"size": { |
||||||
|
"field": "Count", |
||||||
|
"fixed": 5, |
||||||
|
"max": 15, |
||||||
|
"min": 2 |
||||||
|
} |
||||||
|
}, |
||||||
|
"location": { |
||||||
|
"gazetteer": "public/gazetteer/usa-states.json", |
||||||
|
"lookup": "State", |
||||||
|
"mode": "auto" |
||||||
|
}, |
||||||
|
"type": "markers" |
||||||
|
} |
||||||
|
], |
||||||
|
"view": { |
||||||
|
"id": "coords", |
||||||
|
"lat": 38.297683, |
||||||
|
"lon": -99.228359, |
||||||
|
"shared": true, |
||||||
|
"zoom": 3.98 |
||||||
|
} |
||||||
|
}, |
||||||
|
"targets": [ |
||||||
|
{ |
||||||
|
"csvFileName": "flight_info_by_state.csv", |
||||||
|
"refId": "A", |
||||||
|
"scenarioId": "csv_file" |
||||||
|
} |
||||||
|
], |
||||||
|
"title": "Thresholds legend", |
||||||
|
"type": "geomap" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"datasource": null, |
||||||
|
"fieldConfig": { |
||||||
|
"defaults": { |
||||||
|
"color": { |
||||||
|
"mode": "continuous-BlYlRd" |
||||||
|
}, |
||||||
|
"mappings": [], |
||||||
|
"thresholds": { |
||||||
|
"mode": "absolute", |
||||||
|
"steps": [ |
||||||
|
{ |
||||||
|
"color": "green", |
||||||
|
"value": null |
||||||
|
}, |
||||||
|
{ |
||||||
|
"color": "red", |
||||||
|
"value": 80 |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"overrides": [] |
||||||
|
}, |
||||||
|
"gridPos": { |
||||||
|
"h": 11, |
||||||
|
"w": 9, |
||||||
|
"x": 0, |
||||||
|
"y": 11 |
||||||
|
}, |
||||||
|
"id": 63, |
||||||
|
"options": { |
||||||
|
"basemap": { |
||||||
|
"config": {}, |
||||||
|
"type": "default" |
||||||
|
}, |
||||||
|
"controls": { |
||||||
|
"mouseWheelZoom": true, |
||||||
|
"showAttribution": true, |
||||||
|
"showDebug": false, |
||||||
|
"showScale": false, |
||||||
|
"showZoom": true |
||||||
|
}, |
||||||
|
"layers": [ |
||||||
|
{ |
||||||
|
"config": { |
||||||
|
"blur": 27, |
||||||
|
"radius": 25, |
||||||
|
"weight": { |
||||||
|
"field": "Count", |
||||||
|
"fixed": 1, |
||||||
|
"max": 1, |
||||||
|
"min": 0 |
||||||
|
} |
||||||
|
}, |
||||||
|
"location": { |
||||||
|
"gazetteer": "public/gazetteer/usa-states.json", |
||||||
|
"lookup": "State", |
||||||
|
"mode": "auto" |
||||||
|
}, |
||||||
|
"type": "heatmap" |
||||||
|
} |
||||||
|
], |
||||||
|
"view": { |
||||||
|
"id": "coords", |
||||||
|
"lat": 38.251497, |
||||||
|
"lon": -100.932144, |
||||||
|
"shared": false, |
||||||
|
"zoom": 4.15 |
||||||
|
} |
||||||
|
}, |
||||||
|
"targets": [ |
||||||
|
{ |
||||||
|
"csvFileName": "flight_info_by_state.csv", |
||||||
|
"refId": "A", |
||||||
|
"scenarioId": "csv_file" |
||||||
|
} |
||||||
|
], |
||||||
|
"title": "Heatmap data layer", |
||||||
|
"transformations": [], |
||||||
|
"type": "geomap" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"datasource": null, |
||||||
|
"fieldConfig": { |
||||||
|
"defaults": { |
||||||
|
"color": { |
||||||
|
"mode": "continuous-GrYlRd" |
||||||
|
}, |
||||||
|
"mappings": [], |
||||||
|
"thresholds": { |
||||||
|
"mode": "absolute", |
||||||
|
"steps": [ |
||||||
|
{ |
||||||
|
"color": "green", |
||||||
|
"value": null |
||||||
|
}, |
||||||
|
{ |
||||||
|
"color": "red", |
||||||
|
"value": 80 |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
}, |
||||||
|
"overrides": [] |
||||||
|
}, |
||||||
|
"gridPos": { |
||||||
|
"h": 11, |
||||||
|
"w": 9, |
||||||
|
"x": 9, |
||||||
|
"y": 11 |
||||||
|
}, |
||||||
|
"id": 65, |
||||||
|
"options": { |
||||||
|
"basemap": { |
||||||
|
"config": { |
||||||
|
"server": "world-imagery" |
||||||
|
}, |
||||||
|
"type": "esri-xyz" |
||||||
|
}, |
||||||
|
"controls": { |
||||||
|
"mouseWheelZoom": true, |
||||||
|
"showAttribution": true, |
||||||
|
"showDebug": false, |
||||||
|
"showScale": false, |
||||||
|
"showZoom": true |
||||||
|
}, |
||||||
|
"layers": [ |
||||||
|
{ |
||||||
|
"config": { |
||||||
|
"color": { |
||||||
|
"fixed": "#ff001e" |
||||||
|
}, |
||||||
|
"fillOpacity": 0.4, |
||||||
|
"shape": "star", |
||||||
|
"showLegend": true, |
||||||
|
"size": { |
||||||
|
"field": "Count", |
||||||
|
"fixed": 5, |
||||||
|
"max": 15, |
||||||
|
"min": 2 |
||||||
|
} |
||||||
|
}, |
||||||
|
"location": { |
||||||
|
"gazetteer": "public/gazetteer/usa-states.json", |
||||||
|
"lookup": "State", |
||||||
|
"mode": "auto" |
||||||
|
}, |
||||||
|
"type": "markers" |
||||||
|
} |
||||||
|
], |
||||||
|
"view": { |
||||||
|
"id": "coords", |
||||||
|
"lat": 40.159084, |
||||||
|
"lon": -96.508021, |
||||||
|
"shared": true, |
||||||
|
"zoom": 3.83 |
||||||
|
} |
||||||
|
}, |
||||||
|
"targets": [ |
||||||
|
{ |
||||||
|
"csvFileName": "flight_info_by_state.csv", |
||||||
|
"refId": "A", |
||||||
|
"scenarioId": "csv_file" |
||||||
|
} |
||||||
|
], |
||||||
|
"title": "Base layer ArcGIS wold imagery + star shape + share view", |
||||||
|
"type": "geomap" |
||||||
|
} |
||||||
|
], |
||||||
|
"refresh": "", |
||||||
|
"schemaVersion": 30, |
||||||
|
"style": "dark", |
||||||
|
"tags": [ |
||||||
|
"gdev", |
||||||
|
"panel-tests" |
||||||
|
], |
||||||
|
"templating": { |
||||||
|
"list": [] |
||||||
|
}, |
||||||
|
"time": { |
||||||
|
"from": "now-6h", |
||||||
|
"to": "now" |
||||||
|
}, |
||||||
|
"timepicker": { |
||||||
|
"refresh_intervals": [ |
||||||
|
"10s", |
||||||
|
"30s", |
||||||
|
"1m", |
||||||
|
"5m", |
||||||
|
"15m", |
||||||
|
"30m", |
||||||
|
"1h", |
||||||
|
"2h", |
||||||
|
"1d" |
||||||
|
] |
||||||
|
}, |
||||||
|
"timezone": "", |
||||||
|
"title": "Panel Tests - Geomap", |
||||||
|
"uid": "2xuwrgV7z", |
||||||
|
"version": 5 |
||||||
|
} |
||||||
Loading…
Reference in new issue