plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Plotly express: Histogram without data throws error since v5.9.0

Open geofranzi opened this issue 3 years ago • 0 comments

Until v5.8.2 it worked well, but since 5.9.0 it does not anymore.

px.histogram().add_annotation(.....

Error message:

.... \plotly\express\_core.py", line 520, in <listcomp>
    hover_lines = [k + "=" + v for k, v in mapping_labels_copy.items()]
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

geofranzi avatar Jul 18 '22 17:07 geofranzi