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

折线图双Y轴怎么设置左右轴分隔线重合 #917

Open
showking1221 opened this issue Jun 9, 2021 · 1 comment
Open

折线图双Y轴怎么设置左右轴分隔线重合 #917

showking1221 opened this issue Jun 9, 2021 · 1 comment

Comments

@showking1221
Copy link

image

如图 左右轴的分隔线不在一条水平线上 看起来很乱 有没有办法可以设置重合

Expect 期望结果

左右轴的分割线可以重合

Reproduce 重现示例

@web-mobli
Copy link

web-mobli commented Aug 5, 2021

实际根据策略自动计算出来的刻度可能无法达到想要的效果,这时候可以使用 interval 配合 min、max 强制设定刻度划分,通过单独配置

this.extend={
  yAxis(item){
    item[0].min = 'min';
    item[0].max = 'max;
    item[0].interval = 'interval';
  
    item[1].min = 'min';
    item[1].max = 'max;
    item[1].interval = 'interval';
    return item;
  }
}

min和max需要自己处理,间隔多少根据你需要分成多少断来算

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