-
Notifications
You must be signed in to change notification settings - Fork 44
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
Vega lite tooltip no longer working? #196
Comments
For now, you can look at README to see how to use the API. |
Thanks for reporting the issue @kmcmorrow1! I fixed the example page and removed examples that don't yet have tooltips. |
@domoritz I'm very new to working with Vega Lite--and I can't seem to figure out the new tooltip call. Is there any chance you can help me figure out how to incorporate the new version of the tooltip into my current plot? It is a choropleth map, and the original call (which was working before) looked like this: vegaEmbed("#vis", vlSpec, opt).then(function (result) {
var tooltipOption = {
showAllFields: false,
fields: [
{field: "state", title: "State"},
{field: "market", title: "Market"}
]
};
vegaTooltip.vegaLite(result.view, vlSpec, tooltipOption);
}).catch(console.error); Thank you so much. |
@kmcmorrow1 Welcome to Vega-Lite! If you use the latest version of Vega-Embed, you don't need to install anything -- you already have vega tooltip. Check out https://vega.github.io/vega-lite/docs/tooltip.html for details about how to add tooltips to Vega-Lite charts. You can read more about the changes at https://github.com/vega/vega-tooltip/wiki/Changes-in-Vega-Tooltip-0.9. |
@domoritz Amazing! That worked perfectly. Thank you so much. |
🚀 Issue was released in |
Was there an update today? Seems that the Vega Lite tooltip is no longer working. I am receiving the error: "TypeError: vegaTooltip.vegaLite is not a function", when the same code worked two days ago.
The text was updated successfully, but these errors were encountered: