None values appearing in Plotly Dumbbell Plot


I am trying to plot a dumbbell plot on streamlit using Plotly Dumbbell Plot. The graph shows up fine but there are random Nones showing at the top of the graph that looks like this.

This was sample made using the code found on Plotly’s website.
Dumbbell plots in Python (

Does anyone know how to remove them?

Streamlit and Python versions are 1.30 and 3.12.

There is a line,

data["line_y"].extend([country, country, None]),

Just remove the comma at the end.

Thank you so much!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.