Skip to content

Can't find a way to disable hovertext automatic rotation #2170

@desertdev

Description

@desertdev

I have a horizontal bar chart using hover text that is automatically being rotated about 45 degrees, which I don't want. I've been combing through the API full reference and existing issues (open and closed), but have not found any way to change this:

image

One detail in the data: there are 2 traces being charted, one in blue and one in grey. Initially all the data was in a single trace and I didn't have this problem. But both traces have identical options set for the hovertext:

            hoverinfo: 'y+text',
            hovertext: [],
            hoverlabel: {
                bordercolor: 'rgb(100, 100, 100)',
                bgcolor: 'rgb(240, 240, 240)',
                namelength: 0
            }

Am I just missing something or is it not possible to avoid this rotation? There seems to be plenty of room for the hovertext, and even if I reduce the text content to a very short string on a single line it still wants to do the rotation now that I split it into 2 traces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions