Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Binary array data does not work on xaxis but it works on yaxis #18963

Closed
amirajv opened this issue Aug 5, 2023 · 0 comments · Fixed by #19035
Closed

[Bug] Binary array data does not work on xaxis but it works on yaxis #18963

amirajv opened this issue Aug 5, 2023 · 0 comments · Fixed by #19035
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@amirajv
Copy link

amirajv commented Aug 5, 2023

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

@amirajv amirajv added the bug label Aug 5, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant