Grafana/UI: Add basic legend to the PieChart (#31278)

* Add basic legend to the PieChart

* Remove console log

* Remove PieChartWithLegend and refactor PieChart a bit

* Use FALLBACK_COLOR

* Refactor PieChart

* Change back to [function]
This commit is contained in:
Oscar Kilhed
2021-02-19 11:49:40 +01:00
committed by GitHub
parent fe74c51d68
commit aeb4bcb3ed
3 changed files with 103 additions and 43 deletions
@@ -23,7 +23,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-saturated"
"mode": "palette-classic"
},
"custom": {},
"decimals": 1,
@@ -86,7 +86,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-saturated"
"mode": "palette-classic"
},
"custom": {},
"decimals": 1,
@@ -149,7 +149,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-saturated"
"mode": "palette-classic"
},
"custom": {},
"mappings": [],
@@ -210,7 +210,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-saturated"
"mode": "palette-classic"
},
"custom": {},
"mappings": [],
@@ -271,7 +271,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-saturated"
"mode": "palette-classic"
},
"custom": {},
"mappings": [],
@@ -332,7 +332,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-saturated"
"mode": "palette-classic"
},
"custom": {},
"mappings": [],