You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VictoryZoomCursorContainer, the line segments goes outside of the chart (e.g to the left of the x-axis).
This issue is that the chart domain of xRange is large, and I used Zoom + Cursor container to zoom into a subset, allowing panning functionality. Which causes Cursor Container's line segnment to render outside of current viewportX
I think edge-case is a better term than bug for this one.
The documentation states
The cursor moves with the mouse (or on touch on mobile devices) along the visible domain of the chart.
Since the domain of the chart is 7-days, I use zoom container first to "zoom" into 1 day, and allows the user to then pan to left and right within the total domain xRange. The cursor container (cursorComponent) neglects the x-axis.
This edgecase is most likely due to the usage of createContainer between zoom and cursor containers. VictoryZoom's clipping isn't operating on the cursor container to reflect what the "visible-domain" is.
Steps to reproduce
Using VictoryCursorContainer
Expected behavior
It should stop rendering the line segment if cursor is outside of the chart
Actual behavior
Environment
- Device:
- OS:
- Node: v20.5.1
- npm: 10.8.3
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Code of Conduct
Victory version
37.3.5
Code Sandbox link
No response
Bug report
I think edge-case is a better term than bug for this one.
The documentation states
Since the domain of the chart is 7-days, I use zoom container first to "zoom" into 1 day, and allows the user to then pan to left and right within the total domain xRange. The cursor container (cursorComponent) neglects the x-axis.
This edgecase is most likely due to the usage of
createContainer
between zoom and cursor containers. VictoryZoom's clipping isn't operating on the cursor container to reflect what the "visible-domain" is.Steps to reproduce
Using VictoryCursorContainer
Expected behavior
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: