{"id":16096176,"url":"https://github.com/gordonsmith/d3-bullet","last_synced_at":"2025-03-18T07:30:28.413Z","repository":{"id":21767818,"uuid":"92812351","full_name":"GordonSmith/d3-bullet","owner":"GordonSmith","description":"V4 Version of d3-bullet plugin","archived":false,"fork":false,"pushed_at":"2023-07-18T20:34:56.000Z","size":246,"stargazers_count":4,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T02:22:10.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GordonSmith.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":"2017-05-30T08:24:36.000Z","updated_at":"2024-06-19T11:15:19.734Z","dependencies_parsed_at":"2024-06-19T11:15:13.613Z","dependency_job_id":"1c99a475-7640-4ca0-ab46-8249af25fa52","html_url":"https://github.com/GordonSmith/d3-bullet","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.4285714285714286,"last_synced_commit":"2d03de59785ee9dfa69bc1a4b1482147a7bebe4b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonSmith%2Fd3-bullet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonSmith%2Fd3-bullet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonSmith%2Fd3-bullet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonSmith%2Fd3-bullet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GordonSmith","download_url":"https://codeload.github.com/GordonSmith/d3-bullet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910715,"owners_count":20367538,"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-10-09T17:11:31.716Z","updated_at":"2025-03-18T07:30:27.985Z","avatar_url":"https://github.com/GordonSmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3-bullet v4\n\nd3 v4 port of https://github.com/d3/d3-plugins/tree/master/bullet\n\n## Installing\n\n`npm install d3v4-bullet`.\n\n## API Reference\n\n\u003ca name=\"bullet\" href=\"#bullet\"\u003e#\u003c/a\u003e d3.\u003cb\u003ebullet\u003c/b\u003e()\n\nConstructs a new default [bullet generator](#_bullet).\n\n\u003ca name=\"_bullet\" href=\"#_bullet\"\u003e#\u003c/a\u003e \u003ci\u003ebullet\u003c/i\u003e(\u003ci\u003edata\u003c/i\u003e)\n\nFor example:\n\n```js\nvar chart = d3.bullet()\n    .width(width)\n    .height(height);\n\nvar svg = d3.select(\"body\").selectAll(\"svg\")\n    .data(data)\n  .enter().append(\"svg\")\n    .attr(\"class\", \"bullet\")\n    .attr(\"width\", width + margin.left + margin.right)\n    .attr(\"height\", height + margin.top + margin.bottom)\n  .append(\"g\")\n    .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\")\n    .call(chart);\n\nvar data = [\n  {\"title\":\"Revenue\",\"subtitle\":\"US$, in thousands\",\"ranges\":[150,225,300],\"measures\":[220,270],\"markers\":[250]},\n  {\"title\":\"Profit\",\"subtitle\":\"%\",\"ranges\":[20,25,30],\"measures\":[21,23],\"markers\":[26]},\n  {\"title\":\"Order Size\",\"subtitle\":\"US$, average\",\"ranges\":[350,500,600],\"measures\":[100,320],\"markers\":[550]},\n  {\"title\":\"New Customers\",\"subtitle\":\"count\",\"ranges\":[1400,2000,2500],\"measures\":[1000,1650],\"markers\":[2100]},\n  {\"title\":\"Satisfaction\",\"subtitle\":\"out of 5\",\"ranges\":[3.5,4.25,5],\"measures\":[3.2,4.7],\"markers\":[4.4]}\n]    \n```\n\n\u003ca name=\"bullet_width\" href=\"#bullet_width\"\u003e#\u003c/a\u003e \u003ci\u003ebullet\u003c/i\u003e.\u003cb\u003ewidth\u003c/b\u003e([\u003ci\u003ewidth\u003c/i\u003e])\n\nIf *width* is specified, sets the *width* and returns this bullet generator. If *width* is not specified, returns the current *width*, which defaults to:  ```300```\n\n\u003ca name=\"bullet_width\" href=\"#bullet_width\"\u003e#\u003c/a\u003e \u003ci\u003ebullet\u003c/i\u003e.\u003cb\u003eheight\u003c/b\u003e([\u003ci\u003eheight\u003c/i\u003e])\n\nIf *width* is specified, sets the *width* and returns this bullet generator. If *width* is not specified, returns the current *width*, which defaults to:  ```30```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonsmith%2Fd3-bullet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgordonsmith%2Fd3-bullet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonsmith%2Fd3-bullet/lists"}