{"id":19490006,"url":"https://github.com/xo/echartsgoja","last_synced_at":"2026-06-07T21:31:34.655Z","repository":{"id":218161096,"uuid":"745754982","full_name":"xo/echartsgoja","owner":"xo","description":"Go package to render Apache ECharts as SVG","archived":false,"fork":false,"pushed_at":"2024-06-09T23:10:47.000Z","size":2798,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T08:42:51.679Z","etag":null,"topics":["apache-echarts","charts","echarts","go","goja","golang","svg","visualization"],"latest_commit_sha":null,"homepage":"","language":"Go","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/xo.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":"2024-01-20T03:33:58.000Z","updated_at":"2024-06-09T23:10:50.000Z","dependencies_parsed_at":"2024-02-04T00:23:00.960Z","dependency_job_id":"b5052079-8707-4730-8297-b2fd78ac3eed","html_url":"https://github.com/xo/echartsgoja","commit_stats":null,"previous_names":["xo/echartsgoja"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xo%2Fechartsgoja","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xo%2Fechartsgoja/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xo%2Fechartsgoja/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xo%2Fechartsgoja/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xo","download_url":"https://codeload.github.com/xo/echartsgoja/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240732045,"owners_count":19848622,"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":["apache-echarts","charts","echarts","go","goja","golang","svg","visualization"],"created_at":"2024-11-10T21:10:45.207Z","updated_at":"2026-06-07T21:31:34.629Z","avatar_url":"https://github.com/xo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# echartsgoja\n\n`echartsgoja` renders [Apache ECharts][echarts-examples] as SVGs using the\n[`goja`][goja] JavaScript runtime. Developed for use by [`usql`][usql] for\nrendering charts.\n\n[Overview][] | [TODO][] | [About][]\n\n[Overview]: #overview \"Overview\"\n[TODO]: #todo \"TODO\"\n[About]: #about \"About\"\n\n[![Unit Tests][echartsgoja-ci-status]][echartsgoja-ci]\n[![Go Reference][goref-echartsgoja-status]][goref-echartsgoja]\n[![Discord Discussion][discord-status]][discord]\n\n[echartsgoja-ci]: https://github.com/xo/echartsgoja/actions/workflows/test.yml\n[echartsgoja-ci-status]: https://github.com/xo/echartsgoja/actions/workflows/test.yml/badge.svg\n[goref-echartsgoja]: https://pkg.go.dev/github.com/xo/echartsgoja\n[goref-echartsgoja-status]: https://pkg.go.dev/badge/github.com/xo/echartsgoja.svg\n[discord]: https://discord.gg/yJKEzc7prt \"Discord Discussion\"\n[discord-status]: https://img.shields.io/discord/829150509658013727.svg?label=Discord\u0026logo=Discord\u0026colorB=7289da\u0026style=flat-square \"Discord Discussion\"\n\n## Overview\n\nInstall in the usual Go fashion:\n\n```sh\n$ go get github.com/xo/echartsgoja@latest\n```\n\nThen use like the following:\n\n```go\npackage echartsgoja_test\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/xo/echartsgoja\"\n)\n\nfunc Example() {\n\techarts := echartsgoja.New()\n\tsvg, err := echarts.RenderOptions(context.Background(), simpleOpts)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tif err := os.WriteFile(\"simple.svg\", []byte(svg), 0o644); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t// Output:\n}\n\nconst simpleOpts = `{\n  \"xAxis\": {\n    \"type\": \"category\",\n    \"boundaryGap\": false,\n    \"data\": [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n  },\n  \"yAxis\": {\n    \"type\": \"value\"\n  },\n  \"series\": [{\n    \"data\": [820, 932, 901, 934, 1290, 1330, 1320],\n    \"type\": \"line\",\n    \"areaStyle\": {}\n  }]\n}`\n```\n\n## TODO\n\n- Rewrite as native Go\n\n## About\n\n`echartsgoja` was written primarily to support these projects:\n\n- [usql][usql] - a universal command-line interface for SQL databases\n\nUsers of this package may find the [`github.com/xo/resvg`][resvg] package\nhelpful in rendering generated SVGs.\n\n[echarts-examples]: https://echarts.apache.org/examples/en/index.html\n[usql]: https://github.com/xo/usql\n[resvg]: https://github.com/xo/resvg\n[goja]: https://github.com/dop251/goja\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxo%2Fechartsgoja","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxo%2Fechartsgoja","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxo%2Fechartsgoja/lists"}