antvis/G2

多折线图有4条折线图时其中2折线数据很大,另外两折线数据量很小时,两条数据量小的折线会重叠在坐标值为0的x轴上 #4194

love123724 posted onGitHub

<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • npm test passes
  • benchmarks are included
  • commit message follows commit guidelines
  • documents are updated
Description of change

<!-- Provide a description of the change below this comment. -->


是两种数据量级的数据嘛?如果是,可以 y 轴设置一下 log 类型。

posted by hustcc over 2 years ago

是的,一种是数量到达十万级,另一种数据量是几十。好的,我试试看 谢谢大佬

posted by love123724 over 2 years ago

两种方法:

  1. log
  2. 使用双轴图
posted by hustcc over 2 years ago

请问怎么设置log呀,百度没搜索到

posted by love123724 over 2 years ago

image

posted by hustcc over 2 years ago

好的,谢谢大佬

posted by love123724 over 2 years ago

解决了,谢谢大佬,哈哈

posted by love123724 over 2 years ago

已解决

posted by love123724 over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests