Open
Description
Code to reproduce the issue:
import pandas as pd
import numpy as np
import plotly.express as px
df = pd.DataFrame({"x": [0, 1], "y": [0, 1], "c": [np.nan, np.nan]})
px.scatter(df, x="x", y="y", color="c", render_mode="webgl")
There will be no issue for all the cases below:
remder_mode="svg"
"c": [None, None]
"c": [np.nan, 1] # i.e., not all NaN