diff --git a/demos/path-gap-clip.html b/demos/path-gap-clip.html index bbc64388..b921fa50 100644 --- a/demos/path-gap-clip.html +++ b/demos/path-gap-clip.html @@ -126,24 +126,38 @@ series: [ {}, { - label: "A", + label: "step after", stroke: "blue", + fill: "rgba(0,0,255,0.3)", width: 2, paths: uPlot.paths.stepped({ align: 1, // ascDesc: true, }), }, + { + label: "linear", + stroke: "red", + width: 2, + }, + { + label: "spline", + stroke: "orange", + width: 2, + paths: uPlot.paths.spline(), + }, ], }; - let vals9 = [null,null,null,1,1,1,1,1,null,null,2,2,null,1,null,1,1,1,1,2,2,2]; + let vals9 = [null,null,null,1,1,1,1,1,null,null,2,2,null,1,undefined,undefined,null,1,1,1,1,2,2,2,undefined,undefined]; // let vals9 = [2,null,1,null,1,1]; // let vals9 = [2,null,1]; const data9 = [ vals9.map((v, i) => i), vals9, + vals9.map((v, i) => v == null ? v : v + 0.1), + vals9.map((v, i) => v == null ? v : v + 0.2), ]; let u9 = new uPlot(opts9, data9, document.body); @@ -160,20 +174,218 @@ series: [ {}, { - label: "A", + label: "step before", stroke: "red", + fill: "rgba(255,0,0,0.3)", width: 2, paths: uPlot.paths.stepped({ align: -1, // ascDesc: true, }), }, + { + label: "linear", + stroke: "blue", + width: 2, + }, + { + label: "spline", + stroke: "orange", + width: 2, + paths: uPlot.paths.spline(), + }, ], }; let u9_2 = new uPlot(opts9_2, data9, document.body); + + + +