With the bar graph, you can add orientation: h
to the trace.
Couldn't find a way to do that with line graph, so a basic graph like this one:
Can be rotated to look something like this (rotated in gimp...):
With the bar graph, you can add orientation: h
to the trace.
Couldn't find a way to do that with line graph, so a basic graph like this one:
Can be rotated to look something like this (rotated in gimp...):
Copyright © 2021 Jogjafile Inc.
As far as I know there is no direct of doing so but you can take advantage of Plotly using D3 and the fact that all graphs are SVGs.
By applying
rotate
andtransform
to the plot itself you get the desired result.The class of the plot is
"subplot xy"
and 400 is the width of your plot (specified in the HTML definition of your div).If you want to rotate the whole graph use:
Probably the legend needs to be adjusted a bit afterwards:
I'd recommend
disabling
the hoverinfo or modify it as well.