Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document bokeh interactive legends #1265

Closed
thoth291 opened this issue Apr 10, 2017 · 7 comments
Closed

Document bokeh interactive legends #1265

thoth291 opened this issue Apr 10, 2017 · 7 comments
Labels
tag: backend: bokeh type: docs Related to the documentation and examples type: feature A major new feature

Comments

@thoth291
Copy link
Contributor

In my issue #1261 you can see multiple curves on one plot.
Is it possible to adopt recently pushed Interactive Legends in bokeh (bokeh/bokeh#5349) so that the "cases" would be clickable and I could switch one "on" and "off"?
image

Or may be there is a better way of doing it using holoviews?

Thanks!

@philippjfr
Copy link
Member

philippjfr commented Apr 10, 2017

Is it possible to adopt recently pushed Interactive Legends in bokeh (bokeh/bokeh#5349) so that the "cases" would be clickable and I could switch one "on" and "off"?

This is already implemented and enabled by default, e.g.:

interactive_legend

You can control the alpha of the disabled Curve with the muted_alpha style option. There appears to be an issue with legend positioning in 0.12.5 that I will look at now though.

@philippjfr philippjfr added the type: docs Related to the documentation and examples label Apr 10, 2017
@philippjfr
Copy link
Member

Reopening to document this behavior in the Bokeh_Backend tutorial.

@philippjfr philippjfr reopened this Apr 10, 2017
@philippjfr philippjfr changed the title Interactive legends Document bokeh interactive legends Apr 10, 2017
@thoth291
Copy link
Contributor Author

Thank you, @philippjfr !
BTW, I'm having some issues with hover not appearing in my example... It seems to be a browser issue - but I'm not positive...

@thoth291
Copy link
Contributor Author

Hi, I noticed that Datetime axes example is broken on the website: http://holoviews.org/Tutorials/Bokeh_Backend.html
screen shot 2017-06-22 at 9 26 20 pm

%%opts Overlay [width=600 legend_position='top_left'] Curve (muted_alpha=0.5 muted_color='black')
try:
    import bokeh.sampledata.stocks
except:
    import bokeh.sampledata
    bokeh.sampledata.download()

from bokeh.sampledata.stocks import GOOG, AAPL
goog_dates = np.array(GOOG['date'], dtype=np.datetime64)
aapl_dates = np.array(AAPL['date'], dtype=np.datetime64)
hv.Curve((goog_dates, GOOG['adj_close']), kdims=['Date'], vdims=['Stock Index'], label='Google') *\
hv.Curve((aapl_dates, AAPL['adj_close']), kdims=['Date'], vdims=['Stock Index'], label='Apple')
AttributeError [Call holoviews.ipython.show_traceback() for details] 
unexpected attribute 'muted_color' to Line, similar attributes are line_color

Thanks in Advance.

@philippjfr
Copy link
Member

Thanks @thoth291 we'll be bringing our new website up soon and this should be fixed then. It's simply because the old website appears to have been built with an old version of bokeh.

@philippjfr philippjfr mentioned this issue Dec 20, 2017
3 tasks
@philippjfr
Copy link
Member

Documented in the PR referenced above.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tag: backend: bokeh type: docs Related to the documentation and examples type: feature A major new feature
Projects
None yet
Development

No branches or pull requests

2 participants