Skip to content

Commit

Permalink
update: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiMeow committed Sep 12, 2023
1 parent dd9e85a commit c9ed939
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@
"appendix":{
"geo": "杭电生活区32号楼"
},
"html":""
"customNode":{
"itemStyle":{
"color":"#d83b01"
}
}
}
```

目前支持上述字段,display必填,html可以覆盖tooltip的所有内容。
| 字段 | 解释 |
| ---------- | ----------------------------------------------------------------- |
| display | 展示名称 |
| appendix | 附加tooltip内容,请使用 map[string]string 的格式 |
| customNode | 参考<https://echarts.apache.org/zh/option.html#series-graph.data> |

前面两个选项是提供给想要特效但是不像看echarts的懒狗的,后面的customNode的属性会被合并到as的那个node,

这已经可以修改很多配置了,后续可能会开放模板渲染,提供一些计算功能

0 comments on commit c9ed939

Please sign in to comment.