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

How to change the text derection in chord diagram?

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.

DVHOG(3O%60(%24JF~%5D%5D96%25YU21 the pic i want is this.
but by Running the code
trace2=Scatter(x=Xn,
y=Yn,
mode=‘markers+text’,
name=’’,
textposition=“top center”,

textpositions=[‘dasd’,1],

           marker=Marker(symbol='dot',
                         size=15 

color=node_color,

line=Line(color=line_color, width=0.5)

                         ),
           text= keywords_all,
           hoverinfo='text',
           )

but the result like this , how to changge some parameter?
image

trace2=Scatter(x=Xn,
y=Yn,
mode=‘markers+text’,
textposition=“top center”,
name=’’,
marker=Marker(symbol=‘dot’,
size=15),
text=keywords_all,
hoverinfo=‘text’,
)

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 layout['annotations'].
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.