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