mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:25:57 +00:00
fix(data-vi): add size settings for pie, bar and dualAxes (#5113)
This commit is contained in:
parent
db33645821
commit
be2b7faa1a
@ -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 }) => {
|
||||
|
@ -61,6 +61,7 @@ export class DualAxes extends G2PlotChart {
|
||||
},
|
||||
},
|
||||
},
|
||||
'size',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,7 @@ export class Pie extends G2PlotChart {
|
||||
title: 'colorField',
|
||||
required: true,
|
||||
},
|
||||
'size',
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user