apache / apache/echarts

[Bug] XAXisOption Missing OrdinalRawValue TextCommonOption type

Open
#21,272 4 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

6.0.0

### Link to Minimal Reproduction

-

### Steps to Reproduce

Image

```
export const useChartOptionLine = (
xData: (
| OrdinalRawValue
| {
value: OrdinalRawValue;
textStyle?: TextCommonOption;
}
)[],
yData: number[]
): ECOption => {
return {
tooltip: { trigger: 'axis' },
xAxis: {
type: 'category',
data: xData,
axisTick: { alignWithLabel: true },
boundaryGap: false
},
yAxis: { type: 'value' },
series: [
{
data: yData,
type: 'line',
markPoint: {
data: markPointData
}
}
]
};
};

```

### Current Behavior

-

### Expected Behavior

-

### 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.