You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "MrZhouZh (via GitHub)" <gi...@apache.org> on 2023/09/08 06:51:29 UTC
[GitHub] [echarts] MrZhouZh commented on issue #9112: 折线图 axisPointer为type: 'cross'时,是否有吸附到线上呢
MrZhouZh commented on issue #9112:
URL: https://github.com/apache/echarts/issues/9112#issuecomment-1711166826
> ```js
> option = {
> title: {
> text: 'Awesome Chart'
> },
> xAxis: {
> data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
> axisPointer: {
> show: true,
> snap: true
> }
> },
> yAxis: {
> axisPointer: {
> show: true,
> snap: true
> }
> },
> series: [{
> type: 'line',
> data:[220, 182, 191, 234, 290, 330, 310]
> }]
> };
> ```
这个不能准确吸附(十字星只对准X轴对应的那一条数据), 建议用 markLine
--
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