diff --git a/README.md b/README.md index 41af8f6..b349d5b 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ func main() { - `legend.right` legend离容器右侧的距离,其值可以为具体的像素值(20)或百分比(20%) - `series` 图表的数据项列表 - `series.type` 图表的展示类型,暂支持`line`, `bar`以及`pie`,需要注意`pie`只能单独使用 + - `series.label.show` 是否显示文本标签(默认为对应的值) + - `series.label.distance` 距离图形元素的距离 - `series.yAxisIndex` 该数据项使用的y轴,默认为0,对yAxis的配置对应 - `series.itemStyle.color` 该数据项展示时使用的颜色 - `series.data` 数据项对应的数据数组,支持以下形式的数据: diff --git a/assets/go-charts.png b/assets/go-charts.png index e2681d3..f556abf 100644 Binary files a/assets/go-charts.png and b/assets/go-charts.png differ diff --git a/examples/demo/main.go b/examples/demo/main.go index 6fb652b..26866d9 100644 --- a/examples/demo/main.go +++ b/examples/demo/main.go @@ -19,7 +19,7 @@ var html = ` background-color: #e0e0e0; } .charts { - width: 830px; + width: 810px; margin: 10px auto; overflow: hidden; } @@ -27,6 +27,9 @@ var html = ` float: left; margin-right: 10px; } + .grid:nth-child(even) { + margin-right: 0px; + } .grid svg { margin-bottom: 10px; }