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

坐标轴上的提示文本的颜色怎么定义? #53

Closed
ghost opened this issue Jul 27, 2018 · 1 comment
Closed

坐标轴上的提示文本的颜色怎么定义? #53

ghost opened this issue Jul 27, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 27, 2018

坐标轴上的提示文本的颜色怎么定义,默认是灰色的,如何自定义成别的颜色跟大小?

@simaQ
Copy link
Contributor

simaQ commented Jul 29, 2018

请问你指的是图中蓝色区域的坐标轴文本么?

image

可以参考 API :https://antv.alipay.com/zh-cn/f2/3.x/api/axis.html
坐标轴文本的颜色,直接通过配置 label 属性即可

chart.axis('坐标轴对应的数据字段名', {
  label: {
    fill: 'red'
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant