XYChart: Fix data filter change bug (#80849)

* XYChart: Fix data filter change bug

* If no xAxis set, populate from dims
This commit is contained in:
Drew Slobodnjak 2024-01-19 09:43:05 -08:00 committed by GitHub
parent 65104a7efa
commit 91e747d8ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,9 @@ export const AutoEditor = ({ value, onChange, context }: StandardEditorProps<XYD
} }
} }
} }
if (!v.xAxis) {
v.xAxis = { label: xName, value: xName };
}
} }
return v; return v;
@ -88,6 +91,7 @@ export const AutoEditor = ({ value, onChange, context }: StandardEditorProps<XYD
onChange({ onChange({
...value, ...value,
frame: v?.value!, frame: v?.value!,
x: undefined,
}); });
}} }}
/> />