apache / apache/echarts

[Bug] minInterval do not work when set `alignTicks:true` for multiple yAxis

Open
#18,876 1 comment 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.4.2

### Link to Minimal Reproduction

https://codepen.io/chellhoo/pen/dyQZxxx

### Steps to Reproduce

1. show multiple yAxis and set `alignTicks: true`
2. set `minInterval: 1` for the second yAxis
3. let the data interval of the second series small

```
{
yAxis: [
{
type: 'value',
name: 'Precipitation',
alignTicks: true,
},
{
type: 'value',
name: 'Temperature',

// expect to show integer
minInterval: 1,
alignTicks: true,
},
],
series: [
// ...
{
name: 'Temperature',
type: 'line',
yAxisIndex: 1,

// data
data: [1],
},
]
}
```

### Current Behavior

in the second yAxis, its axis label show as decimal

### Expected Behavior

expect to show integer in the second yAxis

### Environment

_No response_

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