-
Notifications
You must be signed in to change notification settings - Fork 767
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
href opening new browser window/tab #1661
Comments
No, there's no way to do this, unfortumately. See vega/vega-lite#3795 |
Hi there was mention in the comments of vega/vega-lite#3795 3 days ago about being able to override the loader with the following issue: How can we get support for this? |
The only way to do that with Altair would be to define your own renderer with javascript that calls the appropriate vega view method. I'm not aware of any example, and I don't personally know how to do it. Let us know if you figure it out. |
some reference links:
I noticed enabling dark theme and rendering the html produces: I created custom theme like this:
the theme was dark, but href still did not open new tab. I've added comments to vega/vega-lite#3795 already. My use case is actually to render chart into a custom html page, and I've used #1422 as a reference. For this to work somewhere else other than html, like a jupyter notebook, the |
PR vega/vega-embed#626 has resolved the issue. vega-embed v6.15.1 has the fix for works as expected when rendering the chart in html page. had to hard code the script version to: I think |
Can you provide a working example of chart with href and url opening in new tab, please? |
Answered on SO: https://stackoverflow.com/questions/72238350/how-to-open-url-from-altair-chart-in-a-new-tab-href/, you can set the chart['usermeta'] = {
"embedOptions": {
'loader': {'target': '_blank'}
}
} |
This doesn't work for me. |
Hello,
In the code below, is it possible to change the href behaviour to opening the URL in a new browser window/tab?
The text was updated successfully, but these errors were encountered: