@Cashew
This is the notebook b'Customdata for a few Plotly chart types | empet | Plotly' that explains how to define customdata for different cases…
customdata[0], and customdata[1] must be columns in an array, and np.stack with axis=-1, inserts data of the corresponding data frame columns in column 0, resoectively column 1 of an array. It’s a bit confusing, because in python customdata[i] suggests a row, not a column. I suspect that plotly.js interprets it as column.
3 Likes