{"id":19772191,"url":"https://github.com/recordevolution/widget-barchart","last_synced_at":"2026-02-16T02:32:43.891Z","repository":{"id":197228824,"uuid":"697331121","full_name":"RecordEvolution/widget-barchart","owner":"RecordEvolution","description":"Record Evolution Bar Chart Widget","archived":false,"fork":false,"pushed_at":"2025-03-18T10:48:23.000Z","size":705,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T18:37:27.033Z","etag":null,"topics":["dashboard-widget"],"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}},"created_at":"2023-09-27T14:08:35.000Z","updated_at":"2025-03-18T10:48:26.000Z","dependencies_parsed_at":"2023-11-15T10:40:01.081Z","dependency_job_id":"4f9ce38f-b227-4454-9e4d-42dc01e8e5c6","html_url":"https://github.com/RecordEvolution/widget-barchart","commit_stats":null,"previous_names":["recordevolution/widget-barchart"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/RecordEvolution/widget-barchart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-barchart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-barchart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-barchart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-barchart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecordEvolution","download_url":"https://codeload.github.com/RecordEvolution/widget-barchart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-barchart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29498665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T02:07:14.481Z","status":"online","status_checked_at":"2026-02-16T02:03:22.852Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":true,"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":["dashboard-widget"],"created_at":"2024-11-12T05:05:42.565Z","updated_at":"2026-02-16T02:32:43.877Z","avatar_url":"https://github.com/RecordEvolution.png","language":"TypeScript","readme":"# \\\u003cwidget-barchart\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-barchart\n```\n\n## Usage\n\n```html\n\u003cscript type=\"module\"\u003e\n  import 'widget-barchart/widget-barchart.js';\n\u003c/script\u003e\n\n\u003cwidget-barchart\u003e\u003c/widget-barchart\u003e\n```\n\n## Expected data format\n\nThe following format represents the available data :\n```\ndata: {\n  settings: {\n    title: string,\n    subTitle: string,\n    label: string,\n    style: {\n      backgroundColor: string[],\n      borderColor: string[],\n      borderWidth: number\n    }\n  }\n  data: [\n    {x: string, y: number}\n  ]\n}\n```\n\n## Interfaces\n\n```\n  interface InputData {\n    settings: Settings\n    data: Data[]\n  }\n```\n```\n  interface Settings {\n    title: string,\n    subTitle: string,\n    label: string,\n    style: Style\n  }\n```\n```\n  interface Style {\n    backgroundColor: string[],\n    borderColor: string[],\n    borderWidth: number\n  }\n```\n```\n  interface Data {\n    x: string,\n    y: number,\n  }\n```\n\n## Style options\nThe following options are available for styling the bar graph.\nA color string is provided in the `backgroundColor` array for each data object.\nThe same counts for the `borderColor` array\n\n```\n  interface Style {\n    backgroundColor: string[],\n    borderColor: string[],\n    borderWidth: number\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-barchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecordevolution%2Fwidget-barchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-barchart/lists"}