Render crosshair lines under chart content - #50
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1132a9851
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| this.canvas.style.position = "absolute"; | ||
| this.canvas.style.inset = "0"; | ||
| this.canvas.style.zIndex = "1"; |
There was a problem hiding this comment.
Keep inside axis labels above the canvas
When an axis is configured with position: "inside", AxisOverlay appends its tick-label divs directly to chart.plotElement without assigning a z-index, so adding zIndex = "1" to the canvas puts the WebGL canvas above those labels in the plot stacking order. In that configuration the inside tick labels are now painted underneath grid/series pixels instead of overlaying the chart as before; give the inside-axis labels a z-index above the canvas or avoid raising the canvas above existing plot overlays.
Useful? React with 👍 / 👎.
Summary
Tests