{"id":15307992,"url":"https://github.com/n1crack/vue3-org-chart","last_synced_at":"2025-04-15T00:55:13.399Z","repository":{"id":247418495,"uuid":"824739713","full_name":"n1crack/vue3-org-chart","owner":"n1crack","description":"Vue3 Org Chart is a simple and lightweight organization chart component for Vue3. It is highly customizable.","archived":false,"fork":false,"pushed_at":"2025-03-18T08:33:32.000Z","size":254,"stargazers_count":20,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T00:54:56.559Z","etag":null,"topics":["binary-tree","mlm","network","org-chart","tree","tree-structure","unilevel-tree","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/n1crack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"n1crack","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-07-05T20:32:41.000Z","updated_at":"2025-04-03T12:11:01.000Z","dependencies_parsed_at":"2025-03-19T00:30:35.291Z","dependency_job_id":null,"html_url":"https://github.com/n1crack/vue3-org-chart","commit_stats":null,"previous_names":["n1crack/vue3-org-chart"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fvue3-org-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fvue3-org-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fvue3-org-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n1crack%2Fvue3-org-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n1crack","download_url":"https://codeload.github.com/n1crack/vue3-org-chart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986280,"owners_count":21194025,"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":["binary-tree","mlm","network","org-chart","tree","tree-structure","unilevel-tree","vue"],"created_at":"2024-10-01T08:13:15.237Z","updated_at":"2025-04-15T00:55:13.380Z","avatar_url":"https://github.com/n1crack.png","language":"Vue","funding_links":["https://github.com/sponsors/n1crack"],"categories":["Vue"],"sub_categories":[],"readme":"## Vue3 Org Chart\n\n[![GitHub](https://img.shields.io/github/license/n1crack/vue3-org-chart)](https://github.com/n1crack/vue3-org-chart/blob/master/LICENSE) \n[![npm](https://img.shields.io/npm/v/vue3-org-chart)](https://www.npmjs.com/package/vue3-org-chart)\n\n### About\nVue3 Org Chart is a simple and lightweight organization chart component for Vue3. It is highly customizable.\n\n\u003cimg width=\"500\" alt=\"image\" src=\"https://github.com/n1crack/vue3-org-chart/assets/712404/b168b58c-dc63-4968-93f8-f3e76cc5ccae\"\u003e\n\n### Demo\nPlayground : [https://playcode.io/vue3orgchart](https://playcode.io/vue3orgchart)\n\nDemo : [https://vue3orgchart.playcode.io](https://vue3orgchart.playcode.io)\n\n### Installation\n\n```bash\nnpm i vue3-org-chart\n```\n\n### Usage\nJS entry point\n```js\nimport { createApp } from 'vue'\nimport App from './App.vue'\n\nimport { Vue3OrgChartPlugin } from 'vue3-org-chart'\nimport 'vue3-org-chart/dist/style.css'\n\nconst app = createApp(App)\n\napp.use(Vue3OrgChartPlugin)\n\napp.mount('#app') \n```\n\n```javascript\n// alternatively, you can import the component directly\n// to use component, Vue3OrgChart instead of Vue3OrgChartPlugin\n\u003cscript setup\u003e\n   import { Vue3OrgChart } from 'vue3-org-chart' \n   import 'vue3-org-chart/dist/style.css' \n   // ...\n\u003c/script\u003e\n```\n\n\n#### Vue Template\nfor more detailed example, please check the [examples](examples) folder\n```vue \n\u003cdiv\u003e\n    \u003cvue3-org-chart json=\"YOUR_DATA_JSON_URL\"\u003e\n        \u003ctemplate #node=\"{item, children, open, toggleChildren}\"\u003e\n            \u003c!-- Node Element / TEMPLATE START --\u003e\n            \u003cdiv\u003e{{item.name}}\u003c/div\u003e\n            \u003cbutton v-if=\"children.length\" @click=\"toggleChildren\"\u003e {{ open ? '-' : '+' }}\u003c/button\u003e\n            \u003c!-- Node Element / TEMPLATE END --\u003e\n        \u003c/template\u003e\n    \u003c/vue3-org-chart\u003e\n\u003c/div\u003e\n```\n\n#### Styling\n\nYou have full control over node elements, In addition to that there are some css variables for lines and container height or node spacing..\n\n```css \n:root {\n    --vue3-org-chart-container-height: 70vh;\n    --vue3-org-chart-line-top: .5rem;\n    --vue3-org-chart-line-bottom: .5rem;\n    --vue3-org-chart-node-space-x:  .5rem;\n    --vue3-org-chart-line-color: blue;\n}\n```\n\n![image](https://github.com/n1crack/vue3-org-chart/assets/712404/9eb4df4b-2156-4797-be2f-c5074ff8c91b)\n\n### Collaboration\nIf you want to contribute to the project, please feel free to fork the repository and submit your changes as a pull request. Ensure that the changes you submit are applicable for general use rather than specific to your project.\n\n### Dependencies\n - [Vue3](https://vuejs.org/)\n - [panzoom](https://github.com/anvaka/panzoom)  : Zoom/Pan Utility\n\n\n### License\nCopyright (c) 2024 Yusuf ÖZDEMİR, released under [the MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn1crack%2Fvue3-org-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn1crack%2Fvue3-org-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn1crack%2Fvue3-org-chart/lists"}