plotly / plotly.js

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

Enhancement of Plotly Parallel Coordinates Plot with Hover Data Functionality #7016

Open madrpernat opened 1 month ago

madrpernat commented 1 month ago

I have implemented a Plotly parallel coordinates plot in a Dash app. The implementation process was straightforward which I appreciated. However, it appears that this type of plot currently does not support hover data functionality.

In applications where each observation (i.e., line) possesses a unique string identifier or label, which would not have its own separate axis, the absence of hover data becomes a significant limitation. Hover data can be used to quickly identify and distinguish between different observations.

For example, the Bureau of Reclamation's public web tool employs parallel coordinates plots to compare the multiobjective performance of various policies. As the user mouses over each line, the tool displays the policy's ID along with its corresponding values for the different axes.

I have attached a screen recording from the Bureau of Reclamation's web tool to illustrate this feature, which I think would be a great addition to Plotly's parallel coordiantes plots.

https://github.com/plotly/plotly.js/assets/127535108/f4ee26ab-8626-4558-ab66-45b3d72e411a

siakouchine commented 1 month ago

This would be a nice feature! I have been asking for this feature to be implemented for a long time but unfortunately nothing happened :( It looks like parcoords plots are not a priority for Plotly... see: https://github.com/plotly/plotly.js/issues/6188 see: https://community.plotly.com/t/how-to-change-line-width-of-parallel-coordinates-parcoords/9758 see: https://github.com/plotly/plotly.js/issues/4504 see: https://github.com/plotly/plotly.js/issues/3939#issuecomment-1788202236