plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
17.02k stars 1.86k forks source link

missing data should be skipped in parcoords #4341

Open archmoj opened 4 years ago

archmoj commented 4 years ago

Reported in https://community.plot.ly/t/plotly-graph-objects-parcoords-nan-replaced-by-0/29725 If some of the columns contain nan during the display of plotly.graph_objects.Parcoords the data are displayed as 0, it will be nice to don’t to treat the value as a nan and not as 0.

demo

etpinard commented 4 years ago

I'm not sure about this. I think we should still draw the dimension axis and simply not draw the line.

alexcjohnson commented 4 years ago

Agreed - the ideal behavior would be to just remove the line segments to and from the nan value, but continue to show other segments of the same object.

archmoj commented 4 years ago

What would happen with selection then?

alexcjohnson commented 4 years ago

I'd say if the dimension with nan has any constraint on it at all, this object should be filtered out, but if it's unconstrained then this object should remain selected.