docs: update documents

This commit is contained in:
vicanso 2022-01-15 10:55:48 +08:00
parent eb421892fe
commit c5d95eae0a
3 changed files with 6 additions and 1 deletions

View file

@ -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` 数据项对应的数据数组,支持以下形式的数据:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 KiB

After

Width:  |  Height:  |  Size: 322 KiB

Before After
Before After

View file

@ -19,7 +19,7 @@ var html = `<!DOCTYPE html>
background-color: #e0e0e0;
}
.charts {
width: 830px;
width: 810px;
margin: 10px auto;
overflow: hidden;
}
@ -27,6 +27,9 @@ var html = `<!DOCTYPE html>
float: left;
margin-right: 10px;
}
.grid:nth-child(even) {
margin-right: 0px;
}
.grid svg {
margin-bottom: 10px;
}