Open aadibajpai opened 4 years ago
Yes, in general Plotly.js doesn't have any kind of automatic text-wrapping yet, unfortunately.
Is there a workaround to this?
I would love for this feature to be added as I find that this is the one aspect that lets Plotly down in implementation. I can have a great looking chart embedded on a webpage on a full sized browser window, but as soon as I view the site in a mobile the text elements such as titles, or annotations either clip or overlap the chart area.
Hi, I was following this https://plotly.com/javascript/responsive-fluid-layout/ and it made my chart responsive but the title does not wrap and gets truncated on mobile.
Link to code: https://gist.github.com/aadibajpai/b0c11721056325d4892cf926b950cdb1#file-snippet-html
and link to production: https://vanderbilthustler.com/category/coronavirus/