[Bug] 坐标轴能否显示固定设置的刻度,如X轴的刻度设置为[0.25,0.75,1],类似这个问题所提出的https://github.com/apache/echarts/issues/4678,目前echart能实现吗?
Version
5.2.2
Link to Minimal Reproduction
No response
Steps to Reproduce
https://echarts.apache.org/examples/zh/editor.html?c=parallel-simple 例如这个demo,期望price项 显示为[0.25,0.75,1],数字之间没有规律,只是希望设置成固定值
Current Behavior
平行坐标系: 坐标轴type=value时,坐标轴的刻度只能按min,max 等间距的去设置刻度,不能固定成某几个固定的刻度; 坐标轴type=category时,坐标轴可以显示固定的刻度,但是值分布在坐标轴上显示不出数字的真实含义
Expected Behavior
平行坐标系: 坐标轴type=value时,坐标轴的刻度能设定成固定的值:[0,0.5,1,1.5],数字之间没有规律;
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
@ziyingjing 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
[Bug] Can the coordinate axis display a fixed scale, such as the X-axis scale is set to [0.25, 0.75, 1], similar to this question https://github.com/apache/echarts/issues/4678, Can echart be implemented now?
BODY
Version
5.2.2
Link to Minimal Reproduction
No response
Steps to Reproduce
https://echarts.apache.org/examples/en/editor.html?c=parallel-simple For example, in this demo, the expected price item is displayed as [0.25, 0.75, 1], there is no pattern between the numbers, but I just want to set it to a fixed value
Current Behavior
Parallel coordinate system: When the coordinate axis type=value, the scale of the coordinate axis can only be set at equal intervals of min and max, and cannot be fixed to several fixed scales; When the coordinate axis type=category, the coordinate axis can display a fixed scale, but the value distribution on the coordinate axis does not show the true meaning of the numbers
Expected Behavior
Parallel coordinate system: When the coordinate axis type=value, the scale of the coordinate axis can be set to a fixed value: [0, 0.5, 1, 1.5], and there is no pattern between the numbers;
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
可以的,相当于 ['Excellent', 'Good', 'OK', 'Bad'] 例子,写成字符串形式即可
可能我没描述清楚,我的诉求是我能坐标轴的刻度可以写死成固定的值,但是设置data能按着坐标轴的实际所属区间显示

如下面这张图


======================================
我写成了['0','0.5','1','1.5'],坐标轴是可以展示成我设定的固定值,但是当设置data的时候,如,[0.2,0,3]...,series只能 显示到坐标轴的'0'-'0.5'的中间位置,并不能按实际的值所属区间展示
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.
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!