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

Axis的line如何调整它的stroke-width粗细属性? #3753

Closed
1 task
soupor opened this issue Dec 27, 2021 · 1 comment
Closed
1 task

Axis的line如何调整它的stroke-width粗细属性? #3753

soupor opened this issue Dec 27, 2021 · 1 comment
Assignees

Comments

@soupor
Copy link

soupor commented Dec 27, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

业务上需要调整坐标轴线的粗细,但配置项并无法更改它的stroke-width属性

What does the proposed API look like?

添加stroke-width的配置项

@rainy-25Ghz
Copy link
Contributor

G2 提供了坐标轴的配置接口,主要用于坐标轴样式的配置:

chart.axis("sales",{
  line:{
    style:{
      lineWidth:4,//线宽为4
      stroke:"rgba(217,217,217,1)"//灰色
    }
  }
})

调整AxisOption.line的style属性即可

演示例子

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

2 participants