mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -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;
|
||||
|
||||
|
||||
let interpolate = matchingSeriParams ? matchingSeriParams.interpolate : cfg.interpolate;
|
||||
let interpolate = cfg.interpolate;
|
||||
// for backward compatibility when loading URLs or configs we need to check smoothLines
|
||||
if (cfg.smoothLines) interpolate = 'cardinal';
|
||||
|
||||
|
@ -27,15 +27,7 @@ export function VislibTypesPointSeries() {
|
|||
}
|
||||
|
||||
return {
|
||||
show: matchingSeriParams.show,
|
||||
type: matchingSeriParams.type,
|
||||
mode: matchingSeriParams.mode,
|
||||
interpolate: interpolate,
|
||||
valueAxis: matchingSeriParams.valueAxis,
|
||||
drawLinesBetweenPoints: matchingSeriParams.drawLinesBetweenPoints,
|
||||
showCircles: matchingSeriParams.showCircles,
|
||||
radiusRatio: cfg.radiusRatio,
|
||||
lineWidth: matchingSeriParams.lineWidth,
|
||||
...matchingSeriParams,
|
||||
data: seri
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue