Skip to content

Commit 3bc7105

Browse files
committed
docs: update README.md
1 parent a5f8ec3 commit 3bc7105

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

README.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,15 @@ import React, { useRef } from 'react'
2121
import { LineChart, LineChartProps } from '@opd/g2plot-react'
2222

2323
const config: LineChartProps = {
24-
height: 400,
25-
title: {
26-
visible: true,
27-
text: '配置折线数据点样式',
28-
},
29-
description: {
30-
visible: true,
31-
text: '自定义配置趋势线上数据点的样式',
32-
},
33-
padding: 'auto',
34-
forceFit: true,
24+
height: 350,
25+
autoFit: true,
3526
xField: 'year',
3627
yField: 'value',
37-
label: {
38-
visible: true,
39-
type: 'point',
40-
},
41-
point: {
42-
visible: true,
43-
size: 5,
44-
},
45-
xAxis: {
46-
tickCount: 10,
28+
smooth: true,
29+
meta: {
30+
value: {
31+
max: 15,
32+
},
4733
},
4834
data: [
4935
{ year: '1991', value: 3 },

0 commit comments

Comments
 (0)