c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Tooltip overflows in arc graph #2660

Open EvertEt opened 5 years ago

EvertEt commented 5 years ago

The tooltips for arc graphs does not seem to take into account the right side of the graph like non-arc graphs do.

https://codepen.io/anon/pen/oKZOqQ

Overflow: image

Moved to left: image

Is there any reason the tooltipRight is not calculated and taken into account for arc graphs? https://github.com/c3js/c3/blob/master/src/tooltip.js#L179

Thanks a lot!