Skip to content

Commit 88c0a98

Browse files
committed
fix(plots): 修复雷达图坐标系层级问题
1 parent a1d757f commit 88c0a98

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

@sensoro-design/plots/src/components/Radar/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { rgb2arr } from '@antv/util';
2-
import { colorBlue2 } from '../../config';
31
import type { AreaConfig, AxisConfig, PointConfig } from './types';
42

53
export const DEFAULT_AREA_CONFIG: AreaConfig = {
@@ -26,6 +24,7 @@ export const DEFAULT_AXIS_CONFIG: AxisConfig = {
2624
labelSpacing: 4,
2725
gridConnect: 'line',
2826
gridLineWidth: 1,
27+
zIndex: 0,
2928
gridLineDash: [3, 2],
3029
},
3130
};

packages/storybook/stories/Charts/Radar.stories.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export function Basic() {
4141
scale: {
4242
y: { domainMax: 80 },
4343
},
44+
legend: {
45+
color: {
46+
itemMarker: 'hyphenPoint',
47+
layout: {
48+
justifyContent: 'flex-end',
49+
},
50+
},
51+
},
4452
};
4553

4654
// @ts-expect-error 暂时忽略

0 commit comments

Comments
 (0)