{"id":16276555,"url":"https://github.com/mdequeljoe/d3-chord2","last_synced_at":"2026-05-02T04:33:49.708Z","repository":{"id":52140606,"uuid":"123714612","full_name":"mdequeljoe/d3-chord2","owner":"mdequeljoe","description":"extensions to d3-chord","archived":false,"fork":false,"pushed_at":"2021-05-06T22:21:27.000Z","size":158,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T13:28:26.160Z","etag":null,"topics":["d3","d3-module","d3-plugin"],"latest_commit_sha":null,"homepage":"","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/mdequeljoe.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":"2018-03-03T17:23:09.000Z","updated_at":"2019-11-22T09:16:43.000Z","dependencies_parsed_at":"2022-08-24T02:11:28.384Z","dependency_job_id":null,"html_url":"https://github.com/mdequeljoe/d3-chord2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdequeljoe%2Fd3-chord2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdequeljoe%2Fd3-chord2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdequeljoe%2Fd3-chord2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdequeljoe%2Fd3-chord2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdequeljoe","download_url":"https://codeload.github.com/mdequeljoe/d3-chord2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247888243,"owners_count":21012996,"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","d3-module","d3-plugin"],"created_at":"2024-10-10T18:48:53.745Z","updated_at":"2026-05-02T04:33:49.658Z","avatar_url":"https://github.com/mdequeljoe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3-chord2\n\nd3-chord2 forks [d3-chord](https://github.com/d3/d3-chord) in a plug-in format in order to provide minor extensions such as grouped arcs and target or source arrows for directionality. Also envisioned to add 'flattened' arcs.\n\n## Installing\n...\n```html\n\u003cscript src=\"https://d3js.org/d3.v4.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"d3-chord2.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\nvar chord = d3.chord2();\n\n\u003c/script\u003e\n```\n## Note\n\nWork in progress and not on npm - and still needs proper testing. Feedback welcome.\n\n\n## API Reference\n\nd3-chord2 builds on the API of [d3-chord](https://github.com/d3/d3-chord)\n\n\u003ca href=\"#chord2\" name=\"chord2\"\u003e#\u003c/a\u003e d3.\u003cb\u003echord2\u003c/b\u003e() [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js \"Source\")\n\nConstructs a new chord layout with the default settings. \n\n\u003ca href=\"#chord_arcGroups\" name=\"#chord_arcGroups\"\u003e#\u003c/a\u003e \u003ci\u003echord2\u003c/i\u003e.\u003cb\u003earcGroups\u003c/b\u003e([\u003ci\u003ematrix\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L168 \"Source\")\n\nif \u003ci\u003earcGroups\u003c/i\u003e is specified, the chord groups indices specified in the subarrays will be connected (i.e. 0 padAngle between these groupings). Any group indices left unspecified will be laid out according to \u003ci\u003epadAngle\u003c/i\u003e. Of course, if \u003ci\u003epadAngle\u003c/i\u003e is set to zero then the arc groupings will not be seen. Note that by default, the arc groups will be ordered according to the order of arrays specified in group \u003ci\u003ematrix\u003c/i\u003e.\n\n\u003ca href=\"#chord_sortArcGroups\" name=\"#chord_sortArcGroups\"\u003e#\u003c/a\u003e \u003ci\u003echord2\u003c/i\u003e.\u003cb\u003esortArcGroups\u003c/b\u003e([\u003ci\u003ecompare\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L176 \"Source\")\n\nIf \u003ci\u003ecompare\u003c/i\u003e is specified, sets the arc group comparator to the specified function or null and returns this chord layout. If compare is not specified, returns the current arc group comparator, which defaults to null. If the group comparator is non-null, it is used to sort the arc groups by the sum of the included groups. Note that groups not included in the group matrix will not be sorted.\n\n\u003ca href=\"#chord_chordSum\" name=\"#chord_chordSum\"\u003e#\u003c/a\u003e \u003ci\u003echord2\u003c/i\u003e.\u003cb\u003echordSum\u003c/b\u003e([\u003ci\u003esum\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L172 \"Source\")\n\nIf \u003ci\u003echordSum\u003c/i\u003e is specified, scales chord groups according to this sum, rather than the sum of the groups specified in the data \u003ci\u003ematrix\u003c/i\u003e. Note that \u003ci\u003echordSum\u003c/i\u003e must be greater than this input matrix sum. \n\n\u003ca href=\"#chordArrow\" name=\"chordArrow\"\u003e#\u003c/a\u003e d3.\u003cb\u003echordArrow\u003c/b\u003e() [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chordArrow.js \"Source\")\n\nConstructs a new chord layout with the default settings. \n\n\u003ca href=\"#chordArrow_radius\" name=\"#chordArrow_radius\"\u003e#\u003c/a\u003e \u003ci\u003echordArrow\u003c/i\u003e.\u003cb\u003eradius\u003c/b\u003e([\u003ci\u003eradius\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L168 \"Source\")\n\nSee [ribbon.radius](https://github.com/d3/d3-chord#ribbon_radius)\n\n\u003ca href=\"#chordArrow_target\" name=\"#chordArrow_target\"\u003e#\u003c/a\u003e \u003ci\u003echordArrow\u003c/i\u003e.\u003cb\u003etarget\u003c/b\u003e([\u003ci\u003ecompare\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L176 \"Source\")\n\nSee [ribbon.target](https://github.com/d3/d3-chord#ribbon_target)\n\n\u003ca href=\"#chordArrow_targetRadius\" name=\"#chordArrow_targetRadius\"\u003e#\u003c/a\u003e \u003ci\u003echordArrow\u003c/i\u003e.\u003cb\u003etargetRadius\u003c/b\u003e([\u003ci\u003etargetRadius\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L176 \"Source\")\n\nto do\n\n\u003ca href=\"#chordArrow_source\" name=\"#chordArrow_source\"\u003e#\u003c/a\u003e \u003ci\u003echordArrow\u003c/i\u003e.\u003cb\u003esource\u003c/b\u003e([\u003ci\u003esource\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L172 \"Source\")\n\nSee [ribbon.source](https://github.com/d3/d3-chord#ribbon_source)\n\n\u003ca href=\"#chordArrow_sourceRadius\" name=\"#chordArrow_sourceRadius\"\u003e#\u003c/a\u003e \u003ci\u003echordArrow\u003c/i\u003e.\u003cb\u003esourceRadius\u003c/b\u003e([\u003ci\u003esourceRadius\u003c/i\u003e]) [\u003c\u003e](https://github.com/mdequeljoe/d3-chord2/blob/master/src/chord2.js#L172 \"Source\")\n\nto do\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdequeljoe%2Fd3-chord2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdequeljoe%2Fd3-chord2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdequeljoe%2Fd3-chord2/lists"}