fix(data-vi): dual axes chart displays abnormally (#3881)

This commit is contained in:
YANG QIA 2024-03-30 22:24:42 +08:00 committed by GitHub
parent 89733247bd
commit 198a969bba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,7 @@ export class DualAxes extends G2PlotChart {
getProps({ data, general, advanced, fieldProps }: RenderProps) { getProps({ data, general, advanced, fieldProps }: RenderProps) {
const props = super.getProps({ data, general, advanced, fieldProps }); const props = super.getProps({ data, general, advanced, fieldProps });
return { return {
...lodash.omit(props, ['legend', 'tooltip']), ...lodash.omit(props, ['legend', 'tooltip', 'yField']),
children: children:
props.yField?.map((yField: string, index: number) => { props.yField?.map((yField: string, index: number) => {
return { return {