mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 17:04:01 -04:00
smoothLines should not override the seriesParams setting
This commit is contained in:
parent
19ac99a388
commit
9047b2e3d3
1 changed files with 2 additions and 10 deletions
|
@ -8,7 +8,7 @@ export function VislibTypesPointSeries() {
|
||||||
}) : null;
|
}) : null;
|
||||||
|
|
||||||
|
|
||||||
let interpolate = matchingSeriParams ? matchingSeriParams.interpolate : cfg.interpolate;
|
let interpolate = cfg.interpolate;
|
||||||
// for backward compatibility when loading URLs or configs we need to check smoothLines
|
// for backward compatibility when loading URLs or configs we need to check smoothLines
|
||||||
if (cfg.smoothLines) interpolate = 'cardinal';
|
if (cfg.smoothLines) interpolate = 'cardinal';
|
||||||
|
|
||||||
|
@ -27,15 +27,7 @@ export function VislibTypesPointSeries() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
show: matchingSeriParams.show,
|
...matchingSeriParams,
|
||||||
type: matchingSeriParams.type,
|
|
||||||
mode: matchingSeriParams.mode,
|
|
||||||
interpolate: interpolate,
|
|
||||||
valueAxis: matchingSeriParams.valueAxis,
|
|
||||||
drawLinesBetweenPoints: matchingSeriParams.drawLinesBetweenPoints,
|
|
||||||
showCircles: matchingSeriParams.showCircles,
|
|
||||||
radiusRatio: cfg.radiusRatio,
|
|
||||||
lineWidth: matchingSeriParams.lineWidth,
|
|
||||||
data: seri
|
data: seri
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue