Skip to content

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

@amirajv

Description

@amirajv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions