{"id":28714171,"url":"https://github.com/rubiojr/echarts-risor","last_synced_at":"2025-06-15T01:03:43.917Z","repository":{"id":290968011,"uuid":"976136033","full_name":"rubiojr/echarts-risor","owner":"rubiojr","description":"Data visualization module for Risor","archived":false,"fork":false,"pushed_at":"2025-05-01T15:44:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T16:40:59.640Z","etag":null,"topics":["data-visualization","risor"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rubiojr.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":"2025-05-01T15:04:44.000Z","updated_at":"2025-05-01T15:44:01.000Z","dependencies_parsed_at":"2025-05-02T13:47:38.034Z","dependency_job_id":null,"html_url":"https://github.com/rubiojr/echarts-risor","commit_stats":null,"previous_names":["rubiojr/echarts-risor"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rubiojr/echarts-risor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiojr%2Fecharts-risor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiojr%2Fecharts-risor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiojr%2Fecharts-risor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiojr%2Fecharts-risor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubiojr","download_url":"https://codeload.github.com/rubiojr/echarts-risor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubiojr%2Fecharts-risor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259906072,"owners_count":22929969,"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":["data-visualization","risor"],"created_at":"2025-06-15T01:02:16.056Z","updated_at":"2025-06-15T01:03:43.909Z","avatar_url":"https://github.com/rubiojr.png","language":"Go","funding_links":[],"categories":["Additional modules/libraries"],"sub_categories":[],"readme":"# Echarts \n\nRisor module to create charts. Wraps https://github.com/go-echarts/go-echarts.\n\n\u003e [!NOTE]\n\u003e This module is not included with Risor.\n\nThe `echarts` module exposes a simple interface to create charts, powered by the great [go-echarts](https://github.com/go-echarts/go-echarts) library.\n\n## Functions\n\n### bar\n\n```go filename=\"Function signature\"\nbar(file string, data map, opts map)\n```\n\nCreates a new bar chart.\n\n```go copy filename=\"Example\"\ndata := {\n  \"serie A\": [1, 2, 3],\n  \"serie B\": [3, 4, 5],\n}\n\necharts.bar(\n\t\"bar.html\",\n\tdata,\n)\n```\n\nThe `opts` argument may be a map containing any of the following keys:\n\n| Name   | Type                          | Description                              |\n| ------ | ----------------------------- | ---------------------------------------- |\n| title  | string                        | The title of the chart                   |\n| subtitle | string                      | The subtitle of the chart                |\n| xlabels | []string                      | The labels for the x-axis                |\n\n```go copy filename=\"Example\"\ndata := {\n  \"serie A\": [1, 2, 3],\n  \"serie B\": [3, 4, 5],\n}\n\necharts.bar(\n\t\"bar.html\",\n\tdata,\n\t{\n\t\ttitle: \"My awesome bar chart\",\n\t\tsubtitle: \"this is a subtitle\",\n\t\txlabels: [\"one\", \"two\", \"three\"]\n\t},\n)\n```\n\n### line\n\n```go filename=\"Function signature\"\nline(file string, data map, opts map)\n```\n\nCreates a new line chart.\n\n```go copy filename=\"Example\"\ndata := {\n  \"serie A\": [1, 2, 3],\n  \"serie B\": [3, 4, 5],\n}\n\necharts.line(\n\t\"line.html\",\n\tdata,\n)\n```\n\nThe `opts` argument may be a map containing any of the following keys:\n\n| Name   | Type                          | Description                              |\n| ------ | ----------------------------- | ---------------------------------------- |\n| title  | string                        | The title of the chart                   |\n| subtitle | string                      | The subtitle of the chart                |\n| xlabels | []string                      | The labels for the x-axis                |\n\n\n```go copy filename=\"Example\"\ndata := {\n  \"serie A\": [1, 2, 3],\n  \"serie B\": [3, 4, 5],\n}\n\necharts.line(\n\t\"line.html\",\n\tdata,\n\t{\n\t\ttitle: \"My awesome line chart\",\n\t\tsubtitle: \"this is a subtitle\",\n\t\txlabels: [\"one\", \"two\", \"three\"]\n\t},\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubiojr%2Fecharts-risor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubiojr%2Fecharts-risor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubiojr%2Fecharts-risor/lists"}