G2Plot
G2Plot copied to clipboard
🐛 [BUG] 分组柱状图仅有一组数据时,与dodgePadding属性冲突,导致不渲染柱图
🐛 Bug description
分组柱状图仅有一组数据时,与dodgePadding属性冲突,导致不渲染柱图
📷 Step to reproduce
import { Column } from '@antv/g2plot';
const data = [
{
name: 'London',
月份: 'Jan.',
月均降雨量: 18.9,
},
{
name: 'Berlin',
月份: 'Jan.',
月均降雨量: 12.4,
},
];
const plot = new Column('container', {
data,
isGroup: true,
dodgePadding: 40,
xField: '月份',
yField: '月均降雨量',
seriesField: 'name',
interactions: [{ type: 'element-selected' }]
});
plot.render();
🏞 Expected result
🚑 Any additional [like screenshots]
- G2Plot Version:
- Platform:
这个我也遇到过,只能暂时去掉dodgePadding这个属性
2024年了 有解决方法了吗
2025了,这个bug也不修复啦