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

[Feature] Chart increase size on hover gets cut due to container width #17558

Closed
ibrahimOcoder opened this issue Aug 23, 2022 · 6 comments
Closed
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days.

Comments

@ibrahimOcoder
Copy link

What problem does this feature solve?

We have implemented an on hover method to increase the radius of chart (snapshot attached). However, it gets cut due to container width and most importantly the overflow of auto generated div of echarts is hidden (snapshot attached). Is there any way to set it to visible and also set the same to the auto generated svg?
chart issue 2
chart issue 1

What does the proposed API look like?

We have fixed the issue by setting overflow to visible but just from inspect element. It would be good if you can provide any style property of it in series.pie.itemStyle or any other solution.

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Aug 23, 2022
@mhamri
Copy link

mhamri commented Aug 23, 2022

look like the issue is with zrender lib, hardcoding the overflow:hidden. the lib should provide enough API to set these settings

https://github.com/ecomfe/zrender/blob/e6d458c1e7bfeeb1949b3462d3a7d48d8dea12fc/src/svg/Painter.ts#L72

@Ovilia
Copy link
Contributor

Ovilia commented Aug 24, 2022

This doesn't seem to be a problem with ECharts. If the chart has bigger radius on hovering, then you should probably decrease the default radius to make the hovered radius to be less than 50%.

@mhamri
Copy link

mhamri commented Aug 24, 2022 via email

@Ovilia
Copy link
Contributor

Ovilia commented Aug 24, 2022

If this is the case, you should set a bigger size for your container and use an outer container to control the overflow.

<div class="overflow: auto">
   <div id="chart-container" style="width: 110%; height: 110%"><!-- this is the dom you pass to ECharts --></div>
</div>

Copy link
Contributor

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Aug 23, 2024
Copy link
Contributor

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants