C3: Pie, donut and gauge charts don't respect interaction.enabled setting

Created on 4 Dec 2014  ·  4Comments  ·  Source: c3js/c3

interaction:{enabled:false} seems to work fine for other chart types like area/bar/line, but not pie? Testable quickly from http://c3js.org/samples/chart_pie.html

C-bug resolved maybe

Most helpful comment

Is it intentional that interaction:{enabled:false} does not disable mouse events on the legend? IMO, disabling interaction in the config should disable all mouse/touch functionality.

I'll gladly open a PR to introduce/fix this, but I wanted to confirm that the legend should function this way.

All 4 comments

Confirming the interaction property doesn't affect pie charts.

Edit: Also doesn't work with the donut and gauge variants — basically, anything that lacks axes. Additionally, interaction still occurs on line/scatter/area/etc. charts if you click/tap the legend.

Thanks for your reporting. I think this has been fixed now. I'll release this fix in the next version v0.4.8.

v0.4.8 has been released, so please let me close.

Is it intentional that interaction:{enabled:false} does not disable mouse events on the legend? IMO, disabling interaction in the config should disable all mouse/touch functionality.

I'll gladly open a PR to introduce/fix this, but I wanted to confirm that the legend should function this way.

Was this page helpful?
0 / 5 - 0 ratings