react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

"Selected data" with Parallel Coordinates Chart

Open EllisShen opened this issue 7 years ago • 9 comments

Hi,

I found in another thread, there's an example of using "onRestyle" event to get "constraintrange" data. However, this is not the data of highlighted lines of parcoords chart. is there a simpler way to find "highlighted" line data from the event handler?

Thank you!

EllisShen avatar Mar 19 '18 19:03 EllisShen

Can you provide a bit more info about the context of your question? Which event handler are you referring to and which example are you referring to? :)

nicolaskruchten avatar Mar 19 '18 19:03 nicolaskruchten

@nicolaskruchten my bad, this is the thread that I referred: https://community.plot.ly/t/displey-selected-data-in-parcoords/4055

I want to know what data that user selected with Parallel Coordinates's constraint, or so-called brush feature. Usually, the selection activity should trigger the associated events, such as onSelecting, onSelected...etc, however, the only workable example I can find now is using restyle event callback to catch the constraint range of the data.

Do you know if there's a way to read all selected line (data) back from one of the event callback?

EllisShen avatar Mar 19 '18 21:03 EllisShen

You should be able to read the same values out of the data object that gets passed into the onUpdate callback. Does this not work?

nicolaskruchten avatar Mar 27 '18 18:03 nicolaskruchten

@nicolaskruchten Can you elaborate on your onUpdate comment? How does the data object provide the filtered lines? In other words, the rows which meet all the criteria.

lakshaykc avatar Sep 13 '18 14:09 lakshaykc

I have the same problem and can not solve it. Any ideas?

pytyq avatar Nov 29 '18 04:11 pytyq

I would also really appreciate a solution. From a previous post https://github.com/plotly/plotly.js/issues/170 , I see that an elegant solution may be a longer term project. However, adding some clarity around how a python developer could use javascript as a workaround would be extremely helpful!

inlytica avatar Jan 02 '19 20:01 inlytica

+1 to this thread - the ability to add constraints to each axis and highlight individual data points satisfying those constraints is a lot more useful if those data points are returned

Imperssonator avatar May 15 '20 00:05 Imperssonator

+1 to this as well. Is there a clear example how to get the selected values?

phylroy avatar Nov 26 '20 21:11 phylroy