zenno: make stat chart tooltips attach vertically

This commit is contained in:
2026-06-14 18:59:33 -04:00
parent 8ef3936be5
commit cc2b5fcfcb
+1 -1
View File
@@ -122,7 +122,7 @@
Plot.line(areaVals, { x: 'x', y: 'y1', stroke: 'label' }), Plot.line(areaVals, { x: 'x', y: 'y1', stroke: 'label' }),
Plot.line(areaVals, { x: 'x', y: 'y2', stroke: 'label' }), Plot.line(areaVals, { x: 'x', y: 'y2', stroke: 'label' }),
Plot.line(vals, { x: 'x', y: 'y', stroke: 'label', strokeWidth: 3 }), 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,
], ],
}), }),
); );