amcharts4 icon indicating copy to clipboard operation
amcharts4 copied to clipboard

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

Open igoriok1994 opened this issue 2 months ago • 3 comments

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?

igoriok1994 avatar Apr 16 '24 13:04 igoriok1994

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

martynasma avatar Apr 16 '24 13:04 martynasma

Maybe amCharts 5 would work better? 😉

martynasma avatar Apr 16 '24 13:04 martynasma

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.

github-actions[bot] avatar May 17 '24 00:05 github-actions[bot]