Posted by Joachim at 16:48 on Sunday 21st February 2021[link]
Setting property "textAccessible" gives quite a lot advantages but may cause some problems as well. I wonder if following could be solved: If you are requesting 3d-apearance for bar charts ("variant=3d") then the chart will be displayed with a certain rotation angle. So far so good... But if you then set textAccessible to "true" then the entire canvas will rotated with the same angle as well. Is there a way to avoid this (so that the canvas stays to be displayed horizontally and not rotated)?
Posted by Richard at 17:33 on Sunday 21st February 2021[link]
Posted by Joachim at 18:21 on Sunday 21st February 2021[link]
Thanks for your response! Tried your suggestions but w/o success - the canvas only stays rectangular if I specify textAccessible=false - putting the canvas into its own div does not make any difference (besides padding or margin).
Posted by Richard at 18:36 on Sunday 21st February 2021[link]
Posted by Joachim at 18:52 on Sunday 21st February 2021[link]
now I did understand - I had a background image assigned to the canvas and this always is slanted together with the canvas. Now I moved this background to the wrapping div and this (of course) stayes rectangular and everything is fine with or without textAccessible.
Posted by Joachim at 11:00 on Monday 22nd February 2021[link]
If you use RGraph's responsiveFunction how would you ensure that the canvas always fits into wrapping div if the window is resized? I could not find any clever solution for this.
Posted by Richard at 11:29 on Monday 22nd February 2021[link]
I'm not 100% certain of what you mean - would the "parentCss" option be what you need?
Or if you wanted to run some code that interrogates the document you could do that with the "callback" option. I've updated the example with some responsive code that shows both: