adaelixir opened a new pull request, #20110:
URL: https://github.com/apache/echarts/pull/20110
<!-- Please fill in the following information to help us review your PR more
efficiently. -->
## Brief Information
This pull request is in the type of:
- [ ] bug fixing
- [x] new feature
- [ ] others
### What does this PR do?
添加"删除坐标轴指定刻度上的分隔线"的功能
Add feature to remove SplitLine on specified tick in coordinate axis
### Fixed issues
#20053
## Details
### Before: What was the problem?
用户无法自定义删除任意刻度上的分割线
当 xAxis 选项中的 splitline 属性与 yAxis 选项中的 axisLine 属性同时设置时,两条线会在 yAxis 轴线所在的位置重叠
User cannot customize the deletion of dividing lines on any scale.
While splitline attr in xAxis options and axisLine atrr in yAxis options set
concurrently, two lines from each other overlapper in the position where yAxis
axisline lies.
### After: How does it behave after the fixing?
用户可以在 `hiddenTicks` 数组中添加要删除的刻度索引,从而删除对应的分割线
User can add the tick index to be deleted in the hiddenTicks array to delete
the corresponding dividing line.
```javascript
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
splitLine: {
show: true,
hiddenTicks: [0,1,2,5,7],
lineStyle: { color: 'black', width:3 }
},
```
<img width="971" alt="截屏2024-07-03 16 55 23"
src="https://github.com/apache/echarts/assets/55272646/bd0deea1-58bb-4948-b071-5a7342746333">
### Note
在调试代码的过程中发现`ticksCoords`数组中没有给刻度线右侧的点设置`tickValue`,这会影响在后续查询隐藏线条的绘制,所以修改了
Axis.ts 的`getTicksCoords`方法
While debugging the code, I found that the `ticksCoords` array did not set
`tickValue` for the points on the left and right sides of the tick mark, which
would affect the drawing of hidden lines in subsequent queries, so I modified
the `getTicksCoords` method of Axis.ts

## Document Info
One of the following should be checked.
- [ ] This PR doesn't relate to document changes
- [x] The document should be updated later
- [ ] The document changes have been made in apache/echarts-doc#xxx
## Misc
### ZRender Changes
- [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
### Related test cases or examples to use the new APIs
N.A.
## Others
### Merging options
- [ ] Please squash the commits into a single one when merging.
### Other information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]