apache / echarts

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

[Bug] Can't automatically calculate correct max value in parallelAxis while datas have multiple categories #18082

Open jarvis000000 opened 1 year ago

jarvis000000 commented 1 year ago

Version

5.4.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=parallel-aqi

Steps to Reproduce

  1. Delete some datas from dataBJ. image

  2. The max value and min value in parallelAxis can only calculate by datas in dataBJ. image

Current Behavior

Can't automatically set correct max value in parallelAxis while datas have multiple categories.

Expected Behavior

The max value and min value in parallelAxis calculate by all datas.

Environment

- OS: Windows 11
- Browser: Chrome 108.0.5359.125
- Framework: Vue@3

Any additional comments?

No response

helgasoft commented 1 year ago

Yes, it seems the auto-calculated min and max values of all axes come from the first series (dataBJ) only.
Other series (dataGZ, dataSH) are not taken into account, so min/max values have to be added manually:

parallelAxis: [
        {dim: 0, name: schema[0].text, min: ?, max: ?},
        {dim: 1, name: schema[1].text, min: ?, max: ?}, ...
],
jarvis000000 commented 1 year ago

Thanks, I added the min/max values manually. Is there any plan to fix this? I think them have to be auto-aclculated by all series when option whithout them.

zym0110 commented 1 year ago

这个问题 哪个版本可以修复呢,5以下的版本好像都可以