We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5f8ec3 commit 3bc7105Copy full SHA for 3bc7105
README.md
@@ -21,29 +21,15 @@ import React, { useRef } from 'react'
21
import { LineChart, LineChartProps } from '@opd/g2plot-react'
22
23
const config: LineChartProps = {
24
- height: 400,
25
- title: {
26
- visible: true,
27
- text: '配置折线数据点样式',
28
- },
29
- description: {
30
31
- text: '自定义配置趋势线上数据点的样式',
32
33
- padding: 'auto',
34
- forceFit: true,
+ height: 350,
+ autoFit: true,
35
xField: 'year',
36
yField: 'value',
37
- label: {
38
39
- type: 'point',
40
41
- point: {
42
43
- size: 5,
44
45
- xAxis: {
46
- tickCount: 10,
+ smooth: true,
+ meta: {
+ value: {
+ max: 15,
+ },
47
},
48
data: [
49
{ year: '1991', value: 3 },
0 commit comments