{"id":18369110,"url":"https://github.com/bitfancy/react-d3-tree","last_synced_at":"2026-01-21T18:36:54.871Z","repository":{"id":188018479,"uuid":"677962383","full_name":"BitFancy/react-d3-tree","owner":"BitFancy","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-13T08:34:33.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T21:16:51.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/BitFancy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-13T08:18:45.000Z","updated_at":"2024-04-03T19:17:21.000Z","dependencies_parsed_at":"2023-09-06T07:01:08.403Z","dependency_job_id":null,"html_url":"https://github.com/BitFancy/react-d3-tree","commit_stats":null,"previous_names":["fancydeveloper/react-d3-tree","bitfancy/react-d3-tree"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BitFancy/react-d3-tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Freact-d3-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Freact-d3-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Freact-d3-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Freact-d3-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BitFancy","download_url":"https://codeload.github.com/BitFancy/react-d3-tree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitFancy%2Freact-d3-tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28639399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-05T23:28:29.347Z","updated_at":"2026-01-21T18:36:54.855Z","avatar_url":"https://github.com/BitFancy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eReact D3 Tree\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#buildstatus\"\u003e\n    \u003cimg alt=\"build status\" src=\"https://github.com/bkrem/react-d3-tree/workflows/Build/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/bkrem/react-d3-tree?branch=master\"\u003e\n    \u003cimg alt=\"coverage status\" src=\"https://coveralls.io/repos/github/bkrem/react-d3-tree/badge.svg?branch=master\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-d3-tree\"\u003e\n    \u003cimg alt=\"npm package\" src=\"https://img.shields.io/npm/v/react-d3-tree?style=flat\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-d3-tree\"\u003e\n    \u003cimg alt=\"npm package: downloads monthly\" src=\"https://img.shields.io/npm/dm/react-d3-tree.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=react-d3-tree\"\u003e\n    \u003cimg alt=\"npm package: minzipped size\" src=\"https://img.shields.io/bundlephobia/minzip/react-d3-tree\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-d3-tree\"\u003e\n    \u003cimg alt=\"npm package: types\" src=\"https://img.shields.io/npm/types/react-d3-tree\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\"\u003e\n    \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003e\u003ca href=\"https://bkrem.github.io/react-d3-tree\"\u003e👾 Playground\u003c/a\u003e\u003c/h3\u003e\n  \u003ch3 align=\"center\"\u003e\u003ca href=\"https://bkrem.github.io/react-d3-tree/docs\"\u003e📖 API Documentation (v3)\u003c/a\u003e\u003c/h3\u003e\n\u003c/p\u003e\n\n\n## Contents \u003c!-- omit in toc --\u003e\n- [Installation](#installation)\n- [Usage](#usage)\n- [Props](#props)\n- [Working with the default Tree](#working-with-the-default-tree)\n  - [Providing `data`](#providing-data)\n  - [Styling Nodes](#styling-nodes)\n  - [Styling Links](#styling-links)\n  - [Event Handlers](#event-handlers)\n- [Customizing the Tree](#customizing-the-tree)\n  - [`renderCustomNodeElement`](#rendercustomnodeelement)\n  - [`pathFunc`](#pathfunc)\n    - [Providing your own `pathFunc`](#providing-your-own-pathfunc)\n- [Development](#development)\n  - [Setup](#setup)\n  - [Hot reloading](#hot-reloading)\n- [Contributors](#contributors)\n\n## Installation\n```bash\nnpm i --save react-d3-tree\n```\n\n## Usage\n```jsx\nimport React from 'react';\nimport Tree from 'react-d3-tree';\n\n// This is a simplified example of an org chart with a depth of 2.\n// Note how deeper levels are defined recursively via the `children` property.\nconst orgChart = {\n  name: 'CEO',\n  children: [\n    {\n      name: 'Manager',\n      attributes: {\n        department: 'Production',\n      },\n      children: [\n        {\n          name: 'Foreman',\n          attributes: {\n            department: 'Fabrication',\n          },\n          children: [\n            {\n              name: 'Worker',\n            },\n          ],\n        },\n        {\n          name: 'Foreman',\n          attributes: {\n            department: 'Assembly',\n          },\n          children: [\n            {\n              name: 'Worker',\n            },\n          ],\n        },\n      ],\n    },\n  ],\n};\n\nexport default function OrgChartTree() {\n  return (\n    // `\u003cTree /\u003e` will fill width/height of its container; in this case `#treeWrapper`.\n    \u003cdiv id=\"treeWrapper\" style={{ width: '50em', height: '20em' }}\u003e\n      \u003cTree data={orgChart} /\u003e\n    \u003c/div\u003e\n  );\n}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfancy%2Freact-d3-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitfancy%2Freact-d3-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitfancy%2Freact-d3-tree/lists"}