Name: vega-tooltip
Owner: Vega
Description: Tooltip Plugin for Vega-Lite
Created: 2016-02-20 00:33:03.0
Updated: 2018-01-13 13:59:51.0
Pushed: 2018-01-18 09:07:51.0
Homepage: http://vega.github.io/vega-tooltip/
Size: 4530
Language: TypeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A tooltip plugin for Vega and Vega-Lite visualizations.
The current version works with Vega 3 and Vega-Lite 2. For Vega 2 and Vega-Lite 1, use the old version of Vega-Tooltip.
Vega Tooltip was built by Zening Qu and Sira Horradarn, with significant help from Dominik Moritz and Kanit “Ham” Wongsuphasawat.
http://vega.github.io/vega-tooltip/
If you use NPM, run command npm install vega-tooltip
.
You can import vega-tooltip
directly from jsDelivr
. Replace [VERSION]
with the version that you want to use.
Import Vega 3 & Vega-Lite 2 (does not have to be from CDN) -->
ipt src="https://cdn.jsdelivr.net/npm/vega@3"></script>
ipt src="https://cdn.jsdelivr.net/npm/vega-lite@2"></script>
ipt src="https://cdn.jsdelivr.net/npm/vega-tooltip@[VERSION]"></script>
k rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/vega-tooltip@[VERSION]/build/vega-tooltip.min.css">
For Vega-Lite: vegaTooltip.vegaLite(vgView, vlSpec[, options])
For Vega: vegaTooltip.vega(vgView[, options])
vega-tooltip
, type command npm install
to install dependencies.npm start
. This will build the library and start a web server.http://localhost:8000/
, where you can see various Vega-Lite and Vega visualizations with tooltip interaction.