echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Sampling interfering with stacking

Open zevero opened this issue 5 years ago • 5 comments

Version

4.5.0

Reproduction link

https://jsfiddle.net/u1mj9wfg/1/

Steps to reproduce

Notice the minimum Value in the middle of the Chart beeing 0. Now set the width of the div from 1200 to 1000 and rerun.

What is expected?

Chart is drawn width width 1000 preserving all characteristics.

What is actually happening?

Min Value in the middle of the chart is lost!


This only occurs when two series are stacked. Commenting line 36 will show the minValue as expected.

We were showing critical events in some machines and we discovered that the charts were not reflecting those critical events.

zevero avatar Dec 19 '19 13:12 zevero

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 [email protected]. Please attach the issue link if it's a technical questions.

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

Have a nice day! 🍵

echarts-bot[bot] avatar Dec 19 '19 13:12 echarts-bot[bot]

Could I know: why need to stack these two series?

100pah avatar Dec 24 '19 17:12 100pah

I display generic timeSeries chart from signal values from a complex machine: water pressure, flow rate, temperature, voltage and hundreds more. For each signal I show on different time scales (hourrly, daily) MeanValue, minValue, maxValue. To view the array between minValue and maxValue I produce a grey area stacking minValue plus deltaValue=maxValue-minValue. With legend I can optionally unhide other series, like quartiles, median, derivates, skew etc. A bit like a stock chart. I have mitigated my problem by precalculating hourly and daily values. But still think, this is a bug since stacking makes the sampling option ineffective.

zevero avatar Dec 25 '19 09:12 zevero

TODO fix: (1) dataSampling processor is after dataStack processor. So List#downSample should retrieve data from the __ecstackresult (if exists) dimension rather than the original dimension. (2) Probably we can provide a new sampling option: min-max to reserver both of the characteristics.

100pah avatar Apr 02 '20 18:04 100pah

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.

github-actions[bot] avatar Aug 04 '22 21:08 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Aug 12 '22 21:08 github-actions[bot]