antvis/G2

关于-度量类型和theme主题设置的bug #4706

cow-Rong 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 -->

我设置了view的 theme: { columnWidthRatio: 1, } 但是这个柱图却显示有空隙 image debugger源码时候发现因为x轴是连续数字自动转成liner类型 所以我又设置x轴强制为离散的cat度量类型 type: 'cat' 结果整个图形又错乱了 image

请问各位大佬,有谁知道如何设置正确的度量类型吗?

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. -->


Fund this Issue

$0.00
Funded

Pull requests