Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component forcefully adds overflow: hidden to wrapping div, breaking small charts with tooltips #24

Open
cadriel opened this issue Jun 12, 2021 · 1 comment

Comments

@cadriel
Copy link

cadriel commented Jun 12, 2021

Currently, echarts-for-vue forcefully adds an overflow: hidden to the containing DIV element. For small charts on-screen, this breaks tooltips because they can't render outside of the wrapper.

You could set the option confine: true however this is less than ideal for smaller charts.

The fix is easy, remove overflow: hidden - which allows the tooltip to render outside of the bounds of the chart.

@cadriel
Copy link
Author

cadriel commented Jun 12, 2021

Its worth noting you can override this;

<ECharts
        style="overflow: initial;"
        ref="chart"...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant