Skip to content

Commit

Permalink
fix: sort nominal domain
Browse files Browse the repository at this point in the history
  • Loading branch information
islxyqwe committed May 7, 2024
1 parent 0c346de commit 477c346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graphic-walker/src/components/painter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const AggPainterContent = (props: {
);
rerender();
};
const handleDraw = (e: ScenegraphEvent, item: Item<any> | null | undefined) => {
const handleDraw = (e: ScenegraphEvent) => {
e.stopPropagation();
e.preventDefault();
const paint = (x: number, y: number) => {
Expand Down Expand Up @@ -921,7 +921,7 @@ const Painter = ({ themeConfig, themeKey }: { themeConfig?: GWGlobalConfig; them
};
} else {
const res = await fieldStat(compuation, f, { range: false, values: true, valuesMeta: false }, allFields);
const value = res.values.map((x) => x.value);
const value = res.values.map((x) => x.value).sort();
return {
domain: {
type: 'nominal',
Expand Down

0 comments on commit 477c346

Please sign in to comment.