{"id":13532170,"url":"https://github.com/XD-DENG/ECharts2Shiny","last_synced_at":"2025-04-01T20:31:26.434Z","repository":{"id":56937375,"uuid":"60709381","full_name":"XD-DENG/ECharts2Shiny","owner":"XD-DENG","description":"To insert interactive charts from ECharts into R Shiny applications (在R Shiny app中插入ECharts可交互图形)","archived":false,"fork":false,"pushed_at":"2020-10-02T13:11:31.000Z","size":6963,"stargazers_count":129,"open_issues_count":6,"forks_count":49,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-05-16T14:04:54.049Z","etag":null,"topics":["r","shiny","visualization"],"latest_commit_sha":null,"homepage":"https://CRAN.R-project.org/package=ECharts2Shiny","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XD-DENG.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}},"created_at":"2016-06-08T15:40:46.000Z","updated_at":"2023-07-07T13:43:59.000Z","dependencies_parsed_at":"2022-08-21T01:40:21.361Z","dependency_job_id":null,"html_url":"https://github.com/XD-DENG/ECharts2Shiny","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2FECharts2Shiny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2FECharts2Shiny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2FECharts2Shiny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XD-DENG%2FECharts2Shiny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XD-DENG","download_url":"https://codeload.github.com/XD-DENG/ECharts2Shiny/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413232,"owners_count":20773053,"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":["r","shiny","visualization"],"created_at":"2024-08-01T07:01:08.747Z","updated_at":"2025-04-01T20:31:26.403Z","avatar_url":"https://github.com/XD-DENG.png","language":"R","readme":"# ECharts2Shiny\n[![CRAN Status Badge](http://www.r-pkg.org/badges/version/ECharts2Shiny)]( https://CRAN.R-project.org/package=ECharts2Shiny)\n\n- [中文版](#echarts2shiny包)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/XD-DENG/ECharts2Shiny/master/images_for_github/NOT_remove_for_ECharts2Shiny_repo_new.png\" alt=\"Drawing\" style=\"width:80%;\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/XD-DENG/ECharts2Shiny/master/images_for_github/gif_diverse_charts.gif\" alt=\"Drawing\" style=\"width:80%;\"/\u003e\n\u003c/p\u003e\n\nAs an R package, *ECharts2Shiny* can help embed the interactive charts plotted by [*Apache ECharts (incubating)*](https://github.com/apache/incubator-echarts) library into our *Shiny* application. Currently, we can support \n\n- Pie charts\n- Line charts\n- Bar charts\n- Scatter plots\n- Radar chart\n- Gauge\n- Word Cloud\n- Tree Map\n- Heat Map\n\n### Contents\n- [How to Install](#how-to-install)\n- [Examples](#examples)\n- [License](#license)\n\n\n## How to Install\n\nFrom CRAN,\n```{r}\ninstall.packages(\"ECharts2Shiny\")\n```\n\nFor the latest development version, please install from GitHub\n```{r}\nlibrary(devtools)\ninstall_github(\"XD-DENG/ECharts2Shiny\")\n```\n\n## Examples\n\n\n```{r}\nlibrary(shiny)\nlibrary(ECharts2Shiny)\n\n# Prepare sample data for plotting --------------------------\ndat \u003c- data.frame(c(1, 2, 3),\n                  c(2, 4, 6))\nnames(dat) \u003c- c(\"Type-A\", \"Type-B\")\nrow.names(dat) \u003c- c(\"Time-1\", \"Time-2\", \"Time-3\")\n\n# Server function -------------------------------------------\nserver \u003c- function(input, output) {\n  # Call functions from ECharts2Shiny to render charts\n  renderBarChart(div_id = \"test\", grid_left = '1%', direction = \"vertical\",\n                 data = dat)\n}\n\n# UI layout -------------------------------------------------\nui \u003c- fluidPage(\n  # We MUST load the ECharts javascript library in advance\n  loadEChartsLibrary(),\n  \n  tags$div(id=\"test\", style=\"width:50%;height:400px;\"),\n  deliverChart(div_id = \"test\")\n)\n\n# Run the application --------------------------------------\nshinyApp(ui = ui, server = server)\n```\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/XD-DENG/ECharts2Shiny/master/images_for_github/gif_simple_example.gif\" alt=\"Drawing\" style=\"width:50%;\"/\u003e\n\u003c/p\u003e\n\n**(For more examples, please refer to the `/examples` folder)**\n\n### List of Examples\n\n- [1. Basic](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-1%20Basic)\n- [2. Diverse Plots](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-2%20Diverse%20Plots)\n- [3. More Options in Basic Charts](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-3%20More%20Options)\n- [4. Scatter](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-4%20Scatter)\n- [5. Use Reactive Values as Data Input](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-5%20Use%20Reactive%20Values)\n- [6. Radar Chart](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-6%20Radar%20Chart)\n- [7. Word Cloud - Basic](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-7%20word%20cloud)\n- [8. Word Cloud - More Shapes](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-8%20word%20cloud%20-%20more%20shapes)\n- [9. Word Cloud - Use Vector as Data Input](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-9%20word%20cloud%20-%20Use%20vector%20as%20data%20input)\n- [10. Line Chart with Diverse Options](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-10%20Line%20Chart%20with%20diverse%20options)\n- [11. Scatter with point.type Argument](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-11%20Scatter%20with%20point.type)\n- [12. Step Line Chart](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-12%20Step%20Line%20Chart)\n- [13. Deal with Missing Values](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-13%20Deal%20with%20NA%20Values)\n- [14. Heat Map](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-14%20Heat%20Map)\n- [15. Add Hyperlinks](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-15%20Adding%20Hyperlinks)\n\n\n\n\n\n## License\n\n***ECharts2Shiny*** package itself is under GPL-2. \n\nThe ***ECharts*** JS library is under BSD license ([ECharts](https://github.com/ecomfe/echarts)).\n\n\n# ECharts2Shiny包\n[![CRAN Status Badge](http://www.r-pkg.org/badges/version/ECharts2Shiny)]( https://CRAN.R-project.org/package=ECharts2Shiny)\n\n- [English Version](#echarts2shiny)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/XD-DENG/ECharts2Shiny/master/images_for_github/NOT_remove_for_ECharts2Shiny_repo_new.png\" alt=\"Drawing\" style=\"width:80%;\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/XD-DENG/ECharts2Shiny/master/images_for_github/gif_diverse_charts.gif\" alt=\"Drawing\" style=\"width:80%;\"/\u003e\n\u003c/p\u003e\n\nECharts2Shiny作为一个R包，可以帮助在Shiny应用程序中插入由[*ECharts*](https://github.com/ecomfe/echarts)库绘出的交互图形。当前支持的图形包括\n\n- 饼图 (pie chart)\n- 折线图 (line chart)\n- 柱形图 (bar chart)\n- 散点图 (scatter chart)\n- 雷达图 (radar chart)\n- 仪表盘 (gauge)\n- 词云 (word cloud)\n- 矩形树图 (Tree Map)\n- 热力图 (heat map)\n\n\n### 目录\n- [安装](#安装)\n- [例子](#例子)\n- [许可证](#许可证)\n\n\n## 安装\n\nCRAN版本\n```{r}\ninstall.packages(\"ECharts2Shiny\")\n```\n\n由GitHub安装最新开发版本\n```{r}\nlibrary(devtools)\ninstall_github(\"XD-DENG/ECharts2Shiny\")\n```\n\n## 例子\n\n```{r}\nlibrary(shiny)\nlibrary(ECharts2Shiny)\n\n# Prepare sample data for plotting --------------------------\ndat \u003c- data.frame(c(1, 2, 3),\n                  c(2, 4, 6))\nnames(dat) \u003c- c(\"Type-A\", \"Type-B\")\nrow.names(dat) \u003c- c(\"Time-1\", \"Time-2\", \"Time-3\")\n\n# Server function -------------------------------------------\nserver \u003c- function(input, output) {\n  # Call functions from ECharts2Shiny to render charts\n  renderBarChart(div_id = \"test\", grid_left = '1%', direction = \"vertical\",\n                 data = dat)\n}\n\n# UI layout -------------------------------------------------\nui \u003c- fluidPage(\n  # We MUST load the ECharts javascript library in advance\n  loadEChartsLibrary(),\n  \n  tags$div(id=\"test\", style=\"width:50%;height:400px;\"),\n  deliverChart(div_id = \"test\")\n)\n\n# Run the application --------------------------------------\nshinyApp(ui = ui, server = server)\n```\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/XD-DENG/ECharts2Shiny/master/images_for_github/gif_simple_example.gif\" alt=\"Drawing\" style=\"width:50%;\"/\u003e\n\u003c/p\u003e\n\n**(请参考`/examples` 文件夹以获得更多实例信息)**\n### 实例列表\n\n- [1. Basic](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-1%20Basic)\n- [2. Diverse Plots](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-2%20Diverse%20Plots)\n- [3. More Options in Basic Charts](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-3%20More%20Options)\n- [4. Scatter](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-4%20Scatter)\n- [5. Use Reactive Values as Data Input](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-5%20Use%20Reactive%20Values)\n- [6. Radar Chart](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-6%20Radar%20Chart)\n- [7. Word Cloud - Basic](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-7%20word%20cloud)\n- [8. Word Cloud - More Shapes](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-8%20word%20cloud%20-%20more%20shapes)\n- [9. Word Cloud - Use Vector as Data Input](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-9%20word%20cloud%20-%20Use%20vector%20as%20data%20input)\n- [10. Line Chart with Diverse Options](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-10%20Line%20Chart%20with%20diverse%20options)\n- [11. Scatter with point.type Argument](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-11%20Scatter%20with%20point.type)\n- [12. Step Line Chart](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-12%20Step%20Line%20Chart)\n- [13. Deal with Missing Values](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-13%20Deal%20with%20NA%20Values)\n- [14. Heat Map](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-14%20Heat%20Map)\n- [15. Add Hyperlinks](https://github.com/XD-DENG/ECharts2Shiny/tree/master/examples/example-15%20Adding%20Hyperlinks)\n\n\n## 许可证\n\n***ECharts2Shiny*** 包使用GLP－2许可证。\n\nThe ***ECharts*** JS库使用BSD许可证([ECharts](https://github.com/ecomfe/echarts))。\n","funding_links":[],"categories":["Languages","1. language","R","Tools"],"sub_categories":["R","1.6 R","Packages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXD-DENG%2FECharts2Shiny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXD-DENG%2FECharts2Shiny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXD-DENG%2FECharts2Shiny/lists"}