Closed Venefilyn closed 4 years ago
Any updates on this?
My guess would be that the zoom is only applied to <g>
elements, which means it stops when hovering over <line>
or <text>
.
Though I'm not sure where this happens
Moving c3-event-rects
above c3-chart
seems to work when testing in browser. Though editing locally and doing tests seems to break when I try to do prepend
instead of append
There's an undocumented grid.lines.front
which is defaulted to true. Turning this false made zoom to work.
Why is it undocumented? Why is it default true?
Adding
grid.x.lines
to a chart withzoom.enabled=true
will create lines and labels on the chart that prevent zooming. It also prevents hovercard info on the dots if the label or line is in the waySandbox: https://codesandbox.io/s/modest-cherry-t6p6o?fontsize=14
Expected results
Actual results