Tooltips and Mouse hover and click events aren't working on pie charts.
For example, the official pie chart example from docs doesn't show any console logs from mouse events:
http://c3js.org/samples/chart_pie.html
Adding this CSS/Sass fixed the mouse events and tooltips:
g.c3-chart {
g.c3-event-rects {
rect.c3-event-rect {
pointer-events: none;
}
}
}
Can we create a PR with this fix, if it works?
Adding this css breaks tooltips on bar chart.
Adding this css breaks tooltips on bar chart.
Yea, a better solution is needed to work for all c3 charts.
As @kvcrawford has suggested, the issue is .c3-event-rects getting rendered as last element. His PR should fix this issue for all the charts. PR got approved. Not sure when its going to be merged.
I would like to see this fixed.
Add the bug label to this issue?
@kt3k Good to see the commit! When do you expect to release a new version?
Hello @1Jesper1
We've just published the fix as v0.6.4! Thanks!
Most helpful comment
Adding this CSS/Sass fixed the mouse events and tooltips: