We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please provide a link by forking these links G2Plot or GitHub repo, a minimal reproduction.
import { Bar } from '@antv/g2plot'; const data = [ { label: 'Mon.', type: 'series1', value: 2800, }, { label: 'Mon.', type: 'series2', value: 2260, }, ]; const stackedBarPlot = new Bar('container', { data, isGroup: true, xField: 'value', yField: 'label', seriesField: 'type', dodgePadding: 4, label: { // 可手动配置 label 数据标签位置 position: 'middle', // 'left', 'middle', 'right' // 可配置附加的布局方法 layout: [ // 柱形图数据标签位置自动调整 { type: 'interval-adjust-position' }, // 数据标签防遮挡 { type: 'interval-hide-overlap' }, // 数据标签文颜色自动调整 { type: 'adjust-color' }, ], }, }); stackedBarPlot.render();
当data数据只有一组时,显示空白;将dodgePadding: 4, 删除后,则显示正常
The text was updated successfully, but these errors were encountered:
标题没有内容吗?
Sorry, something went wrong.
显示是这样的
我是说issue标题.
抱歉,刚刚改了标题
No branches or pull requests
🐛 Bug description [Please make everyone to understand it]
📷 Step to reproduce
当data数据只有一组时,显示空白;将dodgePadding: 4, 删除后,则显示正常
🏞 Expected result
🚑 Any additional [like screenshots]
The text was updated successfully, but these errors were encountered: