{"id":19772194,"url":"https://github.com/recordevolution/widget-doughnut","last_synced_at":"2026-01-27T05:09:44.143Z","repository":{"id":207346074,"uuid":"718607127","full_name":"RecordEvolution/widget-doughnut","owner":"RecordEvolution","description":"Show pies and doughnut Charts","archived":false,"fork":false,"pushed_at":"2025-12-30T16:26:57.000Z","size":704,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-03T11:26:02.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/RecordEvolution.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-14T12:44:03.000Z","updated_at":"2025-12-30T16:27:00.000Z","dependencies_parsed_at":"2023-11-16T13:27:07.390Z","dependency_job_id":"80180fbc-d6c8-4a00-951b-546388c46127","html_url":"https://github.com/RecordEvolution/widget-doughnut","commit_stats":null,"previous_names":["recordevolution/widget-doughnut"],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/RecordEvolution/widget-doughnut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-doughnut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-doughnut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-doughnut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-doughnut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecordEvolution","download_url":"https://codeload.github.com/RecordEvolution/widget-doughnut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-doughnut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28803648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T03:44:14.111Z","status":"ssl_error","status_checked_at":"2026-01-27T03:43:33.507Z","response_time":168,"last_error":"SSL_read: 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-12T05:05:43.172Z","updated_at":"2026-01-27T05:09:44.128Z","avatar_url":"https://github.com/RecordEvolution.png","language":"TypeScript","readme":"# \\\u003cwidget-doughnut\u003e\n\nThis webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.\n\n## Installation\n\n```bash\nnpm i widget-doughnut\n```\n\n## Usage\n\n```html\n\u003cscript type=\"module\"\u003e\n  import 'widget-doughnut/widget-doughnut.js';\n\u003c/script\u003e\n\n\u003cwidget-doughnut\u003e\u003c/widget-doughnut\u003e\n```\n\n## Expected data format\n\nThe following format represents the available data :\n```js\ndata: {\n  settings: {\n    title: string,\n    subTitle: string,\n    minDoughnut: number,\n    maxDoughnut: number,\n    style: {\n      needleColor: string,\n      sections: number,\n      backgroundColor: string[]\n    }\n  }\n  doughnutValue: Number\n}\n```\n\n## Interfaces\n\n```ts\n  interface InputData {\n    settings: Settings\n    doughnutValue: number\n  }\n```\n```ts\n  interface Settings {\n    title: string,\n    subTitle: string,\n    minDoughnut: number,\n    maxDoughnut: number,\n    style: Style\n  }\n```\n```ts\n  interface Style {\n    needleColor: string,\n    sections: number,\n    backgroundColor: string[]\n  }\n```\n\n## Style options\nThe following options are available for styling the doughnut graph.\nThe `sections` option splits the doughnut area into by default three same sized sections. Therefore three different colors can be provided to the `backgroundColor` by default.\n```\n  interface Style {\n    needleColor: string,\n    sections: number,\n    backgroundColor: string[]\n  }\n```\n\n## Linting and formatting\n\nTo scan the project for linting and formatting errors, run\n\n```bash\nnpm run lint\n```\n\nTo automatically fix linting and formatting errors, run\n\n```bash\nnpm run format\n```\n\n\n## Tooling configs\n\nFor most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.\n\nIf you customize the configuration a lot, you can consider moving them to individual files.\n\n## Local Demo with `web-dev-server`\n\n```bash\nnpm start\n```\n\nTo run a local development server that serves the basic demo located in `demo/index.html`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-doughnut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecordevolution%2Fwidget-doughnut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-doughnut/lists"}