amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.
https://www.amcharts.com/
1.16k stars 322 forks source link

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

Closed igoriok1994 closed 6 months ago

igoriok1994 commented 7 months ago

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 commented 7 months ago

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

martynasma commented 7 months ago

Maybe amCharts 5 would work better? 😉

github-actions[bot] commented 6 months ago

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.