{"id":32483649,"url":"https://github.com/zmaril/d3-bootstrap-plugins","last_synced_at":"2025-10-27T03:36:32.182Z","repository":{"id":3698612,"uuid":"4769525","full_name":"zmaril/d3-bootstrap-plugins","owner":"zmaril","description":"Porting some of bootstrap's plugins over to d3","archived":false,"fork":false,"pushed_at":"2016-04-24T06:20:23.000Z","size":328,"stargazers_count":104,"open_issues_count":8,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-13T16:04:55.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmaril.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-24T03:11:34.000Z","updated_at":"2021-12-24T19:11:20.000Z","dependencies_parsed_at":"2022-08-29T06:50:30.919Z","dependency_job_id":null,"html_url":"https://github.com/zmaril/d3-bootstrap-plugins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zmaril/d3-bootstrap-plugins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmaril%2Fd3-bootstrap-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmaril%2Fd3-bootstrap-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmaril%2Fd3-bootstrap-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmaril%2Fd3-bootstrap-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmaril","download_url":"https://codeload.github.com/zmaril/d3-bootstrap-plugins/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmaril%2Fd3-bootstrap-plugins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281211350,"owners_count":26462074,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-27T03:36:23.077Z","updated_at":"2025-10-27T03:36:32.177Z","avatar_url":"https://github.com/zmaril.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3.js meets bootstrap\njs/css duo for bootstrap style [tooltips](http://bl.ocks.org/2981335) and [popovers](http://bl.ocks.org/3012212).\n\n## How does it work?  \nThe tooltip function attaches event listeners to\nselections that go and display bootstrap tooltips or popovers when\nthe specified events are detected.\n\nAn example of how to use it:\n```javascript\nselection.tooltip(function(d,i){\n    return {        \n      //The text within the tooltip\n      text: d.title \n      //Where \n      placement: \"fixed\" \n      // Base positioning. Not used when placement is \"mouse\"\n      position: [d.x,d.y]\n      //How far the tooltip is shifted from the base\n      displacement: [0,20] //Shifting parts of the graph over.           \n      //If \"mouse\"\" is the base poistion, then mousemove true allows\n      //the tooltip to move with the mouse\n      mousemove: false\n    };\n});\n\nselection.popover(function(d,i){\n    //TODO: add in a svg element here based on data\n    return {        \n      // The title that will be displayed on the popover\n      title: \"A title\" \n      //A d3 svg element\n      content: svg \n      placement: \"fixed\"\n      gravity: \"right\" \n      position: [d.x,d.y]\n      displacement: [0,20]            \n      mousemove: false\n      };\n});\n\n```\n    \nViola! Tooltips! Popovers!\n\n## Current TODOS\n* Get easy voronoi detection working without breaking\n  everything. Checkout the\n  [voronoi](https://github.com/zmaril/d3-bootstrap-plugins/tree/voronoi)\n  branch for current work on this. \n* Bring over the less files from bootstrap directly instead of\n  replying on their css. \n* Write some tests. \n* Use it in production. \n\n## Contributing\n\nLocal development uses grunt (`npm install grunt`)\n\n`grunt watch`- automatically compile the files as you change the src directory\n\n`grunt build`- goes through concatenation and minification of js and\ncss. \n\nIf you are adding new features, please create an example that\ndemonstrates that feature specifically.\n\n## License\n\n### Major components:\n* d3.js: [License](https://github.com/mbostock/d3/blob/master/LICENSE)\n* Bootstrap: [License](https://github.com/twitter/bootstrap/blob/master/LICENSE)\n\n### Everything else:\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmaril%2Fd3-bootstrap-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmaril%2Fd3-bootstrap-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmaril%2Fd3-bootstrap-plugins/lists"}