I want to the diagram like this, where the direction of text is changable by it position, but the parameters of Scatter is not include this kind(please tell if U know),how can i draw this kind of diagram
@zhangbinjie please include at least a screenshot and code sample to get help.
the pic i want is this.
but by Running the code
), text= keywords_all, hoverinfo='text', )
but the result like this , how to changge some parameter?
This is not possible at this time, please follow https://github.com/plotly/plotly.js/issues/1210 for updates.
@zhangbinje You cannot set the position and direction of a text through a trace definition, but as an annotation text inserted in
The direction is defined by the angle formed with the horizontal line through the text position, of coordinate (x,y).
The Plotly angle measurement rule is a bit cumbersome for those accustomed to seeing angles as in trigonometry, where they are measured counterclockwise.
Here https://plot.ly/~empet/14803 is a Jupyter Notebook that explains and illustrates how the Plotly angles are defined, and how to convert the trigonometric angles into Plotly ones.