Skip to content
Permalink
Browse files

Fix: import path

  • Loading branch information...
chenjiandongx committed Sep 15, 2019
1 parent b65abd8 commit ef037b7f20ced8089e6a7678774e967d1c673267
Showing with 56 additions and 56 deletions.
  1. +2 −2 README.md
  2. +2 −2 README_CN.md
  3. +1 −1 charts/base.go
  4. +1 −1 charts/engine.go
  5. +1 −1 charts/funnel.go
  6. +1 −1 charts/gauge.go
  7. +2 −2 charts/geo.go
  8. +2 −2 charts/map.go
  9. +1 −1 charts/page.go
  10. +1 −1 charts/pie.go
  11. +1 −1 charts/wordcloud.go
  12. +2 −2 docs/docs/bar.md
  13. +1 −1 docs/docs/geo.md
  14. +1 −1 docs/docs/graph.md
  15. +1 −1 docs/docs/map.md
  16. +3 −3 docs/docs/map_coords.md
  17. +2 −2 docs/docs/map_file.md
  18. +3 −3 docs/docs/quickstart.md
  19. +1 −1 docs/docs/sankey.md
  20. +1 −1 docs/docs/themes.md
  21. +1 −1 example/bar.go
  22. +1 −1 example/bar3D.go
  23. +1 −1 example/boxplot.go
  24. +1 −1 example/effectscatter.go
  25. +1 −1 example/funnel.go
  26. +1 −1 example/gauge.go
  27. +1 −1 example/geo.go
  28. +1 −1 example/graph.go
  29. +1 −1 example/heatmap.go
  30. +1 −1 example/kline.go
  31. +1 −1 example/line.go
  32. +1 −1 example/line3D.go
  33. +1 −1 example/liquid.go
  34. +1 −1 example/main.go
  35. +1 −1 example/map.go
  36. +1 −1 example/overlap.go
  37. +1 −1 example/page.go
  38. +1 −1 example/parallel.go
  39. +1 −1 example/pie.go
  40. +1 −1 example/radar.go
  41. +1 −1 example/sankey.go
  42. +1 −1 example/scatter.go
  43. +1 −1 example/scatter3D.go
  44. +1 −1 example/surface3D.go
  45. +1 −1 example/themeRiver.go
  46. +1 −1 example/wordcloud.go
@@ -33,7 +33,7 @@ In the Golang ecosystem, there are not many choices for data visualizing librari
### 🔰 Installation

```shell
$ go get -u github.com/chenjiandongx/go-echarts/...
$ go get -u github.com/go-echarts/go-echarts/...
```

### ✨ Features
@@ -98,7 +98,7 @@ Now visit http://localhost:8081 in your browser and you'll see the same bar char

Run the demo program under `example/` to view all the above chart examples.
```shell
$ cd your/gopath/src/github.com/chenjiandongx/go-echarts/example
$ cd your/gopath/src/github.com/go-echarts/go-echarts/example
$ go build .
$ ./example
```
@@ -32,7 +32,7 @@
### 🔰 安装

```shell
$ go get -u github.com/chenjiandongx/go-echarts/...
$ go get -u github.com/go-echarts/go-echarts/...
```

### ✨ 特性
@@ -97,7 +97,7 @@ $ go get -u github.com/chenjiandongx/go-echarts/...

运行 example/main.go 可预览所有示例
```shell
$ cd your/gopath/src/github.com/chenjiandongx/go-echarts/example
$ cd your/gopath/src/github.com/go-echarts/go-echarts/example
$ go build .
$ ./example
```
@@ -1,7 +1,7 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"regexp"
)

@@ -10,7 +10,7 @@ import (
"strconv"
"time"

tpls "github.com/chenjiandongx/go-echarts/templates"
tpls "github.com/go-echarts/go-echarts/templates"
)

const (
@@ -1,7 +1,7 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"
)

@@ -1,7 +1,7 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"
)

@@ -2,11 +2,11 @@ package charts

import (
"fmt"
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"
"log"

"github.com/chenjiandongx/go-echarts/datasets"
"github.com/go-echarts/go-echarts/datasets"
)

// GeoComponentOpts is the option set for geo component.
@@ -1,10 +1,10 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"

"github.com/chenjiandongx/go-echarts/datasets"
"github.com/go-echarts/go-echarts/datasets"
)

// Map represents a map chart.
@@ -1,7 +1,7 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"
"log"
)
@@ -1,7 +1,7 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"
)

@@ -1,7 +1,7 @@
package charts

import (
"github.com/chenjiandongx/go-echarts/datatypes"
"github.com/go-echarts/go-echarts/datatypes"
"io"
)

