echarts 如何读取dataset中转换后的数据

xhv8bpkk  于 2022-11-02  发布在  Echarts
关注(0)|答案(8)|浏览(313)

What problem does this feature solve?

如何读取dataset中转换后的数据

What does the proposed API look like?

none

w8biq8rn

w8biq8rn1#

@mcxinyu It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

How to read transformed data in dataset

BODY

What problem does this feature solve?

How to read transformed data in dataset

What does the proposed API look like?

none

nr7wwzry

nr7wwzry3#

same question here

Where?

jfewjypa

jfewjypa4#

我最后没办法,只好自己实现transform的逻辑显式生成了dataset插入到option.dataset里面

9cbw7uwe

9cbw7uwe5#

哦,这样会很慢呀,而且option会很长...

ctrmrzij

ctrmrzij6#

我现在数据量不是很大,就是几个map reduce 的操作,不知道echarts的transform实现是不是优化过的

mnemlml8

mnemlml87#

其实我是想在手指点击折线图的时候拿到对应data Y轴的数值。如果没办法拿到transform的数据,能不能拿到Y轴的值呢?

qgzx9mmu

qgzx9mmu8#

我的问题是获取brush区域里面点的数据,这个区域的大小本身是可以通过brush的area里面的coordRange得到。关于你的问题,在点击折线图时,你可以监听鼠标事件,鼠标事件的params里面是有你要的数据的。

chart.on('click', 'series', (params) => console.log(params.data))

相关问题