Skip to content

Commit 9997a29

Browse files
committed
docs: 优化 legend 示例
1 parent 3d56f4d commit 9997a29

File tree

2 files changed

+15780
-12364
lines changed

2 files changed

+15780
-12364
lines changed

packages/storybook/stories/Plots/Area.stories.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,18 @@ export function Basic() {
127127

128128
const config: AreaConfig = {
129129
...sharedConfig,
130-
title: '基础面积图',
130+
title: {
131+
title: '基础面积图',
132+
size: -1,
133+
},
131134
data: basicData,
132135
xField: 'date',
133136
yField: 'value',
134137
colorField: 'country',
135138
legend: {
136139
color: {
137140
x: -24,
138-
y: -38,
141+
y: -16,
139142
layout: {
140143
justifyContent: 'flex-end',
141144
},

0 commit comments

Comments
 (0)