antvis/G2
The issue has been closed
饼图在显示设置scale nice=true 后,某些数据下饼图无法闭合 #3304
tywei90 posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://antv-g2.gitee.io/zh/examples/case/pie#pie3
Steps to reproduce
直接粘贴如下代码运行即可:
import { Chart } from '@antv/g2';
const data = [ { type: '一线城市', value: 3 }, { type: '二线城市', value: 4 }, ]; const chart = new Chart({ container: 'container', autoFit: true, height: 500, }); chart.data(data);
chart.coordinate('theta', { radius: 0.75 }); chart.tooltip({ showMarkers: false });
chart.scale('value', {nice: true});
const interval = chart .interval() .adjust('stack') .position('value') .color('type')
chart.interaction('element-single-selected');
chart.render();
Environment | Info |
---|---|
g2 | 4.1.12 |
System | - |
Browser | - |
<!-- generated by antv-issue-helper. DO NOT REMOVE -->