mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
PieChart: Make pie gradient more subtle to match other charts (#36961)
* change pie gradient to from colors
* increase label contrast
* Revert "change pie gradient to from colors"
This reverts commit 70d07d8b8e
.
* reduce spin values
This commit is contained in:
parent
cac4b4b443
commit
1efa5f51cf
@ -346,14 +346,14 @@ function getLabelPos(arc: PieArcDatum<FieldDisplay>, outerRadius: number, innerR
|
||||
function getGradientColorFrom(color: string, theme: GrafanaTheme2) {
|
||||
return tinycolor(color)
|
||||
.darken(20 * (theme.isDark ? 1 : -0.7))
|
||||
.spin(8)
|
||||
.spin(4)
|
||||
.toRgbString();
|
||||
}
|
||||
|
||||
function getGradientColorTo(color: string, theme: GrafanaTheme2) {
|
||||
return tinycolor(color)
|
||||
.darken(10 * (theme.isDark ? 1 : -0.7))
|
||||
.spin(-8)
|
||||
.spin(-4)
|
||||
.toRgbString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user