{"id":19084229,"url":"https://github.com/d3-node/d3node-piechart","last_synced_at":"2025-09-07T21:31:18.692Z","repository":{"id":18604152,"uuid":"84738021","full_name":"d3-node/d3node-piechart","owner":"d3-node","description":"PieChart using D3-Node","archived":false,"fork":false,"pushed_at":"2021-11-07T23:18:54.000Z","size":122,"stargazers_count":7,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-09T04:58:23.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/d3-node.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":"2017-03-12T15:55:49.000Z","updated_at":"2022-03-16T21:55:32.000Z","dependencies_parsed_at":"2022-07-26T23:17:01.733Z","dependency_job_id":null,"html_url":"https://github.com/d3-node/d3node-piechart","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-piechart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-piechart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-piechart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-piechart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3-node","download_url":"https://codeload.github.com/d3-node/d3node-piechart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232257008,"owners_count":18495656,"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-11-09T02:50:31.197Z","updated_at":"2025-01-02T21:17:48.898Z","avatar_url":"https://github.com/d3-node.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PieChart\n\nPieChart generator in node.js.\n\n\n## Install\n\n```bash\nnpm install d3node-piechart\n```\n\n## Usage\n\n```js\nconst d3n = require('d3node-piechart');\nconst pieChart = d3n({ data, selector, container, style })\n```\n\nCheck out the [example](./example) for usage.\n\n### Output the visualization result to a image\n\n```\nnpm run build\n```\n\n## Output Preview (png):\n\n![chart](./example/output.png)\n\n## API\n\n### pieChart({ data[, selector, container, style] })\n\n#### data (required)\n\n- Type: `Array`\n\nData from file or web processed by d3 library.\n\n##### selector\n\n- Type: `String`\n- Default: `'#chart'`\n\nDOM selector in container.\n\n##### container\n\n- Type: `String`\n- Default: `\u003cdiv id=\"container\"\u003e\u003ch2\u003ePie Chart\u003c/h2\u003e\u003cdiv id=\"chart\"\u003e\u003c/div\u003e\u003c/div\u003e`\n\nDOM contain the visualization result.\n\n##### style\n\n- Type: `String`\u003cbr\u003e\n- Default:\n```html\n.arc text {\n   font: 10px sans-serif;\n   text-anchor: middle;\n}\n.arc path {\n   stroke: #fff;\n }\n```\nPieChart style.\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n\n### LICENSE\n\n[MIT](LICENSE) \u0026copy; [d3-node](https://github.com/d3-node)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-piechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3-node%2Fd3node-piechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-piechart/lists"}