apache / apache/echarts

[Bug] xAxis.axisTick last tick on xAxis can not be turned off with an interval function

Open
#19,365 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.4.3

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/sample-problem-interval-py77gg?file=%2Fsrc%2Findex.js

### Steps to Reproduce

1. Preview the Chart in Codesandbox.
2. Notice that the 1st xAxis has axisTicks on the 2 and 3 index of the data. There is no way to turn off the last axisTick.
3.
![Screenshot 2023-12-06 at 9 27 45 AM](https://github.com/apache/echarts/assets/42974071/26e56e91-a00c-4ea8-b506-1110c5ff6c39)

### Current Behavior

Can not turn off last axisTick with interval function.

### Expected Behavior

Ability to programmatically turn off the last axisTick mark.

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