Skip to content

Commit a3dcb6f

Browse files
committed
fix(plots): 解决 tooltip 展示异常
1 parent d48b593 commit a3dcb6f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const DEFAULT_POINT_CONFIG: PointConfig = {
1212
// TODO: 黑色主题下怎么处理?
1313
fill: 'white',
1414
},
15+
tooltip: false,
1516
};
1617

1718
export const DEFAULT_AXIS_CONFIG: AxisConfig = {

packages/storybook/stories/Plots/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)