Skip to content

Barchart string labels not displayed after 1001th #450

Closed
@silicium14

Description

@silicium14
  • Plotly python version : 1.9.5

When a barchart has 1001+ string labels, the labels after the 1001th are not displayed on the axis.
Here is a capture of the top of the graph generated by the python script below.

graph top missing labels

import plotly.offline
import plotly.graph_objs as go

n = 1005
trace = go.Bar(
    y=["Label {}".format(i+1) for i in range(n)],
    x=[1.0]*n,
    orientation="h",
)
layout = go.Layout(
    height=30*n,
    width=600
)

plotly.offline.plot(
    go.Figure(data=[trace], layout=layout),
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions