Black Lives Matter. Please consider donating to Campaign Zero's mission of ending police violence in America.
https://www.joincampaignzero.org

Tick angles with barpolar

Hi all-

With bar polar charts, it is possible to use custom tick labels, but if these are on the longer (and plentiful) side, it would be nice to have the angle be custom to each ticklable. So far, I can only seem to change them all to one angle (i.e. all at tickangle=90, etc.). Is there a way to have each ticklabel have a unique angle?

This is my code:

data = [go.Barpolar(
    r=sub2['combo_score'],
    theta=list(sub2.index * 2.6),
    width= [1.9]* sub2.shape[0],
    marker_color=sub2['color'],
    marker_line_color="black",
    marker_line_width=0.2,
    hoverinfo='text+r',
    text=sub2['companyName'],
    opacity=0.8
)]

layout = go.Layout(polar = dict(
        radialaxis = dict(range=[6, 10], showticklabels=True),
        angularaxis = dict(showticklabels=True, tickmode='array',
                                    tickvals= list(sub2.index * 2.6),
                             ticks='outside', tickangle=45 #DOESN'T ACCEPT ARRAYS,
                            ticktext=sub2['companyName'] # THESE ARE LONG AND OVERLAP)
    ))

Hi, did you find a solution for this?

@slevin88, @mikesmith1611

Unfortunately at the moment there is no way to associate simply radial labels to Barpolar plots. Here https://plot.ly/~empet/15246
is a workaround that depends on the max r value, max text length and even on the layout.width and height.