@@ -82,7 +82,7 @@ func randInt() []int {
import (
"..." // 其他内置库,不一一列出,后面示例代码也是一样
"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)
bar := charts.NewBar()
@@ -295,7 +295,7 @@ bar.SetSeriesOptions(

### Bar-自定义标记+主题
```go
import "github.com/chenjiandongx/go-echarts/common"
import "github.com/go-echarts/go-echarts/common"
bar := charts.NewBar()
bar.SetGlobalOptions(
@@ -65,7 +65,7 @@ shantouData = map[string]float32{

### Geo-示例图(effectScatter)
```go
import "github.com/chenjiandongx/go-echarts/common"
import "github.com/go-echarts/go-echarts/common"
geo := charts.NewGeo("china")
geo.SetGlobalOptions(charts.TitleOpts{Title: "Geo-示例图(effectScatter)"})
@@ -167,7 +167,7 @@ graph.Add("graph", graphNodes, genLinks(),


### Graph-npm package 依赖关系
=> [npmdepgraph.json](https://github.com/chenjiandongx/go-echarts/tree/master/example/fixtures/npmdepgraph.json) <=>
=> [npmdepgraph.json](https://github.com/go-echarts/go-echarts/tree/master/example/fixtures/npmdepgraph.json) <=>
```go
import "github.com/gobuffalo/packr"
@@ -117,7 +117,7 @@ mc.Add("map", shantouData)

### Map-设置风格
```go
import "github.com/chenjiandongx/go-echarts/common"
import "github.com/go-echarts/go-echarts/common"
mc := charts.NewMap("china")
mc.SetGlobalOptions(
@@ -6,7 +6,7 @@ sidebar_label: 地理坐标

## 数据格式

go-echarts 内置了一些常用的城市地理坐标数据,这些数据保存 [coordinates.json](https://github.com/chenjiandongx/go-echarts/blob/master/datasets/coordinates.json) 文件中。数据在编译程序时会被加载进内存中。
go-echarts 内置了一些常用的城市地理坐标数据,这些数据保存 [coordinates.json](https://github.com/go-echarts/go-echarts/blob/master/datasets/coordinates.json) 文件中。数据在编译程序时会被加载进内存中。

JSON 格式
```
@@ -25,7 +25,7 @@ JSON 格式
数据加载进内存后可通过 `Coordinates` 引用和修改

```go
import "github.com/chenjiandongx/go-echarts/datasets"
import "github.com/go-echarts/go-echarts/datasets"
// 打印
fmt.Println(datasets.Coordinates)
@@ -46,4 +46,4 @@ if ok {
坐标精确数据来源可参考 [pyecharts/geo-region-coords](https://github.com/pyecharts/geo-region-coords),从 [coords.json](https://github.com/pyecharts/geo-region-coords/blob/master/coords.json) 中检索出相应的地理坐标位置后有两种方式更新坐标数据。

1. 更新 `datasets.Coordinates` 变量。
2. 修改 [coordinates.json](https://github.com/chenjiandongx/go-echarts/blob/master/datasets/coordinates.json) 文件,不过这种方式在升级 go-echarts 的时候数据会被抹除!
2. 修改 [coordinates.json](https://github.com/go-echarts/go-echarts/blob/master/datasets/coordinates.json) 文件,不过这种方式在升级 go-echarts 的时候数据会被抹除!
@@ -7,7 +7,7 @@ sidebar_label: 地图定制
## 地图资源
> go-echarts 提供了全国 370+ 城市以及 28+ 省份的地图
具体数据映射关系保存在 [datasets/map_filename.json](https://github.com/chenjiandongx/go-echarts/blob/master/datasets/map_filename.json) 中,JSON 数据格式
具体数据映射关系保存在 [datasets/map_filename.json](https://github.com/go-echarts/go-echarts/blob/master/datasets/map_filename.json) 中,JSON 数据格式
```
{
"china": "china",
@@ -25,7 +25,7 @@ sidebar_label: 地图定制

同样的,JSON 格式的数据会在编译时被加载进内容中,可通过 `MapFileNames` 引用和修改
```go
import "github.com/chenjiandongx/go-echarts/datasets"
import "github.com/go-echarts/go-echarts/datasets"
// 打印
fmt.Println(datasets.MapFileNames)
@@ -7,7 +7,7 @@ sidebar_label: 快速开始
### 安装

```shell
$ go get github.com/chenjiandongx/go-echarts/...
$ go get github.com/go-echarts/go-echarts/...
```

### 启航
@@ -22,7 +22,7 @@ import (
"os"
"time"
"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)
var nameItems = []string{"衬衫", "牛仔裤", "运动裤", "袜子", "冲锋衣", "羊毛衫"}
@@ -90,7 +90,7 @@ func main() {
或者你可以运行 `example/main.go` 预览所有示例

```shell
$ cd your/gopath/src/github.com/chenjiandongx/go-echarts/example
$ cd your/gopath/src/github.com/go-echarts/go-echarts/example
$ go build .
$ ./example
```
@@ -80,7 +80,7 @@ sankey.Add("sankey", sankeyNode, sankeyLink, charts.LabelTextOpts{Show: true})


### Sankey-官方示例
=> [energy.json](https://github.com/chenjiandongx/go-echarts/tree/master/example/fixtures/energy.json) <=>
=> [energy.json](https://github.com/go-echarts/go-echarts/tree/master/example/fixtures/energy.json) <=>
```go
import "github.com/gobuffalo/packr"
@@ -18,7 +18,7 @@ import (
"os"
"time"
"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)
var nameItems = []string{"衬衫", "牛仔裤", "运动裤", "袜子", "冲锋衣", "羊毛衫"}
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func barBase() *charts.Bar {
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func genBar3dData() [][3]int {
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

var (
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func esBase() *charts.EffectScatter {
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func funnelBase() *charts.Funnel {
@@ -7,7 +7,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func gaugeBase() *charts.Gauge {
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func geoBase() *charts.Geo {
@@ -8,7 +8,7 @@ import (
"os"
"path"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
"github.com/gobuffalo/packr"
)

@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

var hmData = [][3]int{
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

type klineData struct {
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func lineBase() *charts.Line {
@@ -6,7 +6,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func genLine3dData() [][3]float64 {
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func liquidBase() *charts.Liquid {
@@ -7,7 +7,7 @@ import (
"path"
"time"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

const (
@@ -5,7 +5,7 @@ import (
"net/http"
"os"

"github.com/chenjiandongx/go-echarts/charts"
"github.com/go-echarts/go-echarts/charts"
)

func mapBase() *charts.Map {

0 comments on commit ef037b7

Please sign in to comment.
You can’t perform that action at this time.