Closed johkemper closed 6 months ago
Hi, do you mean the zoom functionality from the browser itself?
That seems to make sense somewhat since you have specified the dimensions of the image in pixels (e.g.: width = 810
).
Are these required? I've never really used this feature, maybe scaleX and scaleY could help
Dear John! Thanks a lot for your answer! Yes, I mean the zoom functionality from the browser. True, what you write sounds logic. I need to relate the image to the size of the radar chart. Unfortunately, I have no idea how I can use your hint to modify my code accordingly. Do you have a suggestion? Thanks a lot in advance!
You can pass scaleX
(and Y) to e_image_g
to change how the image scales: number between 0 and 1.
e_image_g(scaleX = .5, scaleY = .5)
In my app, I use the "e_radar" plot type. I add a background image to the radar plot using "e_image_g", as its also used in the example (at the bottom): https://echarts4r.john-coene.com/reference/graphic (though in that example with e_charts, e_scatter).
The problem is: if the using the app in different browsers, with different zoom parameters (e.g. 80% vs. 90% zoom in Chrome browser), the radar chart will adjust its size to the browser zoom, but the background image does not. Could anyone help me how I could make sure that the background image adjusts in the same way?
The relevant code snippet (I hope its ok to not show an example that is not entirely reproducible):
radar plot
.....
I'd be grateful for help on this issue!