The adorable charts library for Golang.
The adorable charts library for Golang.
If a language can be used to build web scrapers, it definitely needs to provide a graceful data visualization library. --- by dongdong.
In the Golang ecosystem, there are not many choices for data visualization libraries.
The development of go-echarts aims to
provide a simple yet powerful data visualization library for Golang.
Apache ECharts is an awesome charting and visualization library,
it supports adorable chart types and various interactive features.
and there have many program languages interactive with Echarts, such as pyecharts,
which go-echarts learns and has evolved a lot from, and the echarts4j either.
Classic way to get go-echarts
# this may be not a good choice to use v2 go-echarts without gomod(GO111MODULE=off), the
# next generation version management system
# Technically, you could use go-echarts in the way below, if you have a better workaround, please let us know....
$ go get -u github.com/go-echarts/go-echarts/...
$ cd $go-echarts-project
$ mkdir v2 && mv charts components datasets opts render templates types v2Use gomod style
$ go get -u github.com/go-echarts/go-echarts/v2/...OR
# go.mod
require github.com/go-echarts/go-echarts/v2The go-echarts project is being developed under v2 version and the active codebase is on the master branch.
v1 and v2 are incompatible which means that you cannot upgrade go-echarts from v1 to v2 smoothly. But I think it is worth trying that new version.
Especially, when there contains mino changes (usually in enhancement), we will release the rc version before a
standard release.
So, if you upgrade your projects cross the rc versions, maybe need little adjust, and I believe it is worthy to do.
It's easy to get started with go-echarts with the handbook, go-echarts/examples and GoDocs.
In this example, we create a simple bar chart with only a few lines of code.
…And the generated bar.html is rendered as below. Isn't that cool!
Of course we can also start a listening web server with net/http.
…For more information, please refer to handbook, go-echarts/examples and the GoDoc.
go-echarts is an open source project and built on the top of other open-source projects. Welcome all the kinds of contributions. No matter it is for typo fix, bug fix or big new features. Please do not hesitate to ask a question or send a pull request.
We strongly value documentation and integration with other projects, so we are very glad to accept improvements for these aspects.
MIT ©go-echarts
Reporting a security vulnerability
[proposal] Do we have LinearGradient as color?
[Bug] Legend overlaps with title / chart
[Question] echarts.connect function
[Question] Theming question
[Question] Does go-echarts support Apache echarts 6.0?
How to add data to a bar chart dynamically
[proposal]hello,may echart support table
多Y轴显示数据
Subtitle and YAxis name overlaps in position