documentation icon indicating copy to clipboard operation
documentation copied to clipboard

remove categorical options from python parcoords->dimensions->values on ref page

Open cldougl opened this issue 6 years ago • 3 comments

https://plot.ly/python/reference/#parcoords-dimensions-values

The auto-generated type options mention a list of strings or datetimes is acceptable for parcoords -> dimensions -> values, however, as noted in the description the values must be a list of finite numbers (i.e. categorical options [strings / dates] are not possible).

screen shot 2018-03-09 at 5 01 40 pm

cldougl avatar Mar 09 '18 22:03 cldougl

Wouldn't it be better to just implement support for strings and datetimes? I don't see a good reason to not support these data types in a parcoords plot.

harahu avatar May 06 '21 11:05 harahu

It would be great to implement support for these yes! We'd love a pull request into the relevant parts of Plotly.js :)

nicolaskruchten avatar May 06 '21 12:05 nicolaskruchten

I don't know much javascript, but I did play around with adapting plotly.express (the python API) to deal with these data types. That wasn't too hard, but involved the not-so-graceful approach of translating values to the supported datatypes and then manipulating the ticktext to emulate what real support would look like.

I could contribute this solution, but it feels like treating symptoms.

harahu avatar May 06 '21 19:05 harahu