Issue
I created this piechart with plotly:
Anyone knows a smart command that all the shares are horizontal?
i.e. set the percentage values of Planing/scheduling and Robotics horizontal.
Or if the above is not possible, format the two categories the same way as the smallest catgories (Biometrics, Char Recognition,...)?
I tried it with decreasing fontsize, but there must be a smarter method.
Thanks in advance!
Solution
As gflavia suggested, the insidetextorientation helps with the problem .
Setting
fig.update_traces(insidetextorientation='horizontal')
formats the piechart as intended:
Answered By - Epimetheus Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.