{"id":13702214,"url":"https://github.com/xdev-software/chartjs-java-model","last_synced_at":"2026-03-05T10:03:42.401Z","repository":{"id":157974162,"uuid":"633750603","full_name":"xdev-software/chartjs-java-model","owner":"xdev-software","description":"Provides Java models for Chart.js","archived":false,"fork":false,"pushed_at":"2026-03-02T04:42:51.000Z","size":4641,"stargazers_count":30,"open_issues_count":14,"forks_count":7,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2026-03-02T07:46:31.304Z","etag":null,"topics":["chartjs","charts","java","model"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdev-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-04-28T07:39:51.000Z","updated_at":"2026-02-10T13:11:32.000Z","dependencies_parsed_at":"2023-10-11T13:41:58.659Z","dependency_job_id":"1e4bd3c5-e80e-46b2-803a-5c2939e60456","html_url":"https://github.com/xdev-software/chartjs-java-model","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/xdev-software/chartjs-java-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Fchartjs-java-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Fchartjs-java-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Fchartjs-java-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Fchartjs-java-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdev-software","download_url":"https://codeload.github.com/xdev-software/chartjs-java-model/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdev-software%2Fchartjs-java-model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30118932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"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":["chartjs","charts","java","model"],"created_at":"2024-08-02T21:00:32.435Z","updated_at":"2026-03-05T10:03:42.361Z","avatar_url":"https://github.com/xdev-software.png","language":"Java","readme":"[![Latest version](https://img.shields.io/maven-central/v/software.xdev/chartjs-java-model?logo=apache%20maven)](https://mvnrepository.com/artifact/software.xdev/chartjs-java-model)\n[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/chartjs-java-model/check-build.yml?branch=develop)](https://github.com/xdev-software/chartjs-java-model/actions/workflows/check-build.yml?query=branch%3Adevelop)\n[![ChartJS Documentation](https://img.shields.io/badge/Chart.js-documentation-ff6384?logo=Chart.js)](https://www.chartjs.org/docs/latest/)\n\n# \u003cimg src=\"https://www.chartjs.org/media/logo.svg\" height=\"38\" /\u003e chartjs-java-model\nProvides Java models for [Chart.js](https://www.chartjs.org/) so that e.g. a Java Server can build a chart and then instruct a JavaScript client what needs to be shown.\n\nThis repo extends the abandoned [Chart.java](https://github.com/mdewilde/chart) and adds support for Chart.js Version 4+.\n\n\u003e [!NOTE]\n\u003e We try our best to implement the ChartJS v4 API however there are a lot of configuration options.\u003cbr/\u003e\n\u003e Therefore some parts might still be missing or use the outdated v2 API from the original repo.\u003cbr/\u003e\n\u003e If you think you found a missing or incorrect API please open an issue and/or provide a pull request.\n\n## Usage\n\nConfiguring a chart is straight forward and follows a builder like pattern:\n```java\nnew BarChart(new BarData()\n  .addLabels(\"A\", \"B\")\n  .addDataset(new BarDataset()\n    .setLabel(\"X\")\n    .addData(1)\n    .addData(2)))\n  .toJson(); // Do something with the json like sending it to the client\n```\n\nIf you need more examples:\n* Have a look at the [demo](./chartjs-java-model-demo/) \n* or checkout how we do it in our [tests](./chartjs-java-model/src/test/java/software/xdev/chartjs/model/)\n  * there are also [screenshots](./chartjs-java-model/src/test/resources/screenshotReferences/) available\n\n## Installation\n[Installation guide for the latest release](https://github.com/xdev-software/chartjs-java-model/releases/latest#Installation)\n\n#### Compatibility with Chart.js\n| Chart.js | ``chartjs-java-model`` version |\n| --- | --- |\n| 4.x | ``1+`` |\n\n#### Integrations\n* Vaadin - You can utilize the library in combination with our [Chart.js Wrapper for Vaadin](https://github.com/xdev-software/vaadin-chartjs-wrapper)\n* [Primefaces's Charts](https://showcase.primefaces.org/ui/chart/bar.xhtml)\n\n## Support\nIf you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support).\n\n## Contributing\nSee the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.\n\n## Dependencies and Licenses\nView the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/chartjs-java-model/dependencies)\n\n## Acknowledgment\n* To all [contributors](https://github.com/xdev-software/chartjs-java-model/graphs/contributors) that helped to improve this library\n  * Especially to the devs at [PrimeTek/PrimeFaces](https://www.primefaces.org/) that regularly provide feedback and PRs\n\n\u003csub\u003eDisclaimer: This is not an official Chart.js product and not associated\u003c/sub\u003e\n","funding_links":[],"categories":["Integrations"],"sub_categories":["Others"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdev-software%2Fchartjs-java-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdev-software%2Fchartjs-java-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdev-software%2Fchartjs-java-model/lists"}