Black Lives Matter. Please consider donating to Black Girls Code today.

Data table header text rotate 45 degree

we have a large data table with dozens of columns. in order to display as much columns as possible on small screens we need to rotate the header text 45 degree. but the rotation should be kept also for export in SVG and PNG format. so pure CSS solution is not enough.

my questions are

1.) is it possible - other than with pure CSS - to rotate the table/header/text?
2.) are there any other methods to acchieve this?
3.) if there are no solutions - what would be the correct way to wirte an own plot.ly JS extension for such a purpose?

kind regards
bob_milano

You could start by sending a pull request to add new text textangleattribute to transform after this line https://github.com/plotly/plotly.js/blob/216b58760aefdf8dd92c770f8ee7f62f38c03e95/src/traces/table/plot.js#L463 or by opening a feature request here: https://github.com/plotly/plotly.js/issues

I opened this issue: https://github.com/plotly/plotly.js/issues/4492 in this regard.