mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
BarChart: Only apply radius to topmost bar segment when stacking (#63906)
This commit is contained in:
parent
afc9925dbf
commit
9314fe1056
@ -286,7 +286,14 @@ export function getConfig(opts: BarsOptions, theme: GrafanaTheme2) {
|
||||
: {};
|
||||
|
||||
let barsBuilder = uPlot.paths.bars!({
|
||||
radius: barRadius,
|
||||
radius: pctStacked
|
||||
? 0
|
||||
: !isStacked
|
||||
? barRadius
|
||||
: (u: uPlot, seriesIdx: number) => {
|
||||
let isTopmostSeries = seriesIdx === u.data.length - 1;
|
||||
return isTopmostSeries ? [barRadius, 0] : [0, 0];
|
||||
},
|
||||
disp: {
|
||||
x0: {
|
||||
unit: 2,
|
||||
|
Loading…
Reference in New Issue
Block a user