apache / apache/echarts

Series.encode not working for multiple series mapping[Bug]

Open
#16,346 0 comments 0 reactions 0 assignees View on GitHub
bug en pending waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.2.2

### Link to Minimal Reproduction

https://jsfiddle.net/uLhqmvsy/1/

### Steps to Reproduce

1. Create bar chart using dataset, with source as column by column key-value array
2. Now to try to use series.encode to plot multiple series as given in docs but it doesn't plot multiple series

### Current Behavior

Usign series.encode to plot multiple series, in the following manner as given in docs but it is not working

`series: {
type: 'xxx',
dimensions: ['date', 'open', 'close', 'highest', 'lowest'],
encode: {
x: 'date',
y: ['open', 'close', 'highest', 'lowest']
}
}`

### Expected Behavior

It should plot series if we are using array to pass mulitple dimensions

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.