Graph Legends covered with gray box in Chrome. Python/django

When plotting a graph using Python/django/plotly v4.1.0 the trace legends is covered by a gray box when using Chrome Or Firefox. Work ok in IE/Edge. Also works ok when saving a snapshot. Any suggestions?

Viewed in Chrome

Viewed in IE