{"id":13495130,"url":"https://github.com/caged/d3-tip","last_synced_at":"2025-03-28T16:31:25.142Z","repository":{"id":48152731,"uuid":"3127051","full_name":"caged/d3-tip","owner":"caged","description":"d3 tooltips","archived":true,"fork":false,"pushed_at":"2020-02-16T23:36:24.000Z","size":487,"stargazers_count":1222,"open_issues_count":8,"forks_count":349,"subscribers_count":43,"default_branch":"master","last_synced_at":"2024-11-27T09:14:46.876Z","etag":null,"topics":["d3","datavis","tooltips"],"latest_commit_sha":null,"homepage":"http://labratrevenge.com/d3-tip","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caged.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-01-07T22:22:34.000Z","updated_at":"2024-10-24T22:41:46.000Z","dependencies_parsed_at":"2022-08-19T19:00:40.928Z","dependency_job_id":null,"html_url":"https://github.com/caged/d3-tip","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caged%2Fd3-tip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caged%2Fd3-tip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caged%2Fd3-tip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caged%2Fd3-tip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caged","download_url":"https://codeload.github.com/caged/d3-tip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246059336,"owners_count":20717085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d3","datavis","tooltips"],"created_at":"2024-07-31T19:01:31.410Z","updated_at":"2025-03-28T16:31:24.728Z","avatar_url":"https://github.com/caged.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"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\u003clink rel=\"stylesheet\" href=\"//rawgithub.com/Caged/d3-tip/master/examples/example-styles.css\"\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaged%2Fd3-tip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaged%2Fd3-tip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaged%2Fd3-tip/lists"}