zenno: make stat chart tooltips attach vertically
This commit is contained in:
@@ -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,
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user