diff --git a/zenno/src/lib/StatChart.svelte b/zenno/src/lib/StatChart.svelte index 8f5d30b..8415a90 100644 --- a/zenno/src/lib/StatChart.svelte +++ b/zenno/src/lib/StatChart.svelte @@ -122,7 +122,7 @@ Plot.line(areaVals, { x: 'x', y: 'y1', stroke: 'label' }), Plot.line(areaVals, { x: 'x', y: 'y2', stroke: 'label' }), Plot.line(vals, { x: 'x', y: 'y', stroke: 'label', strokeWidth: 3 }), - vals.length > 0 ? Plot.tip(vals, Plot.pointerY({ x: 'x', y: 'y', stroke: 'label', className: 'plot-tip' })) : null, + vals.length > 0 ? Plot.tip(vals, Plot.pointerX({ x: 'x', y: 'y', stroke: 'label', className: 'plot-tip' })) : null, ], }), );