###### tags: `Golang Package` # Go-echart 產生各種圖表 # 會員分佈圖 ```go= var geoData = []opts.GeoData{ {Name: "台中市", Value: []float64{120.67, 24.15, float64(10)}}, {Name: "台北市", Value: []float64{121.5, 25.03, float64(30)}}, {Name: "台南市", Value: []float64{120.2, 23, float64(50)}}, {Name: "高雄市", Value: []float64{120.28, 22.62, float64(700)}}, {Name: "新北市", Value: []float64{121.30, 25.03, float64(100)}}, } geo := charts.NewGeo() geo.SetGlobalOptions( charts.WithTitleOpts(opts.Title{Title: "basic geo example"}), charts.WithGeoComponentOpts(opts.GeoComponent{ Map: "台湾", ItemStyle: &opts.ItemStyle{Color: "#006666"}, }), ) geo.AddSeries("geo", types.ChartEffectScatter, geoData, charts.WithRippleEffectOpts(opts.RippleEffect{ Period: 4, Scale: 6, BrushType: "stroke", }), ) geo.Render(w) ``` ![](https://i.imgur.com/ISttumb.gif =60%x) # 另外一種會員分佈圖 ![](https://i.imgur.com/IT7dArt.gif) [Exmaple](https://338d-61-216-167-153.ngrok.io/)