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:
@@ -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,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user