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

Wrong cursor position when viewbox and real width/height not matching #4396

Closed
igoriok1994 opened this issue Apr 16, 2024 · 3 comments
Closed

Comments

@igoriok1994
Copy link

I'm trying to create a chart inside SVG container. I have SVG viewBox, and CSS width/height.
When SVG viewBox matches CSS width/height - its ok. When not - cursors position is wrong.

https://codepen.io/xruyulqu-the-scripter/pen/gOydXzX

Is it possible to fix? Maybe there are some workarounds?

@martynasma
Copy link
Collaborator

I'm afraid there's nothing we can suggest for using chart as a foreignObject in an SVG.

@martynasma
Copy link
Collaborator

Maybe amCharts 5 would work better? 😉

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

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

No branches or pull requests

2 participants