|
16 | 16 | }, |
17 | 17 | "required": ["time", "value"] |
18 | 18 | }, |
19 | | - "description": "Data for line chart, such as, [{ time: '2015', value: 23 }, { time: '2016', value: 32 }]." |
| 19 | + "description": "Data for line chart, it should be an array of objects, each object contains a `time` field and a `value` field, such as, [{ time: '2015', value: 23 }, { time: '2016', value: 32 }]." |
20 | 20 | }, |
21 | 21 | "stack": { |
22 | 22 | "type": "boolean", |
23 | 23 | "default": false, |
24 | 24 | "description": "Whether stacking is enabled. When enabled, line charts require a 'group' field in the data." |
25 | 25 | }, |
| 26 | + "theme": { |
| 27 | + "default": "default", |
| 28 | + "description": "Set the theme for the chart, optional, default is 'default'.", |
| 29 | + "enum": ["default", "academy"], |
| 30 | + "type": "string" |
| 31 | + }, |
26 | 32 | "style": { |
27 | 33 | "description": "Custom style configuration for the chart.", |
28 | 34 | "properties": { |
| 35 | + "lineWidth": { |
| 36 | + "description": "Line width for the lines of chart, such as 4.", |
| 37 | + "type": "number" |
| 38 | + }, |
29 | 39 | "backgroundColor": { |
30 | 40 | "description": "Background color of the chart, such as, '#fff'.", |
31 | 41 | "type": "string" |
|
37 | 47 | }, |
38 | 48 | "type": "array" |
39 | 49 | }, |
40 | | - "lineWidth": { |
41 | | - "description": "Line width for the lines of chart, such as 4.", |
42 | | - "type": "number" |
| 50 | + "texture": { |
| 51 | + "default": "default", |
| 52 | + "description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.", |
| 53 | + "enum": ["default", "rough"], |
| 54 | + "type": "string" |
43 | 55 | } |
44 | 56 | }, |
45 | 57 | "type": "object" |
46 | 58 | }, |
47 | | - "theme": { |
48 | | - "default": "default", |
49 | | - "description": "Set the theme for the chart, optional, default is 'default'.", |
50 | | - "enum": ["default", "academy"], |
51 | | - "type": "string" |
52 | | - }, |
53 | | - "texture": { |
54 | | - "default": "default", |
55 | | - "description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.", |
56 | | - "enum": ["default", "rough"], |
57 | | - "type": "string" |
58 | | - }, |
59 | 59 | "width": { |
60 | 60 | "type": "number", |
61 | 61 | "description": "Set the width of chart, default is 600.", |
|
0 commit comments