Skip to content

Commit 99b9f63

Browse files
authored
chore: fix customized stock demo typo (#3564)
1 parent ec015ea commit 99b9f63

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

site/examples/plugin/multi-view/demo/customized-stock.jsx

+10-11
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,13 @@ const DemoStock = () => {
3131
slider: {},
3232
data,
3333
plots: [
34-
{
35-
type: 'stock',
36-
// 共享顶层 data
37-
top: true,
38-
options: {
39-
xField: 'trade_date',
40-
yField: ['open', 'close', 'high', 'low'],
41-
},
42-
},
4334
{
4435
type: 'line',
4536
// 共享顶层 data
4637
top: true,
4738
options: {
4839
xField: 'trade_date',
4940
yField: 'amount',
50-
yAxis: false,
5141
yAxis: {
5242
type: 'log',
5343
grid: null,
@@ -77,6 +67,15 @@ const DemoStock = () => {
7767
color: '#5FB1EE',
7868
},
7969
},
70+
{
71+
type: 'stock',
72+
// 共享顶层 data
73+
top: true,
74+
options: {
75+
xField: 'trade_date',
76+
yField: ['open', 'close', 'high', 'low'],
77+
},
78+
},
8079
],
8180
annotations: [
8281
{
@@ -90,7 +89,7 @@ const DemoStock = () => {
9089
content: '顶峰值',
9190
style: {
9291
fontSize: 13,
93-
}
92+
},
9493
},
9594
line: {
9695
length: 12,

0 commit comments

Comments
 (0)