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

Vega lite tooltip no longer working? #196

Closed
kmcmorrow1 opened this issue Apr 25, 2018 · 7 comments
Closed

Vega lite tooltip no longer working? #196

kmcmorrow1 opened this issue Apr 25, 2018 · 7 comments
Labels

Comments

@kmcmorrow1
Copy link

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.

@kanitw
Copy link
Member

kanitw commented Apr 25, 2018

@domoritz rewrote a better version of tooltip, with new APIs, but this include breaking changes.

@domoritz -- could you please add a note to the release page about the new API?

@kanitw
Copy link
Member

kanitw commented Apr 25, 2018

For now, you can look at README to see how to use the API.

@domoritz
Copy link
Member

Thanks for reporting the issue @kmcmorrow1! I fixed the example page and removed examples that don't yet have tooltips.

@kmcmorrow1
Copy link
Author

kmcmorrow1 commented Apr 27, 2018

@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.

@domoritz
Copy link
Member

@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.

@kmcmorrow1
Copy link
Author

@domoritz Amazing! That worked perfectly. Thank you so much.

domoritz added a commit that referenced this issue Jul 4, 2019
@github-actions
Copy link

🚀 Issue was released in v0.27.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants