You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/03/14 12:51:03 UTC
[GitHub] [echarts] pissang commented on issue #16675: [Feature] AxisPointer snapping
pissang commented on issue #16675:
URL: https://github.com/apache/echarts/issues/16675#issuecomment-1066747635
Some ideas:
1. `tooltip.snap` should also be provided. When `axisPointer` is not used like in the case https://echarts.apache.org/examples/zh/editor.html?c=scatter-clustering. We can still snap the tooltip to the data.
2. When `tooltip.snap` is enabled. The `axisPointer` will also be snapped automatically.
3. When `tooltip` is not used. `axisPointer.snap` will be used to determine how to snap the axisPointer.
And for the configurations in the proposal. I'd suggest to avoid using access syntax `xxx.xxx` because it's not type friendly and complex to parse. We usually use separate configs.
For example:
To specify the dimension:
```ts
snap: true,
snapDimension: 'close'
```
To specify the series:
```ts
snap: true,
snapSeriesName: 'firstSeries'
snapSeriesIndex: 0
```
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org