get picked datapoint

Hi, I’m trying to build a simple ‘peak selector’ bokeh-application. Basically I have a figures with multiple lines, each of them having multiple peaks. When clicked on the peak, i want to get back the data of the point clicked.

So far I only found ways to handle the picking/hover result clientside, but I need it serverside.

Best,

Alex

Hi Alex,

Whenever a selection tool (lasso, box, tap, etc) makes a selection, that is recorded on the associated data source, so that is what you what to put a change handler on. You can see an example of doing this on the server (along with a link to the source code) in the "selection_histogram" demo at:

  http://demo.bokehplots.com

Thanks,

Bryan

···

On Mar 10, 2016, at 4:22 AM, [email protected] wrote:

Hi, I'm trying to build a simple 'peak selector' bokeh-application. Basically I have a figures with multiple lines, each of them having multiple peaks. When clicked on the peak, i want to get back the data of the point clicked.

So far I only found ways to handle the picking/hover result clientside, but I need it serverside.

Best,
Alex

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c26d9015-7a8c-4b00-b299-9056a7835c5c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.