{"id":18305066,"url":"https://github.com/jop-software/hx-chart","last_synced_at":"2025-04-05T16:32:28.152Z","repository":{"id":214539109,"uuid":"736737754","full_name":"jop-software/hx-chart","owner":"jop-software","description":"HTMX extension to use chart.js","archived":false,"fork":false,"pushed_at":"2023-12-29T11:17:28.000Z","size":38,"stargazers_count":15,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T16:06:19.437Z","etag":null,"topics":["htmx","htmx-extension"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@jop-software/hx-chart","language":"TypeScript","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/jop-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-12-28T18:21:48.000Z","updated_at":"2025-02-05T11:50:34.000Z","dependencies_parsed_at":"2023-12-28T21:56:38.192Z","dependency_job_id":"3c50f45d-2ca0-4906-9005-f56bc0a4817d","html_url":"https://github.com/jop-software/hx-chart","commit_stats":null,"previous_names":["jop-software/hx-chart"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fhx-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fhx-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fhx-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jop-software%2Fhx-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jop-software","download_url":"https://codeload.github.com/jop-software/hx-chart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247366723,"owners_count":20927569,"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":["htmx","htmx-extension"],"created_at":"2024-11-05T15:32:34.916Z","updated_at":"2025-04-05T16:32:27.784Z","avatar_url":"https://github.com/jop-software.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003e\u003ccode\u003e@jop-software/hx-chart\u003c/code\u003e - chart.js as an htmx.org plugin\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003e Use [chart.js](https://www.chartjs.org/) as an extension in HTMX.\n\n## Installation\n\n```console\n# npm\nnpm install @jop-software/hx-chart\n\n# pnpm\npnpm add @jop-software/hx-chart\n```\n\nMake sure to include `chart.js` as well as `htmx.org` separately.\n\n## Usage\n\n```javascript\nimport \"@jop-software/hx-chart\";\n```\n\n```html\n\u003ccanvas\n    hx-ext=\"hx-chart\"\n    hx-chart=\"true\"\n    hx-chart-type=\"pie\"\n    hx-chart-labels='[\"40%\", \"60%\"]'\n    hx-chart-datasets='[{\"data\": [\"40\",\"60\"], \"backgroundColor\": [\"#dc3545\", \"#28a745\"]}]'\n\u003e\u003c/canvas\u003e\n```\n\n\u003e [!NOTE]  \n\u003e All attributes can be prefixed with `data-`, so you can use `data-hx-chart-type` instead of `hx-chart-type`.\n\n## Professional support and Enterprise Licensing\n\nProfessional support, as well as enterprise licenses are available. Please contact [support@jop-software.de](mailto:support@jop-software.de) for more information.\n\n\u003cdiv align=center\u003e\u0026copy; 2023, \u003ca href=\"https://jop-software.de\"\u003ejop-software Inh. Johannes Przymusinski\u003c/a\u003e\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fhx-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjop-software%2Fhx-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjop-software%2Fhx-chart/lists"}