整理代码更新文档

This commit is contained in:
monitor1394
2020-06-12 09:22:51 +08:00
parent 42980e87e3
commit eccd5a8995
11 changed files with 47 additions and 54 deletions

View File

@@ -195,13 +195,13 @@
* `Corss`:十字准星指示器。坐标轴显示`Label`和交叉线。
* `formatter`:提示框内容字符串模版格式器。支持用 `\n` 换行。当`formatter`不为空时,优先使用`formatter`,否则使用`itemFormatter`
* 模板变量有`{.}``{a}``{b}``{c}``{d}`
* `{.}`表示带动态颜色的圆点。
* `{a}`系列名`serie``name`
* `{b}`为数据项`serieData``name`,或者类目值(如折线图的`X`轴)。
* `{c}`为数值。
* `{d}`为百分比值,注意不带`%`号。
* `{.}`为当前所指示或`index``0``serie`的对应颜色的圆点。
* `{a}`当前所指示或`index``0``serie`系列名`name`
* `{b}`当前所指示或`index``0``serie`数据项`serieData``name`,或者类目值(如折线图的`X`轴)。
* `{c}`当前所指示或`index``0``serie``y`维(`dimesion``1`)的数值。
* `{d}`当前所指示或`index``0``serie``y`维(`dimesion``1`百分比值,注意不带`%`号。
* `{.1}`表示指定`index``1``serie`对应颜色的圆点。
* `{a1}``{b1}``{c1}`中的`1`表示指定`index``1``serie``{a}`默认`index``0``serie`
* `{a1}``{b1}``{c1}`中的`1`表示指定`index``1``serie`
* `{c1:2}`表示索引为`1``serie`的当前指示数据项的第`3`个数据一个数据项有多个数据index为`2`表示第`3`个数据)。
* `{c1:2-2}`表示索引为`1``serie`的第`3`个数据项的第`3`个数据(也就是要指定第几个数据项时必须要指定第几个数据)。
* `{d1:2:f2}`表示单独指定了数值的格式化字符串为`f2`(不指定时用`numericFormatter`)。