echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open jarvis000000 opened this issue 3 years ago • 4 comments

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

jarvis000000 avatar Dec 20 '22 08:12 jarvis000000

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: ?}, ...
],

helgasoft avatar Dec 29 '22 21:12 helgasoft

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.

jarvis000000 avatar Dec 30 '22 02:12 jarvis000000

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

zym0110 avatar Apr 24 '23 02:04 zym0110

I'm still facing this issue that the max value is only calculated based ont he first series, and doesn't respect the remaining ones. Did someone find a workaround besides doing a manual calculation for min and max? In case you do it manually, how does the function look you're using to process the min and max

Cahllagerfeld avatar Nov 26 '24 14:11 Cahllagerfeld