pumpkinduan commented on issue #14358:
URL: https://github.com/apache/echarts/issues/14358#issuecomment-786519177
> data 的格式是下面这样
>
> ```ts
> [
> [1, 2, 3, 4] // 每个数据项都是一个多维数据的数组
> ]
> ```
>
> ```ts
> [
> // 每个数据项是一个对象,其中 value 是包含多维数据的数组,其它属性可以是 itemStyle
设置样式,也可以是其它自己临时存放的并不是给 echarts 用的东西
> {
> value: [1, 2, 3, 4]
> }
> ]
> ```
**您好,很感谢您的回复! 还请在看看下面的现象**
传递的data数组格式如下图,它在5.x版本中是可以正常渲染出来的,不过ts类型会报错,也就是上面我发的图
其中,索引为 2和3的项是临时存放的对象,

[参照官方文档](https://echarts.apache.org/zh/option.html#series-line.data.value)
```
[
12,
34,
{
value : 56,
//自定义标签样式,仅对该数据项有效
label: {},
//自定义特殊 itemStyle,仅对该数据项有效
itemStyle:{}
},
10
]
// 或
[
[12, 33],
[34, 313],
{
value: [56, 44],
label: {},
itemStyle:{}
},
[10, 33]
]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]