-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] Binary array data does not work on xaxis but it works on yaxis #18963
Description
Version
5.4
Link to Minimal Reproduction
https://codepen.io/Amir-Amin-Javaheri/pen/LYXaMrO
Steps to Reproduce
If source is set to
var dataset = [
new Float32Array(Uint8Array.from(atob('AACAPwAAAEAAAEBAAACAQAAAoEAAAMBAMzMDQQ=='), c => c.charCodeAt(0)).buffer),
[1, 2, 3, 4, 5, 6, 7],
];
This will not create the expected chart. Note that first dimension contains binary data.
On the other hand, if source is set to
var dataset = [
[1, 2, 3, 4, 5, 6, 7],
new Float32Array(Uint8Array.from(atob('AACAPwAAAEAAAEBAAACAQAAAoEAAAMBAMzMDQQ=='), c => c.charCodeAt(0)).buffer),
];
This will work as expected.
So echarts does not like the first dimension being binary.
Current Behavior
Good case:
https://codepen.io/Amir-Amin-Javaheri/pen/ExOMGRW
Bad case:
https://codepen.io/Amir-Amin-Javaheri/pen/LYXaMrO
Expected Behavior
Any dimension can be binary.
Environment
- OS:
- Browser:
- Framework:Any additional comments?
No response