Closed quadriq closed 7 months ago
lineInterpolation
is not part of the core API, it is part of the demo example you linked. you have to use the code in that demo for that option to work.
the way to make a spline path in the core is like this: https://jsfiddle.net/okzhg79u/
let data = [
[0, 1, 2],
[2, 1, 5],
];
const opts = {
width: 600,
height: 400,
scales: {
x: {
time: false,
},
},
series: [
{},
{
stroke: "red",
paths: uPlot.paths.spline(),
},
],
};
let u = new uPlot(opts, data, document.body);
Hi,
here my uplot opts:
however I do not see smooth lines.. I tried different values from example here: https://leeoniya.github.io/uPlot/demos/line-paths.html
any idea what am I doing whrong?