Hi everyone, hi @adamschroeder,
I’m planning to make a blog to talk about stats/data analysis on environmental topics, and I’m planning to use Plotly to create some charts, some of which will be interactive. Since a lot of web traffic is generated via mobile phones, ideally the charts will have to be readable on both PCs and mobile.
I know about the ‘autosize’ argument, which helps, but my problems are the following:
- The font within the charts is often the most problematic aspect; they are set to a certain size, and thus remain this size when viewed on mobile. How can I make the font dynamically adapt?
- The chart itself, if it is quite big, remains a bit cramped, and navigating it (zooming scrolling etc) is complicated and makes it sometimes unusable on mobile. Are there ways to optimize the chart navigation?
I noticed several (official) websites including Plotly charts which are not really usable on mobile (e.g. here, here and here). Does it mean that it is an underlying limitation of Plotly charts? Does it also apply to all libraries building interactive charts in general?
Finally, would some CSS make it possible to improve the readability of Plotly charts? If so, would you have examples of scripts/commands to implement?
I realize that this is a lot of questions, but if anyone could help with at least some of them, that would be SO appreciated (that’s why they are in bold characters)! I have spent many days on these issues already, and not being a dev has its limits, so any help at all would be appreciated.
In case that’s helpful, here are two of my charts which are problematic on mobile:
https://plotly.com/~MichaelGauthier/4/
https://plotly.com/~MichaelGauthier/6/
If you need the scripts, just ask, I’ll share them happily.
Thanks again a million times, and apologies for the amount of questions, but I just need to know whether that is feasible or not for my project, and thus continue to spend time on it, or whether I should find alternative (less fancy) solutions right away!