apache / apache/echarts

[Bug] Missed type property for Typescript on EChartsOption

Open
#20,394 2 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/fervent-euclid-kkws7t?file=%2Fsrc%2Findex.ts%3A3%2C23

### Steps to Reproduce

1. Use base example
2. Use property `option.xAxis.data` in option: EChartsOption with Typescript

### Current Behavior

I have error for use property data in option: EChartsOption
`Property 'data' does not exist on type 'XAXisOption | XAXisOption[]'.`

### Expected Behavior

Types for EChartsOption correct with all options.

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.