c3js / c3js/c3

Tooltip overflows in arc graph

Open
#2,660 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/9197891/62136781-1caf0d80-b2e5-11e9-8341-acde2ef2af46.png)

Moved to left:
![image](https://user-images.githubusercontent.com/9197891/62136759-128d0f00-b2e5-11e9-9d12-66feb727a466.png)

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!

* **C3 version**: 0.7.3
* **D3 version**: 5.9.2
* **Browser**: Chrome 75.0
* **OS**: macOS Mojave 10.14.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.