{"id":13531886,"url":"https://github.com/ECharts-Java/ECharts-Java","last_synced_at":"2025-04-01T20:30:46.687Z","repository":{"id":38155844,"uuid":"431230774","full_name":"ECharts-Java/ECharts-Java","owner":"ECharts-Java","description":"A Java Visualization Library based on Apache ECharts 5.x. 基于 Apache ECharts 5.x 的 Java 可视化类库。","archived":false,"fork":false,"pushed_at":"2024-11-11T03:05:11.000Z","size":14944,"stargazers_count":324,"open_issues_count":11,"forks_count":59,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-11T03:24:19.782Z","etag":null,"topics":["echarts","java","visualization"],"latest_commit_sha":null,"homepage":"https://echarts.icepear.org","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/ECharts-Java.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":"2021-11-23T19:39:21.000Z","updated_at":"2024-11-11T03:05:15.000Z","dependencies_parsed_at":"2024-11-11T06:00:36.769Z","dependency_job_id":null,"html_url":"https://github.com/ECharts-Java/ECharts-Java","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECharts-Java%2FECharts-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECharts-Java%2FECharts-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECharts-Java%2FECharts-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ECharts-Java%2FECharts-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ECharts-Java","download_url":"https://codeload.github.com/ECharts-Java/ECharts-Java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709923,"owners_count":20821297,"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":["echarts","java","visualization"],"created_at":"2024-08-01T07:01:06.592Z","updated_at":"2025-04-01T20:30:41.678Z","avatar_url":"https://github.com/ECharts-Java.png","language":"Java","readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"assets/imgs/logo.png\" alt=\"logo\" width=150 height=150 /\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003eECharts Java\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003e\"We bring better visualization into Java with ECharts\"\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/ECharts-Java/ECharts-Java/actions\"\u003e\n        \u003cimg src=\"https://github.com/ECharts-Java/ECharts-Java/actions/workflows/maven.yml/badge.svg\" alt=\"Github Actions Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/pyecharts/pyecharts/pulls\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat\" alt=\"Contributions welcome\"\u003e\n    \u003c/a\u003e\n    \u003c!-- \u003ca href=\"https://codecov.io/gh/ECharts-Java/ECharts-Java\"\u003e\n        \u003cimg src=\"https://codecov.io/gh/ECharts-Java/ECharts-Java/branch/dev/graph/badge.svg?token=V1N6AQ0EA1\"/\u003e\n    \u003c/a\u003e --\u003e\n    \u003ca href=\"https://opensource.org/licenses/Apache-2.0\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/License-Apache_2.0-blue.svg\" alt=\"License\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://maven-badges.herokuapp.com/maven-central/org.icepear.echarts/echarts-java\"\u003e\n        \u003cimg src=\"https://maven-badges.herokuapp.com/maven-central/org.icepear.echarts/echarts-java/badge.svg\" alt=\"Maven Central\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n[中文 README](README.zh.md)\n\n[Official Documentation](https://echarts.icepear.org/#/)\n## 📙 Introduction\n\nECharts Java is a lightweight but comprehensive library for Java developers to easily use JavaScript visualization library [Apache ECharts](https://echarts.apache.org/en/index.html). The simple chart mode facilitates users to write visualization fast and easily, empowered by the clean APIs provided by ECharts Java. The advanced mode helps create an `Option` object and its Json representation in chainable Java codes, which includes almost all the features defined in [Apache ECharts](https://echarts.apache.org/en/index.html). Now ECharts Java supports Apache ECharts version 5.x.\n\n## 🌠 Features\n\n- Simple, clean and organized APIs, supporting method chaining\n\n- Full coverage of [Apache ECharts](https://echarts.apache.org/en/index.html) functionalities\n\n- Easily integrate with Web Frameworks\n\n- Flexible export format, including HTML and images\n\n- Complete and detailed documentation and examples\n\n## 🔬 Installation\n\nFor a Maven project, includes the following in your pom.xml\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.icepear.echarts\u003c/groupId\u003e\n  \u003cartifactId\u003eecharts-java\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.7\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nFor a Gradle Groovy project, includes\n```\nimplementation 'org.icepear.echarts:echarts-java:1.0.7'\n```\n\nFor more, refer to [here](https://search.maven.org/artifact/org.icepear.echarts/echarts-java/1.0.7/jar).\n\n## 🔭 Usage\n\n### Generate Local HTML and Download Image\n\n```java\npublic static void main(String[] args) {\n    // All methods in EChart Java supports method chaining\n    Bar bar = new Bar()\n              .setLegend()\n              .setTooltip(\"item\")\n              .addXAxis(new String[] { \"Matcha Latte\", \"Milk Tea\", \"Cheese Cocoa\", \"Walnut Brownie\" })\n              .addYAxis()\n              .addSeries(\"2015\", new Number[] { 43.3, 83.1, 86.4, 72.4 })\n              .addSeries(\"2016\", new Number[] { 85.8, 73.4, 65.2, 53.9 })\n              .addSeries(\"2017\", new Number[] { 93.7, 55.1, 82.5, 39.1 });\n    Engine engine = new Engine();\n    // The render method will generate our EChart into a HTML file saved locally in the current directory.\n    // The name of the HTML can also be set by the first parameter of the function.\n    engine.render(\"index.html\", bar);\n}\n```\n\u003cimg src=\"assets/imgs/multibar-render.gif\" alt=\"multi-bar-render\" style=\"width:85%;\" /\u003e\n\n### Generate Option Object and its JSON Representation\n\n```java\npublic static void main(String[] args) {\n    Line lineChart = new Line()\n                .addXAxis(new CategoryAxis()\n                        .setData(new String[] { \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\" })\n                        .setBoundaryGap(false))\n                .addYAxis()\n                .addSeries(new LineSeries()\n                        .setData(new Number[] { 820, 932, 901, 934, 1290, 1330, 1320 })\n                        .setAreaStyle(new LineAreaStyle()));\n    Engine engine = new Engine();\n    // It is recommended that you can  get the serialized version of Option in the representation of JSON, which can be used directly in the template or in the RESTful APIs.\n    String jsonStr = engine.renderJsonOption(lineChart);\n}\n```\n\nThe output JSON object will be like the following,\n\n```json\n{\n  \"xAxis\": [\n    {\n      \"type\": \"category\",\n      \"data\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"],\n      \"boundaryGap\": false\n    }\n  ],\n  \"yAxis\": [{ \"type\": \"value\" }],\n  \"series\": [\n    {\n      \"type\": \"line\",\n      \"data\": [820, 932, 901, 934, 1290, 1330, 1320],\n      \"areaStyle\": {}\n    }\n  ]\n}\n```\n\n### Integrate with Spring Web Application\n\n\u003cimg src=\"assets/imgs/line-renderHtml.gif\" alt=\"spring-boot-integration\" style=\"width:75%;\" /\u003e\n\nFor demo codes, please refer to the [docs](https://echarts.icepear.org/) and [example repo](https://github.com/incandescentxxc/ECharts-Java-Examples).\n\n## 🎇 Gallery\n\n\u003cp float=\"center\"\u003e\n  \u003cimg src=\"assets/imgs/stacked-line.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/stacked-area.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/multiple-series-bar.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/horizontal-stacked-bar.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/basic-scatter.jpg\" width=\"32%\" /\u003e\n  \u003c!-- \u003cimg src=\"assets/imgs/basic-boxplot.jpg\" width=\"32%\" /\u003e  --\u003e\n  \u003cimg src=\"assets/imgs/basic-candlestick.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/basic-heatmap.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/basic-polar-line.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/tangential-polar-bar.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/basic-polar-scatter.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/basic-radar.jpg\" width=\"32%\" /\u003e \n  \u003cimg src=\"assets/imgs/basic-parallel.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/basic-theme-river.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/basic-rose.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/nested-pie.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/circular-layout-graph.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/hide-overlapped-label-graph.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/basic-sankey.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/basic-funnel.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/basic-sunburst.jpg\" width=\"32%\" /\u003e\n  \u003cimg src=\"assets/imgs/animation-gauge.jpg\" width=\"32%\" /\u003e \n\u003c/p\u003e\n\n## 💡 Authors\n- [@IcePear-Jzx](https://github.com/IcePear-Jzx)\n- [@incandescentxxc](https://github.com/incandescentxxc)\n\nWelcome more contribution in the community!\n\n## 💌 Acknowledgement\n- This project is inspired by the Homework 6 of the course [Principles of Software Construction Objects, Design, and Concurrency](https://cmu-17-214.github.io/f2021/), Fall 2021, at [Carnegie Mellon University](https://www.cmu.edu/). We sincerely thank [Christian](https://www.cs.cmu.edu/~ckaestne/) and [Vincent](https://vhellendoorn.github.io/) for the wonderful course.\n\n- This project is also inspired by the [pyecharts](https://github.com/pyecharts/pyecharts) and [go-echarts](https://github.com/go-echarts/go-echarts), which are the ECharts siblings in Python and Go languages.\n\n## 🎈 License\n\nECharts Java is available under the [Apache License 2.0](LICENSE).\n","funding_links":[],"categories":["Languages","数据科学"],"sub_categories":["Java"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FECharts-Java%2FECharts-Java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FECharts-Java%2FECharts-Java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FECharts-Java%2FECharts-Java/lists"}