Registry /
utility / go-echarts-go-echarts-v2
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
echarts
✓ github.com/go-echarts/go-echarts/v2
Creates a simple bar chart and renders it to an HTML file.
package main
import (
"os"
"github.com/go-echarts/go-echarts/v2/charts"
"github.com/go-echarts/go-echarts/v2/opts"
)
func main() {
bar := charts.NewBar()
bar.SetXAxis([]string{"A", "B", "C"}).
AddSeries("Category", []opts.BarData{{Value: 10}, {Value: 20}, {Value: 30}})
f, _ := os.Create("bar.html")
bar.Render(f)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.7.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.