apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.31k stars 19.61k forks source link

How to get data when using datasets and transformations? #14642

Open CalvinMau opened 3 years ago

CalvinMau commented 3 years ago

Version

5.0.2

Steps to reproduce

i cannot find a API to get the result after dataset has transformed.

What is expected?

A API or another solution to get the transformed data.

What is actually happening?

Before. we can use the aXis and series data length to control the datazoom. Now. we use the dataset and transform to render the chart. we cannot get the data of current view. so we cannot to control the data-zoom through data. Could you please give some suggestion to us to get the current view data (transformed).

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

Ovilia commented 3 years ago

You cannot get the transformed data. What do you need the data for?

h4de5 commented 3 years ago

in our case, we add a custom series (a polygon) based on the data from each existing line series. think of it like the confidence band, but with the possibility to have values above and below zero.

image

I am trying to rework this now to using datasets and it would be great to have a way to access the data for each series/dataset after the transformation (which is right now a simple filter based on the series name)

100pah commented 3 years ago

@CalvinMau Could we know how do you use the aXis and series data length to control the datazoom ?

ZhengRui commented 2 years ago

You cannot get the transformed data. What do you need the data for?

In my case, I need to get the selected data within brush area, the brushSelected event params only returns seriesIndex and dataIndex, and the corresponding series are using transformed dataset, so I am also wondering how to get the actual data values within brush area?

alexdohm commented 2 years ago

i'm also having the same issue, does anyone have any workarounds?

ZhengRui commented 2 years ago

in my case, i had to implement my own transform method and generate the transformed datasets explicitly and let series points to these transformed datasets

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

h4de5 commented 3 months ago

still an open question