{"_id":"d3-tip","_rev":"30-f10ce59dd9119c56dfc4dfe06b1d048b","name":"d3-tip","time":{"modified":"2024-05-06T13:40:19.430Z","created":"2014-12-04T04:19:51.922Z","0.6.6":"2014-12-04T04:19:51.922Z","0.6.7":"2014-12-04T05:06:38.839Z","0.7.0":"2016-08-23T20:41:36.602Z","0.7.1":"2016-08-23T23:44:48.489Z","0.6.8":"2016-08-24T23:45:24.504Z","0.8.0-alpha.1":"2016-09-22T05:41:14.740Z","0.9.0":"2018-05-01T16:40:14.628Z","0.9.1":"2018-05-10T18:50:42.869Z"},"maintainers":[{"name":"caged","email":"encytemedia@gmail.com"},{"name":"vdh","email":"timgvdh@gmail.com"}],"dist-tags":{"latest":"0.9.1","d3v3":"0.6.8","next":"0.8.0-alpha.1"},"description":"Tooltips for d3 svg visualizations","readme":"# d3.tip: Tooltips for d3.js visualizations\n\n[![](https://github-images.s3.amazonaws.com/skitch/Screen_Shot_2013-04-08_at_11.40.10_AM-20130408-114054.png)](http://bl.ocks.org/Caged/6476579)\n\n* [See a live demo](http://bl.ocks.org/Caged/6476579)\n* [Example code](/examples)\n\n### API Docs\nSee the [API Documentation](docs/index.md)\n\n### Download Latest Version\n* [Development Version](https://raw.github.com/Caged/d3-tip/master/index.js) : **6kb** / **~2kb gzipped**\n\n### Install with NPM\n```\nnpm install d3-tip\n```\n\n### Quick Usage\n```javascript\n/* Initialize tooltip */\ntip = d3.tip().attr('class', 'd3-tip').html(function(d) { return d; });\n\n/* Invoke the tip in the context of your visualization */\nvis.call(tip)\n\nvis.selectAll('rect')\n  .data(data)\n  .enter()\n  .append('rect')\n  .attr('width', function() { return x.rangeBand() })\n  .attr('height', function(d) { return h - y(d) })\n  .attr('y', function(d) { return y(d) })\n  .attr('x', function(d, i) { return x(i) })\n  .on('mouseover', tip.show)\n  .on('mouseout', tip.hide)\n```\n\nIf you want basic styling, you can include `example-styles.css` using a service like\nrawgithub.com.\n\n```html\n<link rel=\"stylesheet\" href=\"//rawgithub.com/Caged/d3-tip/master/examples/example-styles.css\">\n```\n","versions":{"0.6.7":{"name":"d3-tip","version":"0.6.7","description":"Tooltips for d3 svg visualizations","author":{"name":"Justin Palmer"},"main":"index.js","directories":{"doc":"docs","example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/Caged/d3-tip"},"keywords":["d3","tooltip"],"license":"MIT","bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"homepage":"https://github.com/Caged/d3-tip","gitHead":"4f6b0f4818e1ea88d47ab10cadd99675f2a76343","_id":"d3-tip@0.6.7","_shasum":"12c0fb045aaa33cb4c9920daf3aa96b08d4caa87","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"jkschneider","email":"jkschneider@gmail.com"},"maintainers":[{"name":"jkschneider","email":"jkschneider@gmail.com"}],"dist":{"shasum":"12c0fb045aaa33cb4c9920daf3aa96b08d4caa87","tarball":"https://registry.npmjs.org/d3-tip/-/d3-tip-0.6.7.tgz","integrity":"sha512-3Xj0tuMrT+JJFaGgxPQspx4dYhklIGk44ff7oS1QdRRFau3zGg3OJ4JJ+FeG20ozM3k8uxxEev0xeLbyWLIT2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaZp+NHgP+G2nnu1XP/OzzrDTwn1j9U1Z3nkTrO83x1AIgL9htRqtmUb5+CmA8XjO76KdmbgpT1vX7LH8TB4Orh4s="}]}},"0.7.1":{"name":"d3-tip","version":"0.7.1","description":"Tooltips for d3 svg visualizations","author":{"name":"Justin Palmer","email":"justin@labratrevenge.com","url":"http://labratrevenge.com/d3-tip"},"main":"index.js","directories":{"doc":"docs","example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Caged/d3-tip.git"},"keywords":["d3","tooltip"],"license":"MIT","bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"homepage":"https://github.com/Caged/d3-tip","dependencies":{"d3":"^4.2"},"gitHead":"b264d9ba9e7d5839eb44a0e8e0b9958e5c9ab49a","_id":"d3-tip@0.7.1","_shasum":"78cbf554f67b720a70e3b0f191e14cffe68cdd79","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"vdh","email":"timgvdh@gmail.com"},"dist":{"shasum":"78cbf554f67b720a70e3b0f191e14cffe68cdd79","tarball":"https://registry.npmjs.org/d3-tip/-/d3-tip-0.7.1.tgz","integrity":"sha512-jtVR86jEfpVhfMtJaJBzT3GYYfulID106s9gqiX8o8es2tRcsCeJhoWWZG3sfepP97j1CTxfxPoky014nfJ9Zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE/3fbGl/U04Tt2tizX51C0q6WwuWl+IyeggQfJQdKRgIgQmyO9NNjiqEq65k5lo/mdvNE6d/eKgNN6rvEJsZGUdU="}]},"maintainers":[{"name":"caged","email":"encytemedia@gmail.com"},{"name":"vdh","email":"timgvdh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/d3-tip-0.7.1.tgz_1471995884791_0.6497152026277035"}},"0.6.8":{"name":"d3-tip","version":"0.6.8","description":"Tooltips for d3 svg visualizations","author":{"name":"Justin Palmer","email":"justin@labratrevenge.com","url":"http://labratrevenge.com/d3-tip"},"main":"index.js","directories":{"doc":"docs","example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Caged/d3-tip.git"},"keywords":["d3","tooltip"],"license":"MIT","bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"homepage":"https://github.com/Caged/d3-tip","dependencies":{"d3":"^3.5.5"},"gitHead":"92bd167db0c3c24e895e7405376630be79b53a0b","_id":"d3-tip@0.6.8","_shasum":"e5b4491ae8983fde646ea49008ff542a033c0a2c","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"vdh","email":"timgvdh@gmail.com"},"dist":{"shasum":"e5b4491ae8983fde646ea49008ff542a033c0a2c","tarball":"https://registry.npmjs.org/d3-tip/-/d3-tip-0.6.8.tgz","integrity":"sha512-uvikpFTvYHaQ9m+uLxVUwgUS0iHYoWenGy/n60c7IJC97SvC6LWX+iWvYedZ0Ak0e4+bjyuReX5yfqnN1uVb5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHl9HDDqTKBhYPtiovH5Lj0yOaORJDFGGzkpokg5aLZuAiBXfMEmVmn9eswJIx+rGHJxU/j9nXDxd1+0PU+EFzjvbw=="}]},"maintainers":[{"name":"caged","email":"encytemedia@gmail.com"},{"name":"vdh","email":"timgvdh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/d3-tip-0.6.8.tgz_1472082312401_0.23234649444930255"}},"0.8.0-alpha.1":{"name":"d3-tip","version":"0.8.0-alpha.1","description":"Tooltips for d3 svg visualizations","keywords":["d3","tooltip"],"homepage":"https://github.com/Caged/d3-tip","bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"license":"MIT","author":{"name":"Justin Palmer","email":"justin@labratrevenge.com","url":"http://labratrevenge.com/d3-tip"},"main":"index.js","directories":{"doc":"docs","example":"examples"},"repository":{"type":"git","url":"git+https://github.com/Caged/d3-tip.git"},"scripts":{"circle:lint":"npm run -s lint -- --max-warnings 0 -f junit -o $CIRCLE_TEST_REPORTS/eslint/junit.xml","lint":"eslint .","test":"echo \"Error: no test specified\" && exit 1"},"dependencies":{"d3-collection":"^1.0.1","d3-selection":"^1.0.2"},"devDependencies":{"eslint":"^3.3.1","eslint-config-airbnb-base":"^5.0.3","eslint-plugin-import":"^1.14.0"},"engines":{"node":">=4.2.6"},"greenkeeper":{"branchPrefix":"greenkeeper/"},"gitHead":"1af8659680019ede4d822629148065e429d1fb2a","_id":"d3-tip@0.8.0-alpha.1","_shasum":"ee71962609bce00161dcd575407694362e926c29","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"vdh","email":"timgvdh@gmail.com"},"dist":{"shasum":"ee71962609bce00161dcd575407694362e926c29","tarball":"https://registry.npmjs.org/d3-tip/-/d3-tip-0.8.0-alpha.1.tgz","integrity":"sha512-U0pLhNO1ycVrV+VNyNXbapDwffAa5g+unUNwb5WpWsivYMrocA0yZcH1iiUFJ0MrSnD5SOZaIGw8/8q89J/g/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyNBnUpIjPtt8c1hszBT4EnDdYw7xf/7PPKA+pls/h+AiEAvqQ9gO1aqK9Mx81WDTq42VggDQOlas6iduBdQX59Ujs="}]},"maintainers":[{"name":"caged","email":"encytemedia@gmail.com"},{"name":"vdh","email":"timgvdh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/d3-tip-0.8.0-alpha.1.tgz_1474522874508_0.5347701199352741"}},"0.9.0":{"name":"d3-tip","version":"0.9.0","description":"Tooltips for d3 svg visualizations","keywords":["d3","tooltip"],"homepage":"https://github.com/Caged/d3-tip","bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"files":["dist/","index.js"],"license":"MIT","author":{"name":"Justin Palmer","email":"justin@labratrevenge.com","url":"http://labratrevenge.com/d3-tip"},"main":"dist/index.js","module":"index.js","jsnext:main":"index.js","directories":{"doc":"docs","example":"examples"},"repository":{"type":"git","url":"git+https://github.com/Caged/d3-tip.git"},"scripts":{"circle:lint":"npm run -s lint --ignore-path .gitignore -- --max-warnings 0 -f junit -o $CIRCLE_TEST_REPORTS/eslint/junit.xml","lint":"eslint . --ignore-path .gitignore","test":"echo \"Error: no test specified\" && exit 1","server":"python3 -m http.server","prepare":"rollup -c rollup.conf.js"},"dependencies":{"d3-collection":"^1.0.4","d3-selection":"^1.3.0"},"devDependencies":{"eslint":"^3.3.1","eslint-config-airbnb-base":"^5.0.3","eslint-plugin-import":"^1.14.0","rollup":"^0.58.2"},"engines":{"node":">=4.2.6"},"greenkeeper":{"branchPrefix":"greenkeeper/"},"gitHead":"cacd9e0bed2d54916fa38dda66cbfdc148ea9724","_id":"d3-tip@0.9.0","_npmVersion":"6.0.0","_nodeVersion":"9.5.0","_npmUser":{"name":"caged","email":"encytemedia@gmail.com"},"dist":{"integrity":"sha512-l/2EDPob8lbaM1MC/ySQohb9nj6F5GEojAjhvI0VPOeSvUEZvZdkn+UAp5BAX4Q38arBmQ8BMfRyIDh1kc9mkg==","shasum":"7bd4ee1149ee345b970fc3d5a3cc5b0d592ef4f5","tarball":"https://registry.npmjs.org/d3-tip/-/d3-tip-0.9.0.tgz","fileCount":5,"unpackedSize":21073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6JhvCRA9TVsSAnZWagAA6VIP/3a1vGpyMirS82jMdZ3P\ni7naKpdwv7Oh/Cl0efq0LG6ClwY9M9X6oG0KmlPfxDsHviPUplcxKUFiX03l\n24JdcTXaOGfJ4RuWFfv3N+4eSglfronztDQ9MjKi/ciXFY65ISBeTQFjFcUk\nVZ4/elfto1P/wSbuCIRlo1a39DU3y8nvkK50+D2THsOSBayltp5hpjF0WMH0\ncMIYwEl3uw+3V53TX9AZ566x8MXM1uK9kWrd0vG0QUoXTysg2+R/pInLn9v8\nBGk/u/n8jeuhvCrmQbRafxMbjMtz8QCfBMT27G8w6hbxuVUUCOfaWBR82G4n\nEJaIbbUQdRumMseO27/7kh0fO6UtcdioJNrqVaFcuoLWem5UJJWB/L+sTx4R\nayv3/J46nzcZNQni7xNYLcRctks/Bhlz6zkCWPPN6gChntJMEdxmklHVwswC\neRzwCleD+qW40uA2H7nieODjKQ1f5w1lLwHrX+iFv/6jKrE3S0ulxrboLGCL\n4RU8BticCFU16Cthbn82MBHp5FXzXFxUUSgrGYKkfvI4vbirgSQX4vfPmcYW\n3Gj9zaMcrQeW4NyIbWilzmflsEkm1D/84g2Usj5hWDjsOHDXBa116V6gPbmr\nAuC1LuPRO6oNLDx9plRhQI6FosqpfjU/TQfsxgxoa5G+XM4Eal1mfzdT+ViO\nt7Jp\r\n=zU/K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8G3erlFOllszgnKzXqT5PkZU2fK7XlphhS5l80ssc3AIgB0Og6xkMsdlQXC7KI5M7hN4L3DEcXvU4RlnKgT1tgiw="}]},"maintainers":[{"name":"caged","email":"encytemedia@gmail.com"},{"name":"vdh","email":"timgvdh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-tip_0.9.0_1525192814549_0.741759068174761"},"_hasShrinkwrap":false},"0.9.1":{"name":"d3-tip","version":"0.9.1","description":"Tooltips for d3 svg visualizations","keywords":["d3","tooltip"],"homepage":"https://github.com/Caged/d3-tip","bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"files":["dist/","index.js"],"license":"MIT","author":{"name":"Justin Palmer","email":"justin@labratrevenge.com","url":"http://labratrevenge.com/d3-tip"},"main":"dist/index.js","module":"index.js","jsnext:main":"index.js","directories":{"doc":"docs","example":"examples"},"repository":{"type":"git","url":"git+https://github.com/Caged/d3-tip.git"},"scripts":{"circle:lint":"npm run -s lint -- --max-warnings 0 -f junit -o $CIRCLE_TEST_REPORTS/eslint/junit.xml","lint":"eslint . --ignore-path .gitignore","test":"echo \"Error: no test specified\" && exit 1","server":"python3 -m http.server","prepare":"rollup -c rollup.conf.js"},"dependencies":{"d3-collection":"^1.0.4","d3-selection":"^1.3.0"},"devDependencies":{"eslint":"^3.3.1","eslint-config-airbnb-base":"^5.0.3","eslint-plugin-import":"^1.14.0","rollup":"^0.58.2"},"engines":{"node":">=4.2.6"},"greenkeeper":{"branchPrefix":"greenkeeper/"},"gitHead":"517b14761d5a7a2d4b188941e26bb6a8f76d7c43","_id":"d3-tip@0.9.1","_npmVersion":"6.0.0","_nodeVersion":"9.5.0","_npmUser":{"name":"caged","email":"encytemedia@gmail.com"},"dist":{"integrity":"sha512-EVBfG9d+HnjIoyVXfhpytWxlF59JaobwizqMX9EBXtsFmJytjwHeYiUs74ldHQjE7S9vzfKTx2LCtvUrIbuFYg==","shasum":"84e6d331c4e6650d80c5228a07e41820609ab64b","tarball":"https://registry.npmjs.org/d3-tip/-/d3-tip-0.9.1.tgz","fileCount":5,"unpackedSize":21034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9JSDCRA9TVsSAnZWagAA8DwQAJF62SzYVA9YoxmiyecE\nAWc/1HMNxVvT994KnNjcQyMUH/DIk722BTnm1g75KFL8kYPeoGRA1OE3iM8v\nplB20ExNjN7F9Cz9LRICyx/2lF7xklD43gRT34cdOK3/hPFe53YC8OXEJ33u\nD9g1iFHXQBLPzhRKjVN2E6qgWAEICzv49l6DXz6Ebujb4aMoWUhBtm39S0Md\nRgAegyv7ZZrO+kUEnkp49P+XvzQwRc9Wj+ENU0Ep96IVpf+9wmeShhLHb1++\nN32QfJ53cH6SBv5gNncbV26emO+zqeim6DfAayXNZwb86vvaNT6wFA+cNnM1\nxDPdig1hwDfElYGYr3mR+BzL0yDBUvgCiIL2GbowMTVGT6SAyayySHxwHSjR\nmcU7SMBgQl/FTI7K7djTD83JSUsieK6vekzYT9Fsr3iw/LlqcrC0r1yMzrA4\nN35xE1j04UAwZnpI2mGK2gz5CZi7Qhhv/khe6OGz+LA6cdosLkf00DnxIdvn\n7/uzGHugS9bTOaike345y4Ld0IIMh4SDJ+nakOKv7q7PPkMDxLP3ebvA6YB+\n5BaWgglKA+57Hw2Ta2oDrxIcVApRn61oLuaAXX09bERUuesHgjLx+Y4nnEJT\nLGsXYRX0SjDgIRGhGj/6XVaT3BKicng2vajSZz4wD/BXcBcCf2nyHyzK9cyN\ncJok\r\n=agyI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAy4+n5AwDofJCY+W+KRe8EyuxXv/p1hfQXURm8vnE0VAiEAyyFKHRm4Vp0OJ8Fpge0YzvMu4UcYi2Eh8kWvwhDSZBU="}]},"maintainers":[{"name":"caged","email":"encytemedia@gmail.com"},{"name":"vdh","email":"timgvdh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-tip_0.9.1_1525978242767_0.9807423978391347"},"_hasShrinkwrap":false}},"homepage":"https://github.com/Caged/d3-tip","keywords":["d3","tooltip"],"repository":{"type":"git","url":"git+https://github.com/Caged/d3-tip.git"},"author":{"name":"Justin Palmer","email":"justin@labratrevenge.com","url":"http://labratrevenge.com/d3-tip"},"bugs":{"url":"https://github.com/Caged/d3-tip/issues"},"license":"MIT","readmeFilename":"README.md","users":{"jgreeley":true,"bapinney":true,"antixrist":true,"bankszorsqt":true}}