{"id":23666572,"url":"https://github.com/redsift/d3-rs-tip","last_synced_at":"2025-07-27T20:35:39.270Z","repository":{"id":65599430,"uuid":"61054639","full_name":"redsift/d3-rs-tip","owner":"redsift","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T14:57:13.000Z","size":1351,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-02-15T14:34:46.706Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/redsift.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-13T17:04:55.000Z","updated_at":"2023-08-15T07:23:20.000Z","dependencies_parsed_at":"2024-06-21T14:14:41.142Z","dependency_job_id":"3b973f22-7ba2-4501-ae9f-56bdd3bf8566","html_url":"https://github.com/redsift/d3-rs-tip","commit_stats":{"total_commits":62,"total_committers":6,"mean_commits":"10.333333333333334","dds":0.3709677419354839,"last_synced_commit":"3fba290d940103750db4504ca47c9956a893679a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-tip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-tip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-tip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-tip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsift","download_url":"https://codeload.github.com/redsift/d3-rs-tip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239674855,"owners_count":19678484,"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":[],"created_at":"2024-12-29T07:33:09.541Z","updated_at":"2025-02-19T14:27:42.934Z","avatar_url":"https://github.com/redsift.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3-rs-tip\n\n`d3-rs-tip` is a component for adding tooltips in charts made with D3, an extension of Justin Palmer's [d3-tip](https://github.com/Caged/d3-tip). This component is dependent on D3 v4 (Alpha).\n\n## Builds\n\n[![Circle CI](https://circleci.com/gh/Redsift/d3-rs-tip.svg?style=svg)](https://circleci.com/gh/Redsift/d3-rs-tip)\n\nUMD from //static.redsift.io/reusable/d3-rs-tip/latest/d3-rs-tip.umd-es2015.min.js\n\n## Usage\n\n### ES6\n```\n  import { body as tip } from \"@redsift/d3-rs-tip\";\n  \n  var rtip = tip()\n      .html(d =\u003e d.text)\n  elmS.call(rtip);\n\n  node.on('mouseover', rtip.show)\n    .on('mouseout', rtip.hide)\n  ...\n```\nIf using rollup.js for a browser target, ensure `d3-rs-tip` is part of the global map.\n  \n### Require\n```\n  var d3Tip = require(\"@redsift/d3-rs-tip\");\n  var eml = d3Tip.body();\n  ...\n  \n```\n### Parameters\n\n|Name|Description| Expected Value|\n|----|-----------| --------------|\n|attr|Sets or gets attribute value| same as d3 e.g. attr('key',`value|function`)\n|style| Sets or gets a style value| same as d3 e.g. style('key',`value|function`)\n|direction| Sets or gets direction of the tooltip| one of `n`,`s`,`e`,`w`,`nw`,`sw`,`ne`,`se`\n|style| Sets or gets the CSS wrapped with the component| string of CSS properties\n|parent| Sets or gets the parent element the tip will be appended to| DOM Node (default: `body`)\ntransition| Causes the tip to fade in `boolean|number`. If a number, the value is set at the time for the fade","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Fd3-rs-tip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsift%2Fd3-rs-tip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Fd3-rs-tip/lists"}