Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chart.axis() 中 grid 回调函数返回 null 时无效,网格线仍然绘制 #437

Closed
simaQ opened this issue Dec 5, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@simaQ
Copy link
Contributor

simaQ commented Dec 5, 2018

  • F2 Version: 3.3.1
  • Platform:
  • Mini Showcase(like screenshots):
  • CodePen Link:

将官网 demo: https://antv.alipay.com/zh-cn/f2/3.x/demo/radar/line.html 中相关代码替换为:

chart.axis('score', {
  label: function label(text, index, total) {
    if (index === total - 1) {
      return null;
    }
    return {
      top: true
    };
  },
  grid(text) {
    if (text === '40') {
        return {
           type: 'arc',
          lineDash: null,
          stroke: 'red'
        }
    }
    return null;
  }
});

image

@simaQ simaQ added the bug label Dec 5, 2018
@simaQ simaQ self-assigned this Dec 5, 2018
@simaQ simaQ added this to the 3.3.2 milestone Dec 5, 2018
@simaQ simaQ closed this as completed in 717f2bf Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant