fsql commented on issue #12822:
URL:
https://github.com/apache/incubator-echarts/issues/12822#issuecomment-667000843
算了,用element自带的tree了虽然丑爆了
This is an automated message from the Apache Git Service.
To respond to the
fsql commented on issue #12822:
URL:
https://github.com/apache/incubator-echarts/issues/12822#issuecomment-649514941
> `option.series[0]` 之类的
@Ovilia
怎么获取要插入的数据在option.series[0].data中的具体下标呢?用dataIndex来插入吗?能在demo中写一下吗?
fsql commented on issue #12822:
URL:
https://github.com/apache/incubator-echarts/issues/12822#issuecomment-648675831
@Ovilia 可以帮忙解答一下吗?
This is an automated message from the Apache Git Service.
To respond to the message,
fsql commented on issue #12822:
URL:
https://github.com/apache/incubator-echarts/issues/12822#issuecomment-646449071
> 就是直接改你的 option,dataIndex 对应的是系列中的第 dataIndex 个数据。如果需要进一步帮助,可以创建一个在线 demo。
https://gallery.echartsjs.com/editor.html?c=xBUPEVpczO=1
贴上demo了,82行往后的怎么写?
fsql commented on issue #12822:
URL:
https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645873865
> 建议把之前的 option 保留下来,params 里会有 seriesIndex 之类的可以判断出改哪里的数据。
按照dataIndex修改数据用哪个函数?文档里没找到
This is an
fsql commented on issue #12822:
URL:
https://github.com/apache/incubator-echarts/issues/12822#issuecomment-645831401
> 统一由 `setOption` 处理了,如果有数据改变,就把改变的数据放在参数里。
`
myChart.on("click", reloadTree);
function reloadTree(params)
{
var addData =