bokeh 0.12.5 Interactive Legends Note

The note below on the bokeh website details a caveat to the legend implementation:

"Note:

Interactive legend features currently work on “per-glyph” legends. Legends that are created by specifying a column to automatically group do no yet work with the features described below."

Can anyone explain exactly what is meant by per-glyph" legends and specifying a column to automatically group?

So far I have tried to used the interactive legends while specifying a ColumnarDataSource to each line and the legend.click_policy = ‘hide’ and this seems to work, so I am trying to understand what it will not work on exactly.

Hi,

Per-glyph means like this *first* example here:

  http://bokeh.pydata.org/en/latest/docs/user_guide/annotations.html#legends

Where the glyph method is called with a label as the legend parameter. In this case the user (you) is explicitly specifying every row in the legend.

It's also possible for Bokeh to synthesize a legend by "grouping" a the values in a column data source. You can see that in the *second* example in that link above, where the "label" column is split into "hi" and "lo" rows, automatically, based on the contents of the column. In this case, you don't specify every row explicitly.

This latter form of creating a legend is much newer, and it does not yet work out of the box with the "interactive legend" capability. That will take a good deal more work to support that combination.

Thanks,

Bryan

···

On Apr 19, 2017, at 13:19, RiskiBizniz <[email protected]> wrote:

The note below on the bokeh website details a caveat to the legend implementation:

"Note:

Interactive legend features currently work on “per-glyph” legends. Legends that are created by specifying a column to automatically group do no yet work with the features described below."

Can anyone explain exactly what is meant by per-glyph" legends and specifying a column to automatically group?

So far I have tried to used the interactive legends while specifying a ColumnarDataSource to each line and the legend.click_policy = 'hide' and this seems to work, so I am trying to understand what it will not work on exactly.

--
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/8db6e806-bafd-472f-9fe7-20b15673973c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks alot Bryan!

Also , are there any plans for grouping the hovertools of multiple glyphs into one Hovertool to fix issues of overlapping, having a better visualization, while also having the arrows connected to each glyph? This is very useful for the ‘vline’ or ‘hline’ modes of timeseries plots. I’ve seen some discussion on Hovertools on bokeh’s github, but I am not sure if this is something being pursued.

Thanks,

Javier

···

On Wednesday, April 19, 2017 at 3:45:44 PM UTC-4, Bryan Van de ven wrote:

Hi,

Per-glyph means like this first example here:

    [http://bokeh.pydata.org/en/latest/docs/user_guide/annotations.html#legends](http://bokeh.pydata.org/en/latest/docs/user_guide/annotations.html#legends)

Where the glyph method is called with a label as the legend parameter. In this case the user (you) is explicitly specifying every row in the legend.

It’s also possible for Bokeh to synthesize a legend by “grouping” a the values in a column data source. You can see that in the second example in that link above, where the “label” column is split into “hi” and “lo” rows, automatically, based on the contents of the column. In this case, you don’t specify every row explicitly.

This latter form of creating a legend is much newer, and it does not yet work out of the box with the “interactive legend” capability. That will take a good deal more work to support that combination.

Thanks,

Bryan

On Apr 19, 2017, at 13:19, RiskiBizniz [email protected] wrote:

The note below on the bokeh website details a caveat to the legend implementation:

"Note:

Interactive legend features currently work on “per-glyph” legends. Legends that are created by specifying a column to automatically group do no yet work with the features described below."

Can anyone explain exactly what is meant by per-glyph" legends and specifying a column to automatically group?

So far I have tried to used the interactive legends while specifying a ColumnarDataSource to each line and the legend.click_policy = ‘hide’ and this seems to work, so I am trying to understand what it will not work on exactly.


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/8db6e806-bafd-472f-9fe7-20b15673973c%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

Yes that is an open (and fairly high priority) issue. I can't promise it will be in the next release but it if not then should be the one after that.

Bryan

···

On Apr 19, 2017, at 15:11, RiskiBizniz <[email protected]> wrote:

Thanks alot Bryan!

Also , are there any plans for grouping the hovertools of multiple glyphs into one Hovertool to fix issues of overlapping, having a better visualization, while also having the arrows connected to each glyph? This is very useful for the 'vline' or 'hline' modes of timeseries plots. I've seen some discussion on Hovertools on bokeh's github, but I am not sure if this is something being pursued.

Thanks,
Javier

On Wednesday, April 19, 2017 at 3:45:44 PM UTC-4, Bryan Van de ven wrote:
Hi,

Per-glyph means like this *first* example here:

        http://bokeh.pydata.org/en/latest/docs/user_guide/annotations.html#legends

Where the glyph method is called with a label as the legend parameter. In this case the user (you) is explicitly specifying every row in the legend.

It's also possible for Bokeh to synthesize a legend by "grouping" a the values in a column data source. You can see that in the *second* example in that link above, where the "label" column is split into "hi" and "lo" rows, automatically, based on the contents of the column. In this case, you don't specify every row explicitly.

This latter form of creating a legend is much newer, and it does not yet work out of the box with the "interactive legend" capability. That will take a good deal more work to support that combination.

Thanks,

Bryan

> On Apr 19, 2017, at 13:19, RiskiBizniz <[email protected]> wrote:
>
>
>
> The note below on the bokeh website details a caveat to the legend implementation:
>
>
>
> "Note:
>
> Interactive legend features currently work on “per-glyph” legends. Legends that are created by specifying a column to automatically group do no yet work with the features described below."
>
>
>
> Can anyone explain exactly what is meant by per-glyph" legends and specifying a column to automatically group?
>
>
>
> So far I have tried to used the interactive legends while specifying a ColumnarDataSource to each line and the legend.click_policy = 'hide' and this seems to work, so I am trying to understand what it will not work on exactly.
>
>
> --
> 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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/8db6e806-bafd-472f-9fe7-20b15673973c%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
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/adc11827-020c-4835-b8ed-9eb9591c7462%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.