fix(data-vi): add size settings for pie, bar and dualAxes (#5113)

This commit is contained in:
YANG QIA 2024-08-23 10:55:10 +08:00 committed by GitHub
parent db33645821
commit be2b7faa1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,12 @@ import { ChartType } from '../chart';
export class Bar extends G2PlotChart {
constructor() {
super({ name: 'bar', title: 'Bar Chart', Component: G2PlotBar, config: ['isGroup', 'isStack', 'isPercent'] });
super({
name: 'bar',
title: 'Bar Chart',
Component: G2PlotBar,
config: ['isGroup', 'isStack', 'isPercent', 'size'],
});
}
init: ChartType['init'] = (fields, { measures, dimensions }) => {

View File

@ -61,6 +61,7 @@ export class DualAxes extends G2PlotChart {
},
},
},
'size',
];
}

View File

@ -27,6 +27,7 @@ export class Pie extends G2PlotChart {
title: 'colorField',
required: true,
},
'size',
];
}