Closed 3rdBlock closed 6 months ago
in that demo, you can copy these lines into drawPointsAsStars()
:
you can also/instead refine the filtering conditions of the point drawing loop to exclude i0 and i1 idxs if they land outside u.scales.x.min
and u.scales.x.max
:
Is there a way to stop drawings from overflowing into the axis?
https://leeoniya.github.io/uPlot/demos/draw-hooks.html
As you can see in your example, if you zoom to specific areas the stars are visible in the axis zone. This is an issue if you have panning and zoom controls as it constantly overflows (both sides) into the axis view.