From ed8fcb9486ea39537ac21285569d22cf0ec86774 Mon Sep 17 00:00:00 2001 From: jgaffuri Date: Tue, 26 Sep 2023 10:19:43 +0200 Subject: [PATCH] NS --- examples/styles/ninja_star_small.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/styles/ninja_star_small.html b/examples/styles/ninja_star_small.html index 3b28b0c75..3e3a96dc7 100644 --- a/examples/styles/ninja_star_small.html +++ b/examples/styles/ninja_star_small.html @@ -17,9 +17,10 @@ .setGeoCenter({ x: 0, y: 0 }) .setZoomFactor(0.02) - const cells = [], nb = 20 + const cells = [], nb = 15 for (let x = 0; x < nb; x++) { cells.push({ x: x, y: 0, v: x / (nb-1) * 100 }) + cells.push({ x: x, y: 2, v: x / (nb-1) * 100 }) } app.addLayerFromDataset( @@ -27,9 +28,10 @@ ), [ new gviz.NinjaStarStyle({ - color: () => 'purple', + color: () => 'black', sizeCol: 'v', size: (v, r, s, zf) => v / 100, + shape: (c)=> c.y==0?"p":"o" }), ], {