@kryptosai/mcp-observatory 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/src/commands/init-ci.d.ts +3 -0
- package/dist/src/commands/init-ci.js +24 -12
- package/dist/src/commands/init-ci.js.map +1 -1
- package/dist/src/reporters/pr-comment.js +6 -2
- package/dist/src/reporters/pr-comment.js.map +1 -1
- package/docs/certification-campaign-template.md +2 -2
- package/docs/mcp-safety-report-latest.md +12 -7
- package/docs/mcp-server-safety-index.md +56 -80
- package/docs/methodology.md +90 -0
- package/docs/metrics-dashboard.md +105 -0
- package/docs/paid-pilot-offer.md +21 -5
- package/docs/project-case-study.md +12 -8
- package/docs/proof.md +28 -15
- package/docs/public-post-drafts.md +18 -6
- package/docs/publish-readiness.md +1 -5
- package/docs/reference-evaluations.md +1 -1
- package/docs/safety-index/artifacts/antv-chart-server.json +2765 -0
- package/docs/safety-index/artifacts/antv-chart-server.md +156 -0
- package/docs/safety-index/artifacts/browsermcp-server.json +416 -0
- package/docs/safety-index/artifacts/browsermcp-server.md +163 -0
- package/docs/safety-index/artifacts/context7-server.json +286 -0
- package/docs/safety-index/artifacts/context7-server.md +163 -0
- package/docs/safety-index/artifacts/everything-server.json +482 -0
- package/docs/safety-index/artifacts/everything-server.md +163 -0
- package/docs/safety-index/artifacts/executeautomation-playwright-server.json +955 -0
- package/docs/safety-index/artifacts/executeautomation-playwright-server.md +163 -0
- package/docs/safety-index/artifacts/filesystem-server.json +583 -0
- package/docs/safety-index/artifacts/filesystem-server.md +156 -0
- package/docs/safety-index/artifacts/memory-server.json +469 -0
- package/docs/safety-index/artifacts/memory-server.md +156 -0
- package/docs/safety-index/artifacts/opentofu-server.json +387 -0
- package/docs/safety-index/artifacts/opentofu-server.md +163 -0
- package/docs/safety-index/artifacts/playwright-mcp-server.json +919 -0
- package/docs/safety-index/artifacts/playwright-mcp-server.md +156 -0
- package/docs/safety-index/artifacts/promptopia-server.json +442 -0
- package/docs/safety-index/artifacts/promptopia-server.md +156 -0
- package/docs/safety-index/artifacts/puppeteer-server.json +377 -0
- package/docs/safety-index/artifacts/puppeteer-server.md +163 -0
- package/docs/safety-index/artifacts/ref-tools-server.json +262 -0
- package/docs/safety-index/artifacts/ref-tools-server.md +156 -0
- package/docs/safety-index/artifacts/sequential-thinking-server.json +286 -0
- package/docs/safety-index/artifacts/sequential-thinking-server.md +156 -0
- package/docs/safety-index/maintainer-note-template.md +25 -0
- package/docs/safety-index/targets.json +192 -0
- package/package.json +12 -9
|
@@ -0,0 +1,2765 @@
|
|
|
1
|
+
{
|
|
2
|
+
"artifactType": "run",
|
|
3
|
+
"schemaVersion": "1.0.0",
|
|
4
|
+
"gate": "pass",
|
|
5
|
+
"runId": "run_2026-06-24T020741323Z_41a77db3",
|
|
6
|
+
"createdAt": "2026-06-24T02:07:41.323Z",
|
|
7
|
+
"toolVersion": "0.24.0",
|
|
8
|
+
"target": {
|
|
9
|
+
"targetId": "antv-chart-server",
|
|
10
|
+
"adapter": "local-process",
|
|
11
|
+
"command": "npx",
|
|
12
|
+
"args": [
|
|
13
|
+
"-y",
|
|
14
|
+
"@antv/mcp-server-chart"
|
|
15
|
+
],
|
|
16
|
+
"cwd": ".",
|
|
17
|
+
"metadata": {
|
|
18
|
+
"package": "@antv/mcp-server-chart",
|
|
19
|
+
"purpose": "mcp-safety-index",
|
|
20
|
+
"riskClass": "Generated artifacts",
|
|
21
|
+
"failureClass": "Artifact-producing tools",
|
|
22
|
+
"whyItMatters": "Visualization servers produce files or structured outputs agents may pass into workflows."
|
|
23
|
+
},
|
|
24
|
+
"serverName": "mcp-server-chart",
|
|
25
|
+
"serverVersion": "0.8.x"
|
|
26
|
+
},
|
|
27
|
+
"environment": {
|
|
28
|
+
"platform": "darwin 25.5.0",
|
|
29
|
+
"nodeVersion": "v22.22.1"
|
|
30
|
+
},
|
|
31
|
+
"summary": {
|
|
32
|
+
"total": 7,
|
|
33
|
+
"pass": 5,
|
|
34
|
+
"fail": 0,
|
|
35
|
+
"partial": 0,
|
|
36
|
+
"unsupported": 2,
|
|
37
|
+
"flaky": 0,
|
|
38
|
+
"skipped": 0,
|
|
39
|
+
"gate": "pass"
|
|
40
|
+
},
|
|
41
|
+
"checks": [
|
|
42
|
+
{
|
|
43
|
+
"id": "tools",
|
|
44
|
+
"capability": "tools",
|
|
45
|
+
"status": "pass",
|
|
46
|
+
"durationMs": 2.671415999997407,
|
|
47
|
+
"message": "Advertised capability responded with the minimal expected shape (27 items).",
|
|
48
|
+
"evidence": [
|
|
49
|
+
{
|
|
50
|
+
"endpoint": "tools/list",
|
|
51
|
+
"advertised": true,
|
|
52
|
+
"responded": true,
|
|
53
|
+
"minimalShapePresent": true,
|
|
54
|
+
"itemCount": 27,
|
|
55
|
+
"identifiers": [
|
|
56
|
+
"generate_area_chart",
|
|
57
|
+
"generate_bar_chart",
|
|
58
|
+
"generate_boxplot_chart",
|
|
59
|
+
"generate_column_chart",
|
|
60
|
+
"generate_district_map",
|
|
61
|
+
"generate_dual_axes_chart",
|
|
62
|
+
"generate_fishbone_diagram",
|
|
63
|
+
"generate_flow_diagram",
|
|
64
|
+
"generate_funnel_chart",
|
|
65
|
+
"generate_histogram_chart",
|
|
66
|
+
"generate_line_chart",
|
|
67
|
+
"generate_liquid_chart",
|
|
68
|
+
"generate_mind_map",
|
|
69
|
+
"generate_network_graph",
|
|
70
|
+
"generate_organization_chart",
|
|
71
|
+
"generate_path_map",
|
|
72
|
+
"generate_pie_chart",
|
|
73
|
+
"generate_pin_map",
|
|
74
|
+
"generate_radar_chart",
|
|
75
|
+
"generate_sankey_chart",
|
|
76
|
+
"generate_scatter_chart",
|
|
77
|
+
"generate_treemap_chart",
|
|
78
|
+
"generate_venn_chart",
|
|
79
|
+
"generate_violin_chart",
|
|
80
|
+
"generate_waterfall_chart",
|
|
81
|
+
"generate_word_cloud_chart",
|
|
82
|
+
"generate_spreadsheet"
|
|
83
|
+
],
|
|
84
|
+
"diagnostics": [
|
|
85
|
+
"[MCP-Server-Chart] 2026-06-24T02:07:44.865Z ℹ️ setting up tool handlers...",
|
|
86
|
+
"[MCP-Server-Chart] 2026-06-24T02:07:44.867Z ℹ️ tool handlers set up",
|
|
87
|
+
"[MCP-Server-Chart] 2026-06-24T02:07:44.868Z ✅ Stdio MCP Server started"
|
|
88
|
+
],
|
|
89
|
+
"schemas": {
|
|
90
|
+
"generate_area_chart": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"data": {
|
|
94
|
+
"minItems": 1,
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"properties": {
|
|
99
|
+
"time": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"value": {
|
|
103
|
+
"type": "number"
|
|
104
|
+
},
|
|
105
|
+
"group": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"time",
|
|
111
|
+
"value"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"description": "Data for area 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 }], when stacking is needed for area, the data should contain a `group` field, such as, [{ time: '2015', value: 23, group: 'A' }, { time: '2015', value: 32, group: 'B' }]."
|
|
115
|
+
},
|
|
116
|
+
"stack": {
|
|
117
|
+
"default": false,
|
|
118
|
+
"description": "Whether stacking is enabled. When enabled, area charts require a 'group' field in the data.",
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"style": {
|
|
122
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"backgroundColor": {
|
|
126
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"palette": {
|
|
130
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
131
|
+
"type": "array",
|
|
132
|
+
"items": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"texture": {
|
|
137
|
+
"default": "default",
|
|
138
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"enum": [
|
|
141
|
+
"default",
|
|
142
|
+
"rough"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"lineWidth": {
|
|
146
|
+
"description": "Line width for the lines of chart, such as 4.",
|
|
147
|
+
"type": "number"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"theme": {
|
|
152
|
+
"default": "default",
|
|
153
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"enum": [
|
|
156
|
+
"default",
|
|
157
|
+
"academy",
|
|
158
|
+
"dark"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"width": {
|
|
162
|
+
"default": 600,
|
|
163
|
+
"description": "Set the width of chart, default is 600.",
|
|
164
|
+
"type": "number"
|
|
165
|
+
},
|
|
166
|
+
"height": {
|
|
167
|
+
"default": 400,
|
|
168
|
+
"description": "Set the height of chart, default is 400.",
|
|
169
|
+
"type": "number"
|
|
170
|
+
},
|
|
171
|
+
"title": {
|
|
172
|
+
"default": "",
|
|
173
|
+
"description": "Set the title of chart.",
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"axisXTitle": {
|
|
177
|
+
"default": "",
|
|
178
|
+
"description": "Set the x-axis title of chart.",
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"axisYTitle": {
|
|
182
|
+
"default": "",
|
|
183
|
+
"description": "Set the y-axis title of chart.",
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"required": [
|
|
188
|
+
"data"
|
|
189
|
+
],
|
|
190
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
191
|
+
},
|
|
192
|
+
"generate_bar_chart": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"data": {
|
|
196
|
+
"minItems": 1,
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"category": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"value": {
|
|
205
|
+
"type": "number"
|
|
206
|
+
},
|
|
207
|
+
"group": {
|
|
208
|
+
"type": "string"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"category",
|
|
213
|
+
"value"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"description": "Data for bar chart, such as, [{ category: '分类一', value: 10 }, { category: '分类二', value: 20 }], when grouping or stacking is needed for bar, the data should contain a `group` field, such as, when [{ category: '北京', value: 825, group: '油车' }, { category: '北京', value: 1000, group: '电车' }]."
|
|
217
|
+
},
|
|
218
|
+
"group": {
|
|
219
|
+
"default": false,
|
|
220
|
+
"description": "Whether grouping is enabled. When enabled, bar charts require a 'group' field in the data. When `group` is true, `stack` should be false.",
|
|
221
|
+
"type": "boolean"
|
|
222
|
+
},
|
|
223
|
+
"stack": {
|
|
224
|
+
"default": true,
|
|
225
|
+
"description": "Whether stacking is enabled. When enabled, bar charts require a 'group' field in the data. When `stack` is true, `group` should be false.",
|
|
226
|
+
"type": "boolean"
|
|
227
|
+
},
|
|
228
|
+
"style": {
|
|
229
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
230
|
+
"type": "object",
|
|
231
|
+
"properties": {
|
|
232
|
+
"backgroundColor": {
|
|
233
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"palette": {
|
|
237
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
238
|
+
"type": "array",
|
|
239
|
+
"items": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"texture": {
|
|
244
|
+
"default": "default",
|
|
245
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
246
|
+
"type": "string",
|
|
247
|
+
"enum": [
|
|
248
|
+
"default",
|
|
249
|
+
"rough"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"theme": {
|
|
255
|
+
"default": "default",
|
|
256
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
257
|
+
"type": "string",
|
|
258
|
+
"enum": [
|
|
259
|
+
"default",
|
|
260
|
+
"academy",
|
|
261
|
+
"dark"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"width": {
|
|
265
|
+
"default": 600,
|
|
266
|
+
"description": "Set the width of chart, default is 600.",
|
|
267
|
+
"type": "number"
|
|
268
|
+
},
|
|
269
|
+
"height": {
|
|
270
|
+
"default": 400,
|
|
271
|
+
"description": "Set the height of chart, default is 400.",
|
|
272
|
+
"type": "number"
|
|
273
|
+
},
|
|
274
|
+
"title": {
|
|
275
|
+
"default": "",
|
|
276
|
+
"description": "Set the title of chart.",
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"axisXTitle": {
|
|
280
|
+
"default": "",
|
|
281
|
+
"description": "Set the x-axis title of chart.",
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
"axisYTitle": {
|
|
285
|
+
"default": "",
|
|
286
|
+
"description": "Set the y-axis title of chart.",
|
|
287
|
+
"type": "string"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": [
|
|
291
|
+
"data"
|
|
292
|
+
],
|
|
293
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
294
|
+
},
|
|
295
|
+
"generate_boxplot_chart": {
|
|
296
|
+
"type": "object",
|
|
297
|
+
"properties": {
|
|
298
|
+
"data": {
|
|
299
|
+
"minItems": 1,
|
|
300
|
+
"type": "array",
|
|
301
|
+
"items": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"properties": {
|
|
304
|
+
"category": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"description": "Category of the data point, such as '分类一'."
|
|
307
|
+
},
|
|
308
|
+
"value": {
|
|
309
|
+
"type": "number",
|
|
310
|
+
"description": "Value of the data point, such as 10."
|
|
311
|
+
},
|
|
312
|
+
"group": {
|
|
313
|
+
"description": "Optional group for the data point, used for grouping in the boxplot.",
|
|
314
|
+
"type": "string"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"required": [
|
|
318
|
+
"category",
|
|
319
|
+
"value"
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
"description": "Data for boxplot chart, such as, [{ category: '分类一', value: 10 }] or [{ category: '分类二', value: 20, group: '组别一' }]."
|
|
323
|
+
},
|
|
324
|
+
"style": {
|
|
325
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
326
|
+
"type": "object",
|
|
327
|
+
"properties": {
|
|
328
|
+
"backgroundColor": {
|
|
329
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
"palette": {
|
|
333
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
334
|
+
"type": "array",
|
|
335
|
+
"items": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"startAtZero": {
|
|
340
|
+
"default": false,
|
|
341
|
+
"description": "Whether to start the axis at zero, optional, default is false.",
|
|
342
|
+
"type": "boolean"
|
|
343
|
+
},
|
|
344
|
+
"texture": {
|
|
345
|
+
"default": "default",
|
|
346
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
347
|
+
"type": "string",
|
|
348
|
+
"enum": [
|
|
349
|
+
"default",
|
|
350
|
+
"rough"
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"theme": {
|
|
356
|
+
"default": "default",
|
|
357
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
358
|
+
"type": "string",
|
|
359
|
+
"enum": [
|
|
360
|
+
"default",
|
|
361
|
+
"academy",
|
|
362
|
+
"dark"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
"width": {
|
|
366
|
+
"default": 600,
|
|
367
|
+
"description": "Set the width of chart, default is 600.",
|
|
368
|
+
"type": "number"
|
|
369
|
+
},
|
|
370
|
+
"height": {
|
|
371
|
+
"default": 400,
|
|
372
|
+
"description": "Set the height of chart, default is 400.",
|
|
373
|
+
"type": "number"
|
|
374
|
+
},
|
|
375
|
+
"title": {
|
|
376
|
+
"default": "",
|
|
377
|
+
"description": "Set the title of chart.",
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"axisXTitle": {
|
|
381
|
+
"default": "",
|
|
382
|
+
"description": "Set the x-axis title of chart.",
|
|
383
|
+
"type": "string"
|
|
384
|
+
},
|
|
385
|
+
"axisYTitle": {
|
|
386
|
+
"default": "",
|
|
387
|
+
"description": "Set the y-axis title of chart.",
|
|
388
|
+
"type": "string"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"required": [
|
|
392
|
+
"data"
|
|
393
|
+
],
|
|
394
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
395
|
+
},
|
|
396
|
+
"generate_column_chart": {
|
|
397
|
+
"type": "object",
|
|
398
|
+
"properties": {
|
|
399
|
+
"data": {
|
|
400
|
+
"minItems": 1,
|
|
401
|
+
"type": "array",
|
|
402
|
+
"items": {
|
|
403
|
+
"type": "object",
|
|
404
|
+
"properties": {
|
|
405
|
+
"category": {
|
|
406
|
+
"type": "string"
|
|
407
|
+
},
|
|
408
|
+
"value": {
|
|
409
|
+
"type": "number"
|
|
410
|
+
},
|
|
411
|
+
"group": {
|
|
412
|
+
"type": "string"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": [
|
|
416
|
+
"category",
|
|
417
|
+
"value"
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
"description": "Data for column chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20 }], when grouping or stacking is needed for column, the data should contain a 'group' field, such as, [{ category: 'Beijing', value: 825, group: 'Gas Car' }, { category: 'Beijing', value: 1000, group: 'Electric Car' }]."
|
|
421
|
+
},
|
|
422
|
+
"group": {
|
|
423
|
+
"default": true,
|
|
424
|
+
"description": "Whether grouping is enabled. When enabled, column charts require a 'group' field in the data. When `group` is true, `stack` should be false.",
|
|
425
|
+
"type": "boolean"
|
|
426
|
+
},
|
|
427
|
+
"stack": {
|
|
428
|
+
"default": false,
|
|
429
|
+
"description": "Whether stacking is enabled. When enabled, column charts require a 'group' field in the data. When `stack` is true, `group` should be false.",
|
|
430
|
+
"type": "boolean"
|
|
431
|
+
},
|
|
432
|
+
"style": {
|
|
433
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
434
|
+
"type": "object",
|
|
435
|
+
"properties": {
|
|
436
|
+
"backgroundColor": {
|
|
437
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"palette": {
|
|
441
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
442
|
+
"type": "array",
|
|
443
|
+
"items": {
|
|
444
|
+
"type": "string"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"texture": {
|
|
448
|
+
"default": "default",
|
|
449
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"default",
|
|
453
|
+
"rough"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"theme": {
|
|
459
|
+
"default": "default",
|
|
460
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
461
|
+
"type": "string",
|
|
462
|
+
"enum": [
|
|
463
|
+
"default",
|
|
464
|
+
"academy",
|
|
465
|
+
"dark"
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
"width": {
|
|
469
|
+
"default": 600,
|
|
470
|
+
"description": "Set the width of chart, default is 600.",
|
|
471
|
+
"type": "number"
|
|
472
|
+
},
|
|
473
|
+
"height": {
|
|
474
|
+
"default": 400,
|
|
475
|
+
"description": "Set the height of chart, default is 400.",
|
|
476
|
+
"type": "number"
|
|
477
|
+
},
|
|
478
|
+
"title": {
|
|
479
|
+
"default": "",
|
|
480
|
+
"description": "Set the title of chart.",
|
|
481
|
+
"type": "string"
|
|
482
|
+
},
|
|
483
|
+
"axisXTitle": {
|
|
484
|
+
"default": "",
|
|
485
|
+
"description": "Set the x-axis title of chart.",
|
|
486
|
+
"type": "string"
|
|
487
|
+
},
|
|
488
|
+
"axisYTitle": {
|
|
489
|
+
"default": "",
|
|
490
|
+
"description": "Set the y-axis title of chart.",
|
|
491
|
+
"type": "string"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"required": [
|
|
495
|
+
"data"
|
|
496
|
+
],
|
|
497
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
498
|
+
},
|
|
499
|
+
"generate_district_map": {
|
|
500
|
+
"type": "object",
|
|
501
|
+
"properties": {
|
|
502
|
+
"title": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"description": "The map title should not exceed 16 characters. The content should be consistent with the information the map wants to convey and should be accurate, rich, creative, and attractive."
|
|
505
|
+
},
|
|
506
|
+
"data": {
|
|
507
|
+
"type": "object",
|
|
508
|
+
"properties": {
|
|
509
|
+
"name": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"description": "Keywords for the Chinese name of an administrative region (must be within China), and must be one of China, province, city, district, or county. The name should be more specific and add attributive descriptions, for example, \"西安市\" is better than \"西安\", \"杭州西湖区\" is better than \"西湖区\". It cannot be a specific place name or a vague name, such as \"其它\"."
|
|
512
|
+
},
|
|
513
|
+
"style": {
|
|
514
|
+
"description": "Style settings.",
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"fillColor": {
|
|
518
|
+
"description": "Fill color, rgb or rgba format.",
|
|
519
|
+
"type": "string"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"colors": {
|
|
524
|
+
"description": "Data color list, in rgb or rgba format.",
|
|
525
|
+
"default": [
|
|
526
|
+
"#1783FF",
|
|
527
|
+
"#00C9C9",
|
|
528
|
+
"#F0884D",
|
|
529
|
+
"#D580FF",
|
|
530
|
+
"#7863FF",
|
|
531
|
+
"#60C42D",
|
|
532
|
+
"#BD8F24",
|
|
533
|
+
"#FF80CA",
|
|
534
|
+
"#2491B3",
|
|
535
|
+
"#17C76F"
|
|
536
|
+
],
|
|
537
|
+
"type": "array",
|
|
538
|
+
"items": {
|
|
539
|
+
"type": "string"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"dataType": {
|
|
543
|
+
"description": "The type of the data value, numeric or enumeration type",
|
|
544
|
+
"type": "string",
|
|
545
|
+
"enum": [
|
|
546
|
+
"number",
|
|
547
|
+
"enum"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"dataLabel": {
|
|
551
|
+
"description": "Data label, such as \"GDP\"",
|
|
552
|
+
"type": "string"
|
|
553
|
+
},
|
|
554
|
+
"dataValue": {
|
|
555
|
+
"description": "Data value, numeric string or enumeration string.",
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
558
|
+
"dataValueUnit": {
|
|
559
|
+
"description": "Data unit, such as \"万亿\"",
|
|
560
|
+
"type": "string"
|
|
561
|
+
},
|
|
562
|
+
"showAllSubdistricts": {
|
|
563
|
+
"default": false,
|
|
564
|
+
"description": "Whether to display all subdistricts.",
|
|
565
|
+
"type": "boolean"
|
|
566
|
+
},
|
|
567
|
+
"subdistricts": {
|
|
568
|
+
"description": "Sub-administrative regions are used to display the regional composition or regional distribution of related data.",
|
|
569
|
+
"type": "array",
|
|
570
|
+
"items": {
|
|
571
|
+
"type": "object",
|
|
572
|
+
"properties": {
|
|
573
|
+
"name": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"description": "Keywords for the Chinese name of an administrative region (must be within China), and must be one of China, province, city, district, or county. The name should be more specific and add attributive descriptions, for example, \"西安市\" is better than \"西安\", \"杭州西湖区\" is better than \"西湖区\". It cannot be a specific place name or a vague name, such as \"其它\"."
|
|
576
|
+
},
|
|
577
|
+
"dataValue": {
|
|
578
|
+
"description": "Data value, numeric string or enumeration string.",
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"style": {
|
|
582
|
+
"description": "Style settings.",
|
|
583
|
+
"type": "object",
|
|
584
|
+
"properties": {
|
|
585
|
+
"fillColor": {
|
|
586
|
+
"description": "Fill color, rgb or rgba format.",
|
|
587
|
+
"type": "string"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"required": [
|
|
593
|
+
"name"
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"required": [
|
|
599
|
+
"name"
|
|
600
|
+
],
|
|
601
|
+
"description": "Administrative division data, lower-level administrative divisions are optional. There are usually two scenarios: one is to simply display the regional composition, only `fillColor` needs to be configured, and all administrative divisions are consistent, representing that all blocks are connected as one; the other is the regional data distribution scenario, first determine the `dataType`, `dataValueUnit` and `dataLabel` configurations, `dataValue` should be a meaningful value and consistent with the meaning of dataType, and then determine the style configuration. The `fillColor` configuration represents the default fill color for areas without data. Lower-level administrative divisions do not need `fillColor` configuration, and their fill colors are determined by the `colors` configuration (If `dataType` is \"number\", only one base color (warm color) is needed in the list to calculate the continuous data mapping color band; if `dataType` is \"enum\", the number of color values in the list is equal to the number of enumeration values (contrast colors)). If `subdistricts` has a value, `showAllSubdistricts` must be set to true. For example, {\"title\": \"陕西省地级市分布图\", \"data\": {\"name\": \"陕西省\", \"showAllSubdistricts\": true, \"dataLabel\": \"城市\", \"dataType\": \"enum\", \"colors\": [\"#4ECDC4\", \"#A5D8FF\"], \"subdistricts\": [{\"name\": \"西安市\", \"dataValue\": \"省会\"}, {\"name\": \"宝鸡市\", \"dataValue\": \"地级市\"}, {\"name\": \"咸阳市\", \"dataValue\": \"地级市\"}, {\"name\": \"铜川市\", \"dataValue\": \"地级市\"}, {\"name\": \"渭南市\", \"dataValue\": \"地级市\"}, {\"name\": \"延安市\", \"dataValue\": \"地级市\"}, {\"name\": \"榆林市\", \"dataValue\": \"地级市\"}, {\"name\": \"汉中市\", \"dataValue\": \"地级市\"}, {\"name\": \"安康市\", \"dataValue\": \"地级市\"}, {\"name\": \"商洛市\", \"dataValue\": \"地级市\"}]}, \"width\": 1000, \"height\": 1000}."
|
|
602
|
+
},
|
|
603
|
+
"width": {
|
|
604
|
+
"default": 1600,
|
|
605
|
+
"description": "Set the width of map, default is 1600.",
|
|
606
|
+
"type": "number"
|
|
607
|
+
},
|
|
608
|
+
"height": {
|
|
609
|
+
"default": 1000,
|
|
610
|
+
"description": "Set the height of map, default is 1000.",
|
|
611
|
+
"type": "number"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"required": [
|
|
615
|
+
"title",
|
|
616
|
+
"data"
|
|
617
|
+
],
|
|
618
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
619
|
+
},
|
|
620
|
+
"generate_dual_axes_chart": {
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"categories": {
|
|
624
|
+
"minItems": 1,
|
|
625
|
+
"type": "array",
|
|
626
|
+
"items": {
|
|
627
|
+
"type": "string"
|
|
628
|
+
},
|
|
629
|
+
"description": "Categories for dual axes chart, such as, ['2015', '2016', '2017']."
|
|
630
|
+
},
|
|
631
|
+
"series": {
|
|
632
|
+
"minItems": 1,
|
|
633
|
+
"type": "array",
|
|
634
|
+
"items": {
|
|
635
|
+
"type": "object",
|
|
636
|
+
"properties": {
|
|
637
|
+
"type": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"enum": [
|
|
640
|
+
"column",
|
|
641
|
+
"line"
|
|
642
|
+
],
|
|
643
|
+
"description": "The optional value can be 'column' or 'line'."
|
|
644
|
+
},
|
|
645
|
+
"data": {
|
|
646
|
+
"type": "array",
|
|
647
|
+
"items": {
|
|
648
|
+
"type": "number"
|
|
649
|
+
},
|
|
650
|
+
"description": "When type is column, the data represents quantities, such as [91.9, 99.1, 101.6, 114.4, 121]. When type is line, the data represents ratios and its values are recommended to be less than 1, such as [0.055, 0.06, 0.062, 0.07, 0.075]."
|
|
651
|
+
},
|
|
652
|
+
"axisYTitle": {
|
|
653
|
+
"default": "",
|
|
654
|
+
"description": "Set the y-axis title of the chart series, such as, axisYTitle: '销售额'.",
|
|
655
|
+
"type": "string"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"required": [
|
|
659
|
+
"type",
|
|
660
|
+
"data"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
663
|
+
"description": "Series for dual axes chart, such as, [{ type: 'column', data: [91.9, 99.1, 101.6, 114.4, 121], axisYTitle: '销售额' }, { type: 'line', data: [0.055, 0.06, 0.062, 0.07, 0.075], 'axisYTitle': '利润率' }]."
|
|
664
|
+
},
|
|
665
|
+
"style": {
|
|
666
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
667
|
+
"type": "object",
|
|
668
|
+
"properties": {
|
|
669
|
+
"backgroundColor": {
|
|
670
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
671
|
+
"type": "string"
|
|
672
|
+
},
|
|
673
|
+
"palette": {
|
|
674
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
675
|
+
"type": "array",
|
|
676
|
+
"items": {
|
|
677
|
+
"type": "string"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"startAtZero": {
|
|
681
|
+
"default": false,
|
|
682
|
+
"description": "Whether to start the axis at zero, optional, default is false.",
|
|
683
|
+
"type": "boolean"
|
|
684
|
+
},
|
|
685
|
+
"texture": {
|
|
686
|
+
"default": "default",
|
|
687
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
688
|
+
"type": "string",
|
|
689
|
+
"enum": [
|
|
690
|
+
"default",
|
|
691
|
+
"rough"
|
|
692
|
+
]
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
"theme": {
|
|
697
|
+
"default": "default",
|
|
698
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
699
|
+
"type": "string",
|
|
700
|
+
"enum": [
|
|
701
|
+
"default",
|
|
702
|
+
"academy",
|
|
703
|
+
"dark"
|
|
704
|
+
]
|
|
705
|
+
},
|
|
706
|
+
"width": {
|
|
707
|
+
"default": 600,
|
|
708
|
+
"description": "Set the width of chart, default is 600.",
|
|
709
|
+
"type": "number"
|
|
710
|
+
},
|
|
711
|
+
"height": {
|
|
712
|
+
"default": 400,
|
|
713
|
+
"description": "Set the height of chart, default is 400.",
|
|
714
|
+
"type": "number"
|
|
715
|
+
},
|
|
716
|
+
"title": {
|
|
717
|
+
"default": "",
|
|
718
|
+
"description": "Set the title of chart.",
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
"axisXTitle": {
|
|
722
|
+
"default": "",
|
|
723
|
+
"description": "Set the x-axis title of chart.",
|
|
724
|
+
"type": "string"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"required": [
|
|
728
|
+
"categories",
|
|
729
|
+
"series"
|
|
730
|
+
],
|
|
731
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
732
|
+
},
|
|
733
|
+
"generate_fishbone_diagram": {
|
|
734
|
+
"type": "object",
|
|
735
|
+
"properties": {
|
|
736
|
+
"data": {
|
|
737
|
+
"type": "object",
|
|
738
|
+
"properties": {
|
|
739
|
+
"name": {
|
|
740
|
+
"type": "string"
|
|
741
|
+
},
|
|
742
|
+
"children": {
|
|
743
|
+
"type": "array",
|
|
744
|
+
"items": {
|
|
745
|
+
"type": "object",
|
|
746
|
+
"properties": {
|
|
747
|
+
"name": {
|
|
748
|
+
"type": "string"
|
|
749
|
+
},
|
|
750
|
+
"children": {
|
|
751
|
+
"type": "array",
|
|
752
|
+
"items": {
|
|
753
|
+
"type": "object",
|
|
754
|
+
"properties": {
|
|
755
|
+
"name": {
|
|
756
|
+
"type": "string"
|
|
757
|
+
},
|
|
758
|
+
"children": {
|
|
759
|
+
"type": "array",
|
|
760
|
+
"items": {
|
|
761
|
+
"type": "object",
|
|
762
|
+
"properties": {
|
|
763
|
+
"name": {
|
|
764
|
+
"type": "string"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"required": [
|
|
768
|
+
"name"
|
|
769
|
+
]
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
},
|
|
773
|
+
"required": [
|
|
774
|
+
"name"
|
|
775
|
+
]
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"required": [
|
|
780
|
+
"name"
|
|
781
|
+
]
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"required": [
|
|
786
|
+
"name"
|
|
787
|
+
],
|
|
788
|
+
"description": "Data for fishbone diagram chart which is a hierarchical structure, such as, { name: 'main topic', children: [{ name: 'topic 1', children: [{ name: 'subtopic 1-1' }] }] }, and the maximum depth is 3."
|
|
789
|
+
},
|
|
790
|
+
"style": {
|
|
791
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
792
|
+
"type": "object",
|
|
793
|
+
"properties": {
|
|
794
|
+
"texture": {
|
|
795
|
+
"default": "default",
|
|
796
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
797
|
+
"type": "string",
|
|
798
|
+
"enum": [
|
|
799
|
+
"default",
|
|
800
|
+
"rough"
|
|
801
|
+
]
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
"theme": {
|
|
806
|
+
"default": "default",
|
|
807
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
808
|
+
"type": "string",
|
|
809
|
+
"enum": [
|
|
810
|
+
"default",
|
|
811
|
+
"academy",
|
|
812
|
+
"dark"
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
"width": {
|
|
816
|
+
"default": 600,
|
|
817
|
+
"description": "Set the width of chart, default is 600.",
|
|
818
|
+
"type": "number"
|
|
819
|
+
},
|
|
820
|
+
"height": {
|
|
821
|
+
"default": 400,
|
|
822
|
+
"description": "Set the height of chart, default is 400.",
|
|
823
|
+
"type": "number"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"required": [
|
|
827
|
+
"data"
|
|
828
|
+
],
|
|
829
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
830
|
+
},
|
|
831
|
+
"generate_flow_diagram": {
|
|
832
|
+
"type": "object",
|
|
833
|
+
"properties": {
|
|
834
|
+
"data": {
|
|
835
|
+
"type": "object",
|
|
836
|
+
"properties": {
|
|
837
|
+
"nodes": {
|
|
838
|
+
"minItems": 1,
|
|
839
|
+
"type": "array",
|
|
840
|
+
"items": {
|
|
841
|
+
"type": "object",
|
|
842
|
+
"properties": {
|
|
843
|
+
"name": {
|
|
844
|
+
"type": "string"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"required": [
|
|
848
|
+
"name"
|
|
849
|
+
]
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"edges": {
|
|
853
|
+
"type": "array",
|
|
854
|
+
"items": {
|
|
855
|
+
"type": "object",
|
|
856
|
+
"properties": {
|
|
857
|
+
"source": {
|
|
858
|
+
"type": "string"
|
|
859
|
+
},
|
|
860
|
+
"target": {
|
|
861
|
+
"type": "string"
|
|
862
|
+
},
|
|
863
|
+
"name": {
|
|
864
|
+
"default": "",
|
|
865
|
+
"type": "string"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"required": [
|
|
869
|
+
"source",
|
|
870
|
+
"target"
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"required": [
|
|
876
|
+
"nodes",
|
|
877
|
+
"edges"
|
|
878
|
+
],
|
|
879
|
+
"description": "Data for flow diagram chart, such as, { nodes: [{ name: 'node1' }, { name: 'node2' }], edges: [{ source: 'node1', target: 'node2', name: 'edge1' }] }."
|
|
880
|
+
},
|
|
881
|
+
"style": {
|
|
882
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
883
|
+
"type": "object",
|
|
884
|
+
"properties": {
|
|
885
|
+
"texture": {
|
|
886
|
+
"default": "default",
|
|
887
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
888
|
+
"type": "string",
|
|
889
|
+
"enum": [
|
|
890
|
+
"default",
|
|
891
|
+
"rough"
|
|
892
|
+
]
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"theme": {
|
|
897
|
+
"default": "default",
|
|
898
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
899
|
+
"type": "string",
|
|
900
|
+
"enum": [
|
|
901
|
+
"default",
|
|
902
|
+
"academy",
|
|
903
|
+
"dark"
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
"width": {
|
|
907
|
+
"default": 600,
|
|
908
|
+
"description": "Set the width of chart, default is 600.",
|
|
909
|
+
"type": "number"
|
|
910
|
+
},
|
|
911
|
+
"height": {
|
|
912
|
+
"default": 400,
|
|
913
|
+
"description": "Set the height of chart, default is 400.",
|
|
914
|
+
"type": "number"
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"required": [
|
|
918
|
+
"data"
|
|
919
|
+
],
|
|
920
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
921
|
+
},
|
|
922
|
+
"generate_funnel_chart": {
|
|
923
|
+
"type": "object",
|
|
924
|
+
"properties": {
|
|
925
|
+
"data": {
|
|
926
|
+
"minItems": 1,
|
|
927
|
+
"type": "array",
|
|
928
|
+
"items": {
|
|
929
|
+
"type": "object",
|
|
930
|
+
"properties": {
|
|
931
|
+
"category": {
|
|
932
|
+
"type": "string"
|
|
933
|
+
},
|
|
934
|
+
"value": {
|
|
935
|
+
"type": "number"
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"required": [
|
|
939
|
+
"category",
|
|
940
|
+
"value"
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
"description": "Data for funnel chart, such as, [{ category: '浏览网站', value: 50000 }, { category: '放入购物车', value: 35000 }, { category: '生成订单', value: 25000 }, { category: '支付订单', value: 15000 }, { category: '完成交易', value: 8000 }]."
|
|
944
|
+
},
|
|
945
|
+
"style": {
|
|
946
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
947
|
+
"type": "object",
|
|
948
|
+
"properties": {
|
|
949
|
+
"backgroundColor": {
|
|
950
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
951
|
+
"type": "string"
|
|
952
|
+
},
|
|
953
|
+
"palette": {
|
|
954
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
955
|
+
"type": "array",
|
|
956
|
+
"items": {
|
|
957
|
+
"type": "string"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"texture": {
|
|
961
|
+
"default": "default",
|
|
962
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
963
|
+
"type": "string",
|
|
964
|
+
"enum": [
|
|
965
|
+
"default",
|
|
966
|
+
"rough"
|
|
967
|
+
]
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
"theme": {
|
|
972
|
+
"default": "default",
|
|
973
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
974
|
+
"type": "string",
|
|
975
|
+
"enum": [
|
|
976
|
+
"default",
|
|
977
|
+
"academy",
|
|
978
|
+
"dark"
|
|
979
|
+
]
|
|
980
|
+
},
|
|
981
|
+
"width": {
|
|
982
|
+
"default": 600,
|
|
983
|
+
"description": "Set the width of chart, default is 600.",
|
|
984
|
+
"type": "number"
|
|
985
|
+
},
|
|
986
|
+
"height": {
|
|
987
|
+
"default": 400,
|
|
988
|
+
"description": "Set the height of chart, default is 400.",
|
|
989
|
+
"type": "number"
|
|
990
|
+
},
|
|
991
|
+
"title": {
|
|
992
|
+
"default": "",
|
|
993
|
+
"description": "Set the title of chart.",
|
|
994
|
+
"type": "string"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
"required": [
|
|
998
|
+
"data"
|
|
999
|
+
],
|
|
1000
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1001
|
+
},
|
|
1002
|
+
"generate_histogram_chart": {
|
|
1003
|
+
"type": "object",
|
|
1004
|
+
"properties": {
|
|
1005
|
+
"data": {
|
|
1006
|
+
"minItems": 1,
|
|
1007
|
+
"type": "array",
|
|
1008
|
+
"items": {
|
|
1009
|
+
"type": "number"
|
|
1010
|
+
},
|
|
1011
|
+
"description": "Data for histogram chart, it should be an array of numbers, such as, [78, 88, 60, 100, 95]."
|
|
1012
|
+
},
|
|
1013
|
+
"binNumber": {
|
|
1014
|
+
"description": "Number of intervals to define the number of intervals in a histogram, when not specified, a built-in value will be used.",
|
|
1015
|
+
"type": "number"
|
|
1016
|
+
},
|
|
1017
|
+
"style": {
|
|
1018
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1019
|
+
"type": "object",
|
|
1020
|
+
"properties": {
|
|
1021
|
+
"backgroundColor": {
|
|
1022
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
"palette": {
|
|
1026
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
1027
|
+
"type": "array",
|
|
1028
|
+
"items": {
|
|
1029
|
+
"type": "string"
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"texture": {
|
|
1033
|
+
"default": "default",
|
|
1034
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"enum": [
|
|
1037
|
+
"default",
|
|
1038
|
+
"rough"
|
|
1039
|
+
]
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"theme": {
|
|
1044
|
+
"default": "default",
|
|
1045
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1046
|
+
"type": "string",
|
|
1047
|
+
"enum": [
|
|
1048
|
+
"default",
|
|
1049
|
+
"academy",
|
|
1050
|
+
"dark"
|
|
1051
|
+
]
|
|
1052
|
+
},
|
|
1053
|
+
"width": {
|
|
1054
|
+
"default": 600,
|
|
1055
|
+
"description": "Set the width of chart, default is 600.",
|
|
1056
|
+
"type": "number"
|
|
1057
|
+
},
|
|
1058
|
+
"height": {
|
|
1059
|
+
"default": 400,
|
|
1060
|
+
"description": "Set the height of chart, default is 400.",
|
|
1061
|
+
"type": "number"
|
|
1062
|
+
},
|
|
1063
|
+
"title": {
|
|
1064
|
+
"default": "",
|
|
1065
|
+
"description": "Set the title of chart.",
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
},
|
|
1068
|
+
"axisXTitle": {
|
|
1069
|
+
"default": "",
|
|
1070
|
+
"description": "Set the x-axis title of chart.",
|
|
1071
|
+
"type": "string"
|
|
1072
|
+
},
|
|
1073
|
+
"axisYTitle": {
|
|
1074
|
+
"default": "",
|
|
1075
|
+
"description": "Set the y-axis title of chart.",
|
|
1076
|
+
"type": "string"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"required": [
|
|
1080
|
+
"data"
|
|
1081
|
+
],
|
|
1082
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1083
|
+
},
|
|
1084
|
+
"generate_line_chart": {
|
|
1085
|
+
"type": "object",
|
|
1086
|
+
"properties": {
|
|
1087
|
+
"data": {
|
|
1088
|
+
"minItems": 1,
|
|
1089
|
+
"type": "array",
|
|
1090
|
+
"items": {
|
|
1091
|
+
"type": "object",
|
|
1092
|
+
"properties": {
|
|
1093
|
+
"time": {
|
|
1094
|
+
"type": "string"
|
|
1095
|
+
},
|
|
1096
|
+
"value": {
|
|
1097
|
+
"type": "number"
|
|
1098
|
+
},
|
|
1099
|
+
"group": {
|
|
1100
|
+
"type": "string"
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
"required": [
|
|
1104
|
+
"time",
|
|
1105
|
+
"value"
|
|
1106
|
+
]
|
|
1107
|
+
},
|
|
1108
|
+
"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 }], when the data is grouped by time, the `group` field should be used to specify the group, such as, [{ time: '2015', value: 23, group: 'A' }, { time: '2015', value: 32, group: 'B' }]."
|
|
1109
|
+
},
|
|
1110
|
+
"style": {
|
|
1111
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1112
|
+
"type": "object",
|
|
1113
|
+
"properties": {
|
|
1114
|
+
"backgroundColor": {
|
|
1115
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1116
|
+
"type": "string"
|
|
1117
|
+
},
|
|
1118
|
+
"palette": {
|
|
1119
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
1120
|
+
"type": "array",
|
|
1121
|
+
"items": {
|
|
1122
|
+
"type": "string"
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
"texture": {
|
|
1126
|
+
"default": "default",
|
|
1127
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1128
|
+
"type": "string",
|
|
1129
|
+
"enum": [
|
|
1130
|
+
"default",
|
|
1131
|
+
"rough"
|
|
1132
|
+
]
|
|
1133
|
+
},
|
|
1134
|
+
"startAtZero": {
|
|
1135
|
+
"default": false,
|
|
1136
|
+
"description": "Whether to start the axis at zero, optional, default is false.",
|
|
1137
|
+
"type": "boolean"
|
|
1138
|
+
},
|
|
1139
|
+
"lineWidth": {
|
|
1140
|
+
"description": "Line width for the lines of chart, such as 4.",
|
|
1141
|
+
"type": "number"
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
"theme": {
|
|
1146
|
+
"default": "default",
|
|
1147
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"enum": [
|
|
1150
|
+
"default",
|
|
1151
|
+
"academy",
|
|
1152
|
+
"dark"
|
|
1153
|
+
]
|
|
1154
|
+
},
|
|
1155
|
+
"width": {
|
|
1156
|
+
"default": 600,
|
|
1157
|
+
"description": "Set the width of chart, default is 600.",
|
|
1158
|
+
"type": "number"
|
|
1159
|
+
},
|
|
1160
|
+
"height": {
|
|
1161
|
+
"default": 400,
|
|
1162
|
+
"description": "Set the height of chart, default is 400.",
|
|
1163
|
+
"type": "number"
|
|
1164
|
+
},
|
|
1165
|
+
"title": {
|
|
1166
|
+
"default": "",
|
|
1167
|
+
"description": "Set the title of chart.",
|
|
1168
|
+
"type": "string"
|
|
1169
|
+
},
|
|
1170
|
+
"axisXTitle": {
|
|
1171
|
+
"default": "",
|
|
1172
|
+
"description": "Set the x-axis title of chart.",
|
|
1173
|
+
"type": "string"
|
|
1174
|
+
},
|
|
1175
|
+
"axisYTitle": {
|
|
1176
|
+
"default": "",
|
|
1177
|
+
"description": "Set the y-axis title of chart.",
|
|
1178
|
+
"type": "string"
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
"required": [
|
|
1182
|
+
"data"
|
|
1183
|
+
],
|
|
1184
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1185
|
+
},
|
|
1186
|
+
"generate_liquid_chart": {
|
|
1187
|
+
"type": "object",
|
|
1188
|
+
"properties": {
|
|
1189
|
+
"percent": {
|
|
1190
|
+
"type": "number",
|
|
1191
|
+
"minimum": 0,
|
|
1192
|
+
"maximum": 1,
|
|
1193
|
+
"description": "The percentage value to display in the liquid chart, should be a number between 0 and 1, where 1 represents 100%. For example, 0.75 represents 75%."
|
|
1194
|
+
},
|
|
1195
|
+
"shape": {
|
|
1196
|
+
"default": "circle",
|
|
1197
|
+
"description": "The shape of the liquid chart, can be 'circle', 'rect', 'pin', or 'triangle'. Default is 'circle'.",
|
|
1198
|
+
"type": "string",
|
|
1199
|
+
"enum": [
|
|
1200
|
+
"circle",
|
|
1201
|
+
"rect",
|
|
1202
|
+
"pin",
|
|
1203
|
+
"triangle"
|
|
1204
|
+
]
|
|
1205
|
+
},
|
|
1206
|
+
"style": {
|
|
1207
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1208
|
+
"type": "object",
|
|
1209
|
+
"properties": {
|
|
1210
|
+
"backgroundColor": {
|
|
1211
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1212
|
+
"type": "string"
|
|
1213
|
+
},
|
|
1214
|
+
"texture": {
|
|
1215
|
+
"default": "default",
|
|
1216
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"enum": [
|
|
1219
|
+
"default",
|
|
1220
|
+
"rough"
|
|
1221
|
+
]
|
|
1222
|
+
},
|
|
1223
|
+
"color": {
|
|
1224
|
+
"description": "Custom color for the liquid chart, if not specified, defaults to the theme color.",
|
|
1225
|
+
"type": "string"
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
},
|
|
1229
|
+
"theme": {
|
|
1230
|
+
"default": "default",
|
|
1231
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1232
|
+
"type": "string",
|
|
1233
|
+
"enum": [
|
|
1234
|
+
"default",
|
|
1235
|
+
"academy",
|
|
1236
|
+
"dark"
|
|
1237
|
+
]
|
|
1238
|
+
},
|
|
1239
|
+
"width": {
|
|
1240
|
+
"default": 600,
|
|
1241
|
+
"description": "Set the width of chart, default is 600.",
|
|
1242
|
+
"type": "number"
|
|
1243
|
+
},
|
|
1244
|
+
"height": {
|
|
1245
|
+
"default": 400,
|
|
1246
|
+
"description": "Set the height of chart, default is 400.",
|
|
1247
|
+
"type": "number"
|
|
1248
|
+
},
|
|
1249
|
+
"title": {
|
|
1250
|
+
"default": "",
|
|
1251
|
+
"description": "Set the title of chart.",
|
|
1252
|
+
"type": "string"
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
"required": [
|
|
1256
|
+
"percent"
|
|
1257
|
+
],
|
|
1258
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1259
|
+
},
|
|
1260
|
+
"generate_mind_map": {
|
|
1261
|
+
"type": "object",
|
|
1262
|
+
"properties": {
|
|
1263
|
+
"data": {
|
|
1264
|
+
"type": "object",
|
|
1265
|
+
"properties": {
|
|
1266
|
+
"name": {
|
|
1267
|
+
"type": "string"
|
|
1268
|
+
},
|
|
1269
|
+
"children": {
|
|
1270
|
+
"type": "array",
|
|
1271
|
+
"items": {
|
|
1272
|
+
"type": "object",
|
|
1273
|
+
"properties": {
|
|
1274
|
+
"name": {
|
|
1275
|
+
"type": "string"
|
|
1276
|
+
},
|
|
1277
|
+
"children": {
|
|
1278
|
+
"type": "array",
|
|
1279
|
+
"items": {
|
|
1280
|
+
"type": "object",
|
|
1281
|
+
"properties": {
|
|
1282
|
+
"name": {
|
|
1283
|
+
"type": "string"
|
|
1284
|
+
},
|
|
1285
|
+
"children": {
|
|
1286
|
+
"type": "array",
|
|
1287
|
+
"items": {
|
|
1288
|
+
"type": "object",
|
|
1289
|
+
"properties": {
|
|
1290
|
+
"name": {
|
|
1291
|
+
"type": "string"
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
"required": [
|
|
1295
|
+
"name"
|
|
1296
|
+
]
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
"required": [
|
|
1301
|
+
"name"
|
|
1302
|
+
]
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
"required": [
|
|
1307
|
+
"name"
|
|
1308
|
+
]
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
"required": [
|
|
1313
|
+
"name"
|
|
1314
|
+
],
|
|
1315
|
+
"description": "Data for mind map chart which is a hierarchical structure, such as, { name: 'main topic', children: [{ name: 'topic 1', children: [{ name:'subtopic 1-1' }] }, and the maximum depth is 3."
|
|
1316
|
+
},
|
|
1317
|
+
"style": {
|
|
1318
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1319
|
+
"type": "object",
|
|
1320
|
+
"properties": {
|
|
1321
|
+
"texture": {
|
|
1322
|
+
"default": "default",
|
|
1323
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1324
|
+
"type": "string",
|
|
1325
|
+
"enum": [
|
|
1326
|
+
"default",
|
|
1327
|
+
"rough"
|
|
1328
|
+
]
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
"theme": {
|
|
1333
|
+
"default": "default",
|
|
1334
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1335
|
+
"type": "string",
|
|
1336
|
+
"enum": [
|
|
1337
|
+
"default",
|
|
1338
|
+
"academy",
|
|
1339
|
+
"dark"
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
"width": {
|
|
1343
|
+
"default": 600,
|
|
1344
|
+
"description": "Set the width of chart, default is 600.",
|
|
1345
|
+
"type": "number"
|
|
1346
|
+
},
|
|
1347
|
+
"height": {
|
|
1348
|
+
"default": 400,
|
|
1349
|
+
"description": "Set the height of chart, default is 400.",
|
|
1350
|
+
"type": "number"
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"required": [
|
|
1354
|
+
"data"
|
|
1355
|
+
],
|
|
1356
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1357
|
+
},
|
|
1358
|
+
"generate_network_graph": {
|
|
1359
|
+
"type": "object",
|
|
1360
|
+
"properties": {
|
|
1361
|
+
"data": {
|
|
1362
|
+
"type": "object",
|
|
1363
|
+
"properties": {
|
|
1364
|
+
"nodes": {
|
|
1365
|
+
"minItems": 1,
|
|
1366
|
+
"type": "array",
|
|
1367
|
+
"items": {
|
|
1368
|
+
"type": "object",
|
|
1369
|
+
"properties": {
|
|
1370
|
+
"name": {
|
|
1371
|
+
"type": "string"
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"required": [
|
|
1375
|
+
"name"
|
|
1376
|
+
]
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
"edges": {
|
|
1380
|
+
"type": "array",
|
|
1381
|
+
"items": {
|
|
1382
|
+
"type": "object",
|
|
1383
|
+
"properties": {
|
|
1384
|
+
"source": {
|
|
1385
|
+
"type": "string"
|
|
1386
|
+
},
|
|
1387
|
+
"target": {
|
|
1388
|
+
"type": "string"
|
|
1389
|
+
},
|
|
1390
|
+
"name": {
|
|
1391
|
+
"default": "",
|
|
1392
|
+
"type": "string"
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
"required": [
|
|
1396
|
+
"source",
|
|
1397
|
+
"target"
|
|
1398
|
+
]
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"required": [
|
|
1403
|
+
"nodes",
|
|
1404
|
+
"edges"
|
|
1405
|
+
],
|
|
1406
|
+
"description": "Data for network graph chart, such as, { nodes: [{ name: 'node1' }, { name: 'node2' }], edges: [{ source: 'node1', target: 'node2', name: 'edge1' }] }"
|
|
1407
|
+
},
|
|
1408
|
+
"style": {
|
|
1409
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1410
|
+
"type": "object",
|
|
1411
|
+
"properties": {
|
|
1412
|
+
"texture": {
|
|
1413
|
+
"default": "default",
|
|
1414
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1415
|
+
"type": "string",
|
|
1416
|
+
"enum": [
|
|
1417
|
+
"default",
|
|
1418
|
+
"rough"
|
|
1419
|
+
]
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
"theme": {
|
|
1424
|
+
"default": "default",
|
|
1425
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1426
|
+
"type": "string",
|
|
1427
|
+
"enum": [
|
|
1428
|
+
"default",
|
|
1429
|
+
"academy",
|
|
1430
|
+
"dark"
|
|
1431
|
+
]
|
|
1432
|
+
},
|
|
1433
|
+
"width": {
|
|
1434
|
+
"default": 600,
|
|
1435
|
+
"description": "Set the width of chart, default is 600.",
|
|
1436
|
+
"type": "number"
|
|
1437
|
+
},
|
|
1438
|
+
"height": {
|
|
1439
|
+
"default": 400,
|
|
1440
|
+
"description": "Set the height of chart, default is 400.",
|
|
1441
|
+
"type": "number"
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"required": [
|
|
1445
|
+
"data"
|
|
1446
|
+
],
|
|
1447
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1448
|
+
},
|
|
1449
|
+
"generate_organization_chart": {
|
|
1450
|
+
"type": "object",
|
|
1451
|
+
"properties": {
|
|
1452
|
+
"data": {
|
|
1453
|
+
"type": "object",
|
|
1454
|
+
"properties": {
|
|
1455
|
+
"name": {
|
|
1456
|
+
"type": "string"
|
|
1457
|
+
},
|
|
1458
|
+
"description": {
|
|
1459
|
+
"type": "string"
|
|
1460
|
+
},
|
|
1461
|
+
"children": {
|
|
1462
|
+
"type": "array",
|
|
1463
|
+
"items": {
|
|
1464
|
+
"type": "object",
|
|
1465
|
+
"properties": {
|
|
1466
|
+
"name": {
|
|
1467
|
+
"type": "string"
|
|
1468
|
+
},
|
|
1469
|
+
"description": {
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
},
|
|
1472
|
+
"children": {
|
|
1473
|
+
"type": "array",
|
|
1474
|
+
"items": {
|
|
1475
|
+
"type": "object",
|
|
1476
|
+
"properties": {
|
|
1477
|
+
"name": {
|
|
1478
|
+
"type": "string"
|
|
1479
|
+
},
|
|
1480
|
+
"description": {
|
|
1481
|
+
"type": "string"
|
|
1482
|
+
},
|
|
1483
|
+
"children": {
|
|
1484
|
+
"type": "array",
|
|
1485
|
+
"items": {
|
|
1486
|
+
"type": "object",
|
|
1487
|
+
"properties": {
|
|
1488
|
+
"name": {
|
|
1489
|
+
"type": "string"
|
|
1490
|
+
},
|
|
1491
|
+
"description": {
|
|
1492
|
+
"type": "string"
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
"required": [
|
|
1496
|
+
"name"
|
|
1497
|
+
]
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
"required": [
|
|
1502
|
+
"name"
|
|
1503
|
+
]
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
"required": [
|
|
1508
|
+
"name"
|
|
1509
|
+
]
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
"required": [
|
|
1514
|
+
"name"
|
|
1515
|
+
],
|
|
1516
|
+
"description": "Data for organization chart which is a hierarchical structure, such as, { name: 'CEO', description: 'Chief Executive Officer', children: [{ name: 'CTO', description: 'Chief Technology Officer', children: [{ name: 'Dev Manager', description: 'Development Manager' }] }] }, and the maximum depth is 3."
|
|
1517
|
+
},
|
|
1518
|
+
"orient": {
|
|
1519
|
+
"default": "vertical",
|
|
1520
|
+
"description": "Orientation of the organization chart, either horizontal or vertical. Default is vertical, when the level of the chart is more than 3, it is recommended to use horizontal orientation.",
|
|
1521
|
+
"type": "string",
|
|
1522
|
+
"enum": [
|
|
1523
|
+
"horizontal",
|
|
1524
|
+
"vertical"
|
|
1525
|
+
]
|
|
1526
|
+
},
|
|
1527
|
+
"style": {
|
|
1528
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1529
|
+
"type": "object",
|
|
1530
|
+
"properties": {
|
|
1531
|
+
"texture": {
|
|
1532
|
+
"default": "default",
|
|
1533
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1534
|
+
"type": "string",
|
|
1535
|
+
"enum": [
|
|
1536
|
+
"default",
|
|
1537
|
+
"rough"
|
|
1538
|
+
]
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
},
|
|
1542
|
+
"theme": {
|
|
1543
|
+
"default": "default",
|
|
1544
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1545
|
+
"type": "string",
|
|
1546
|
+
"enum": [
|
|
1547
|
+
"default",
|
|
1548
|
+
"academy",
|
|
1549
|
+
"dark"
|
|
1550
|
+
]
|
|
1551
|
+
},
|
|
1552
|
+
"width": {
|
|
1553
|
+
"default": 600,
|
|
1554
|
+
"description": "Set the width of chart, default is 600.",
|
|
1555
|
+
"type": "number"
|
|
1556
|
+
},
|
|
1557
|
+
"height": {
|
|
1558
|
+
"default": 400,
|
|
1559
|
+
"description": "Set the height of chart, default is 400.",
|
|
1560
|
+
"type": "number"
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
"required": [
|
|
1564
|
+
"data"
|
|
1565
|
+
],
|
|
1566
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1567
|
+
},
|
|
1568
|
+
"generate_path_map": {
|
|
1569
|
+
"type": "object",
|
|
1570
|
+
"properties": {
|
|
1571
|
+
"title": {
|
|
1572
|
+
"type": "string",
|
|
1573
|
+
"description": "The map title should not exceed 16 characters. The content should be consistent with the information the map wants to convey and should be accurate, rich, creative, and attractive."
|
|
1574
|
+
},
|
|
1575
|
+
"data": {
|
|
1576
|
+
"minItems": 1,
|
|
1577
|
+
"type": "array",
|
|
1578
|
+
"items": {
|
|
1579
|
+
"type": "object",
|
|
1580
|
+
"properties": {
|
|
1581
|
+
"data": {
|
|
1582
|
+
"minItems": 1,
|
|
1583
|
+
"type": "array",
|
|
1584
|
+
"items": {
|
|
1585
|
+
"type": "string"
|
|
1586
|
+
},
|
|
1587
|
+
"description": "A list of keywords for the names of points of interest (POIs) in Chinese. These POIs usually contain a group of places with similar locations, so the names should be more descriptive, must adding attributives to indicate that they are different places in the same area, such as \"北京市\" is better than \"北京\", \"杭州西湖\" is better than \"西湖\"; in addition, if you can determine that a location may appear in multiple areas, you can be more specific, such as \"杭州西湖的苏堤春晓\" is better than \"苏堤春晓\". The tool will use these keywords to search for specific POIs and query their detailed data, such as latitude and longitude, location photos, etc. For example, [\"西安钟楼\", \"西安大唐不夜城\", \"西安大雁塔\"]."
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
"required": [
|
|
1591
|
+
"data"
|
|
1592
|
+
],
|
|
1593
|
+
"description": "The route and places along it."
|
|
1594
|
+
},
|
|
1595
|
+
"description": "Routes, each group represents all POIs along a route. For example, [{ \"data\": [\"西安钟楼\", \"西安大唐不夜城\", \"西安大雁塔\"] }, { \"data\": [\"西安曲江池公园\", \"西安回民街\"] }]"
|
|
1596
|
+
},
|
|
1597
|
+
"width": {
|
|
1598
|
+
"default": 1600,
|
|
1599
|
+
"description": "Set the width of map, default is 1600.",
|
|
1600
|
+
"type": "number"
|
|
1601
|
+
},
|
|
1602
|
+
"height": {
|
|
1603
|
+
"default": 1000,
|
|
1604
|
+
"description": "Set the height of map, default is 1000.",
|
|
1605
|
+
"type": "number"
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
"required": [
|
|
1609
|
+
"title",
|
|
1610
|
+
"data"
|
|
1611
|
+
],
|
|
1612
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1613
|
+
},
|
|
1614
|
+
"generate_pie_chart": {
|
|
1615
|
+
"type": "object",
|
|
1616
|
+
"properties": {
|
|
1617
|
+
"data": {
|
|
1618
|
+
"minItems": 1,
|
|
1619
|
+
"type": "array",
|
|
1620
|
+
"items": {
|
|
1621
|
+
"type": "object",
|
|
1622
|
+
"properties": {
|
|
1623
|
+
"category": {
|
|
1624
|
+
"type": "string"
|
|
1625
|
+
},
|
|
1626
|
+
"value": {
|
|
1627
|
+
"type": "number"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"required": [
|
|
1631
|
+
"category",
|
|
1632
|
+
"value"
|
|
1633
|
+
]
|
|
1634
|
+
},
|
|
1635
|
+
"description": "Data for pie chart, it should be an array of objects, each object contains a `category` field and a `value` field, such as, [{ category: '分类一', value: 27 }]."
|
|
1636
|
+
},
|
|
1637
|
+
"innerRadius": {
|
|
1638
|
+
"default": 0,
|
|
1639
|
+
"description": "Set the innerRadius of pie chart, the value between 0 and 1. Set the pie chart as a donut chart. Set the value to 0.6 or number in [0 ,1] to enable it.",
|
|
1640
|
+
"type": "number"
|
|
1641
|
+
},
|
|
1642
|
+
"style": {
|
|
1643
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1644
|
+
"type": "object",
|
|
1645
|
+
"properties": {
|
|
1646
|
+
"backgroundColor": {
|
|
1647
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1648
|
+
"type": "string"
|
|
1649
|
+
},
|
|
1650
|
+
"palette": {
|
|
1651
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
1652
|
+
"type": "array",
|
|
1653
|
+
"items": {
|
|
1654
|
+
"type": "string"
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1657
|
+
"texture": {
|
|
1658
|
+
"default": "default",
|
|
1659
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1660
|
+
"type": "string",
|
|
1661
|
+
"enum": [
|
|
1662
|
+
"default",
|
|
1663
|
+
"rough"
|
|
1664
|
+
]
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
"theme": {
|
|
1669
|
+
"default": "default",
|
|
1670
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1671
|
+
"type": "string",
|
|
1672
|
+
"enum": [
|
|
1673
|
+
"default",
|
|
1674
|
+
"academy",
|
|
1675
|
+
"dark"
|
|
1676
|
+
]
|
|
1677
|
+
},
|
|
1678
|
+
"width": {
|
|
1679
|
+
"default": 600,
|
|
1680
|
+
"description": "Set the width of chart, default is 600.",
|
|
1681
|
+
"type": "number"
|
|
1682
|
+
},
|
|
1683
|
+
"height": {
|
|
1684
|
+
"default": 400,
|
|
1685
|
+
"description": "Set the height of chart, default is 400.",
|
|
1686
|
+
"type": "number"
|
|
1687
|
+
},
|
|
1688
|
+
"title": {
|
|
1689
|
+
"default": "",
|
|
1690
|
+
"description": "Set the title of chart.",
|
|
1691
|
+
"type": "string"
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
"required": [
|
|
1695
|
+
"data"
|
|
1696
|
+
],
|
|
1697
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1698
|
+
},
|
|
1699
|
+
"generate_pin_map": {
|
|
1700
|
+
"type": "object",
|
|
1701
|
+
"properties": {
|
|
1702
|
+
"title": {
|
|
1703
|
+
"type": "string",
|
|
1704
|
+
"description": "The map title should not exceed 16 characters. The content should be consistent with the information the map wants to convey and should be accurate, rich, creative, and attractive."
|
|
1705
|
+
},
|
|
1706
|
+
"data": {
|
|
1707
|
+
"minItems": 1,
|
|
1708
|
+
"type": "array",
|
|
1709
|
+
"items": {
|
|
1710
|
+
"type": "string"
|
|
1711
|
+
},
|
|
1712
|
+
"description": "A list of keywords for the names of points of interest (POIs) in Chinese. These POIs usually contain a group of places with similar locations, so the names should be more descriptive, must adding attributives to indicate that they are different places in the same area, such as \"北京市\" is better than \"北京\", \"杭州西湖\" is better than \"西湖\"; in addition, if you can determine that a location may appear in multiple areas, you can be more specific, such as \"杭州西湖的苏堤春晓\" is better than \"苏堤春晓\". The tool will use these keywords to search for specific POIs and query their detailed data, such as latitude and longitude, location photos, etc. For example, [\"西安钟楼\", \"西安大唐不夜城\", \"西安大雁塔\"]."
|
|
1713
|
+
},
|
|
1714
|
+
"markerPopup": {
|
|
1715
|
+
"description": "Marker type, one is simple mode, which is just an icon and does not require `markerPopup` configuration; the other is image mode, which displays location photos and requires `markerPopup` configuration. Among them, `width`/`height`/`borderRadius` can be combined to realize rectangular photos and square photos. In addition, when `borderRadius` is half of the width and height, it can also be a circular photo.",
|
|
1716
|
+
"type": "object",
|
|
1717
|
+
"properties": {
|
|
1718
|
+
"type": {
|
|
1719
|
+
"default": "image",
|
|
1720
|
+
"description": "Must be \"image\".",
|
|
1721
|
+
"type": "string"
|
|
1722
|
+
},
|
|
1723
|
+
"width": {
|
|
1724
|
+
"default": 40,
|
|
1725
|
+
"description": "Width of the photo.",
|
|
1726
|
+
"type": "number"
|
|
1727
|
+
},
|
|
1728
|
+
"height": {
|
|
1729
|
+
"default": 40,
|
|
1730
|
+
"description": "Height of the photo.",
|
|
1731
|
+
"type": "number"
|
|
1732
|
+
},
|
|
1733
|
+
"borderRadius": {
|
|
1734
|
+
"default": 8,
|
|
1735
|
+
"description": "Border radius of the photo.",
|
|
1736
|
+
"type": "number"
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"width": {
|
|
1741
|
+
"default": 1600,
|
|
1742
|
+
"description": "Set the width of map, default is 1600.",
|
|
1743
|
+
"type": "number"
|
|
1744
|
+
},
|
|
1745
|
+
"height": {
|
|
1746
|
+
"default": 1000,
|
|
1747
|
+
"description": "Set the height of map, default is 1000.",
|
|
1748
|
+
"type": "number"
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"required": [
|
|
1752
|
+
"title",
|
|
1753
|
+
"data"
|
|
1754
|
+
],
|
|
1755
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1756
|
+
},
|
|
1757
|
+
"generate_radar_chart": {
|
|
1758
|
+
"type": "object",
|
|
1759
|
+
"properties": {
|
|
1760
|
+
"data": {
|
|
1761
|
+
"minItems": 1,
|
|
1762
|
+
"type": "array",
|
|
1763
|
+
"items": {
|
|
1764
|
+
"type": "object",
|
|
1765
|
+
"properties": {
|
|
1766
|
+
"name": {
|
|
1767
|
+
"type": "string"
|
|
1768
|
+
},
|
|
1769
|
+
"value": {
|
|
1770
|
+
"type": "number"
|
|
1771
|
+
},
|
|
1772
|
+
"group": {
|
|
1773
|
+
"type": "string"
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"required": [
|
|
1777
|
+
"name",
|
|
1778
|
+
"value"
|
|
1779
|
+
]
|
|
1780
|
+
},
|
|
1781
|
+
"description": "Data for radar chart, it should be an array of objects, each object contains a `name` field and a `value` field, such as, [{ name: 'Design', value: 70 }], when the data is grouped by `group`, the `group` field is required, such as, [{ name: 'Design', value: 70, group: 'Huawei' }]."
|
|
1782
|
+
},
|
|
1783
|
+
"style": {
|
|
1784
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1785
|
+
"type": "object",
|
|
1786
|
+
"properties": {
|
|
1787
|
+
"backgroundColor": {
|
|
1788
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1789
|
+
"type": "string"
|
|
1790
|
+
},
|
|
1791
|
+
"palette": {
|
|
1792
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
1793
|
+
"type": "array",
|
|
1794
|
+
"items": {
|
|
1795
|
+
"type": "string"
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
"texture": {
|
|
1799
|
+
"default": "default",
|
|
1800
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1801
|
+
"type": "string",
|
|
1802
|
+
"enum": [
|
|
1803
|
+
"default",
|
|
1804
|
+
"rough"
|
|
1805
|
+
]
|
|
1806
|
+
},
|
|
1807
|
+
"lineWidth": {
|
|
1808
|
+
"description": "Line width for the lines of chart, such as 4.",
|
|
1809
|
+
"type": "number"
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"theme": {
|
|
1814
|
+
"default": "default",
|
|
1815
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1816
|
+
"type": "string",
|
|
1817
|
+
"enum": [
|
|
1818
|
+
"default",
|
|
1819
|
+
"academy",
|
|
1820
|
+
"dark"
|
|
1821
|
+
]
|
|
1822
|
+
},
|
|
1823
|
+
"width": {
|
|
1824
|
+
"default": 600,
|
|
1825
|
+
"description": "Set the width of chart, default is 600.",
|
|
1826
|
+
"type": "number"
|
|
1827
|
+
},
|
|
1828
|
+
"height": {
|
|
1829
|
+
"default": 400,
|
|
1830
|
+
"description": "Set the height of chart, default is 400.",
|
|
1831
|
+
"type": "number"
|
|
1832
|
+
},
|
|
1833
|
+
"title": {
|
|
1834
|
+
"default": "",
|
|
1835
|
+
"description": "Set the title of chart.",
|
|
1836
|
+
"type": "string"
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
"required": [
|
|
1840
|
+
"data"
|
|
1841
|
+
],
|
|
1842
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1843
|
+
},
|
|
1844
|
+
"generate_sankey_chart": {
|
|
1845
|
+
"type": "object",
|
|
1846
|
+
"properties": {
|
|
1847
|
+
"data": {
|
|
1848
|
+
"minItems": 1,
|
|
1849
|
+
"type": "array",
|
|
1850
|
+
"items": {
|
|
1851
|
+
"type": "object",
|
|
1852
|
+
"properties": {
|
|
1853
|
+
"source": {
|
|
1854
|
+
"type": "string"
|
|
1855
|
+
},
|
|
1856
|
+
"target": {
|
|
1857
|
+
"type": "string"
|
|
1858
|
+
},
|
|
1859
|
+
"value": {
|
|
1860
|
+
"type": "number"
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"required": [
|
|
1864
|
+
"source",
|
|
1865
|
+
"target",
|
|
1866
|
+
"value"
|
|
1867
|
+
]
|
|
1868
|
+
},
|
|
1869
|
+
"description": "Date for sankey chart, such as, [{ source: 'Landing Page', target: 'Product Page', value: 50000 }, { source: 'Product Page', target: 'Add to Cart', value: 35000 }, { source: 'Add to Cart', target: 'Checkout', value: 25000 }, { source: 'Checkout', target: 'Payment', value: 15000 }, { source: 'Payment', target: 'Purchase Completed', value: 8000 }]."
|
|
1870
|
+
},
|
|
1871
|
+
"nodeAlign": {
|
|
1872
|
+
"default": "center",
|
|
1873
|
+
"description": "Alignment of nodes in the sankey chart, such as, 'left', 'right', 'justify', or 'center'.",
|
|
1874
|
+
"type": "string",
|
|
1875
|
+
"enum": [
|
|
1876
|
+
"left",
|
|
1877
|
+
"right",
|
|
1878
|
+
"justify",
|
|
1879
|
+
"center"
|
|
1880
|
+
]
|
|
1881
|
+
},
|
|
1882
|
+
"style": {
|
|
1883
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1884
|
+
"type": "object",
|
|
1885
|
+
"properties": {
|
|
1886
|
+
"backgroundColor": {
|
|
1887
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1888
|
+
"type": "string"
|
|
1889
|
+
},
|
|
1890
|
+
"palette": {
|
|
1891
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
1892
|
+
"type": "array",
|
|
1893
|
+
"items": {
|
|
1894
|
+
"type": "string"
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
"texture": {
|
|
1898
|
+
"default": "default",
|
|
1899
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"enum": [
|
|
1902
|
+
"default",
|
|
1903
|
+
"rough"
|
|
1904
|
+
]
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"theme": {
|
|
1909
|
+
"default": "default",
|
|
1910
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1911
|
+
"type": "string",
|
|
1912
|
+
"enum": [
|
|
1913
|
+
"default",
|
|
1914
|
+
"academy",
|
|
1915
|
+
"dark"
|
|
1916
|
+
]
|
|
1917
|
+
},
|
|
1918
|
+
"width": {
|
|
1919
|
+
"default": 600,
|
|
1920
|
+
"description": "Set the width of chart, default is 600.",
|
|
1921
|
+
"type": "number"
|
|
1922
|
+
},
|
|
1923
|
+
"height": {
|
|
1924
|
+
"default": 400,
|
|
1925
|
+
"description": "Set the height of chart, default is 400.",
|
|
1926
|
+
"type": "number"
|
|
1927
|
+
},
|
|
1928
|
+
"title": {
|
|
1929
|
+
"default": "",
|
|
1930
|
+
"description": "Set the title of chart.",
|
|
1931
|
+
"type": "string"
|
|
1932
|
+
}
|
|
1933
|
+
},
|
|
1934
|
+
"required": [
|
|
1935
|
+
"data"
|
|
1936
|
+
],
|
|
1937
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1938
|
+
},
|
|
1939
|
+
"generate_scatter_chart": {
|
|
1940
|
+
"type": "object",
|
|
1941
|
+
"properties": {
|
|
1942
|
+
"data": {
|
|
1943
|
+
"minItems": 1,
|
|
1944
|
+
"type": "array",
|
|
1945
|
+
"items": {
|
|
1946
|
+
"type": "object",
|
|
1947
|
+
"properties": {
|
|
1948
|
+
"x": {
|
|
1949
|
+
"type": "number"
|
|
1950
|
+
},
|
|
1951
|
+
"y": {
|
|
1952
|
+
"type": "number"
|
|
1953
|
+
},
|
|
1954
|
+
"group": {
|
|
1955
|
+
"description": "Group name for the data point.",
|
|
1956
|
+
"type": "string"
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
"required": [
|
|
1960
|
+
"x",
|
|
1961
|
+
"y"
|
|
1962
|
+
]
|
|
1963
|
+
},
|
|
1964
|
+
"description": "Data for scatter chart, such as, [{ x: 10, y: 15 }], when the data is grouped, the group name can be specified in the `group` field, such as, [{ x: 10, y: 15, group: 'Group A' }]."
|
|
1965
|
+
},
|
|
1966
|
+
"style": {
|
|
1967
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
1968
|
+
"type": "object",
|
|
1969
|
+
"properties": {
|
|
1970
|
+
"backgroundColor": {
|
|
1971
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
1972
|
+
"type": "string"
|
|
1973
|
+
},
|
|
1974
|
+
"palette": {
|
|
1975
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
1976
|
+
"type": "array",
|
|
1977
|
+
"items": {
|
|
1978
|
+
"type": "string"
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
"texture": {
|
|
1982
|
+
"default": "default",
|
|
1983
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
1984
|
+
"type": "string",
|
|
1985
|
+
"enum": [
|
|
1986
|
+
"default",
|
|
1987
|
+
"rough"
|
|
1988
|
+
]
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
},
|
|
1992
|
+
"theme": {
|
|
1993
|
+
"default": "default",
|
|
1994
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"enum": [
|
|
1997
|
+
"default",
|
|
1998
|
+
"academy",
|
|
1999
|
+
"dark"
|
|
2000
|
+
]
|
|
2001
|
+
},
|
|
2002
|
+
"width": {
|
|
2003
|
+
"default": 600,
|
|
2004
|
+
"description": "Set the width of chart, default is 600.",
|
|
2005
|
+
"type": "number"
|
|
2006
|
+
},
|
|
2007
|
+
"height": {
|
|
2008
|
+
"default": 400,
|
|
2009
|
+
"description": "Set the height of chart, default is 400.",
|
|
2010
|
+
"type": "number"
|
|
2011
|
+
},
|
|
2012
|
+
"title": {
|
|
2013
|
+
"default": "",
|
|
2014
|
+
"description": "Set the title of chart.",
|
|
2015
|
+
"type": "string"
|
|
2016
|
+
},
|
|
2017
|
+
"axisXTitle": {
|
|
2018
|
+
"default": "",
|
|
2019
|
+
"description": "Set the x-axis title of chart.",
|
|
2020
|
+
"type": "string"
|
|
2021
|
+
},
|
|
2022
|
+
"axisYTitle": {
|
|
2023
|
+
"default": "",
|
|
2024
|
+
"description": "Set the y-axis title of chart.",
|
|
2025
|
+
"type": "string"
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
"required": [
|
|
2029
|
+
"data"
|
|
2030
|
+
],
|
|
2031
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2032
|
+
},
|
|
2033
|
+
"generate_treemap_chart": {
|
|
2034
|
+
"type": "object",
|
|
2035
|
+
"properties": {
|
|
2036
|
+
"data": {
|
|
2037
|
+
"minItems": 1,
|
|
2038
|
+
"type": "array",
|
|
2039
|
+
"items": {
|
|
2040
|
+
"type": "object",
|
|
2041
|
+
"properties": {
|
|
2042
|
+
"name": {
|
|
2043
|
+
"type": "string"
|
|
2044
|
+
},
|
|
2045
|
+
"value": {
|
|
2046
|
+
"type": "number"
|
|
2047
|
+
},
|
|
2048
|
+
"children": {
|
|
2049
|
+
"type": "array",
|
|
2050
|
+
"items": {
|
|
2051
|
+
"type": "object",
|
|
2052
|
+
"properties": {
|
|
2053
|
+
"name": {
|
|
2054
|
+
"type": "string"
|
|
2055
|
+
},
|
|
2056
|
+
"value": {
|
|
2057
|
+
"type": "number"
|
|
2058
|
+
},
|
|
2059
|
+
"children": {
|
|
2060
|
+
"type": "array",
|
|
2061
|
+
"items": {
|
|
2062
|
+
"type": "object",
|
|
2063
|
+
"properties": {
|
|
2064
|
+
"name": {
|
|
2065
|
+
"type": "string"
|
|
2066
|
+
},
|
|
2067
|
+
"value": {
|
|
2068
|
+
"type": "number"
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
"required": [
|
|
2072
|
+
"name",
|
|
2073
|
+
"value"
|
|
2074
|
+
]
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"required": [
|
|
2079
|
+
"name",
|
|
2080
|
+
"value"
|
|
2081
|
+
]
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2085
|
+
"required": [
|
|
2086
|
+
"name",
|
|
2087
|
+
"value"
|
|
2088
|
+
]
|
|
2089
|
+
},
|
|
2090
|
+
"description": "Data for treemap chart which is a hierarchical structure, such as, [{ name: 'Design', value: 70, children: [{ name: 'Tech', value: 20 }] }], and the maximum depth is 3."
|
|
2091
|
+
},
|
|
2092
|
+
"style": {
|
|
2093
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
2094
|
+
"type": "object",
|
|
2095
|
+
"properties": {
|
|
2096
|
+
"backgroundColor": {
|
|
2097
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
2098
|
+
"type": "string"
|
|
2099
|
+
},
|
|
2100
|
+
"palette": {
|
|
2101
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
2102
|
+
"type": "array",
|
|
2103
|
+
"items": {
|
|
2104
|
+
"type": "string"
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
"texture": {
|
|
2108
|
+
"default": "default",
|
|
2109
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
2110
|
+
"type": "string",
|
|
2111
|
+
"enum": [
|
|
2112
|
+
"default",
|
|
2113
|
+
"rough"
|
|
2114
|
+
]
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
},
|
|
2118
|
+
"theme": {
|
|
2119
|
+
"default": "default",
|
|
2120
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
2121
|
+
"type": "string",
|
|
2122
|
+
"enum": [
|
|
2123
|
+
"default",
|
|
2124
|
+
"academy",
|
|
2125
|
+
"dark"
|
|
2126
|
+
]
|
|
2127
|
+
},
|
|
2128
|
+
"width": {
|
|
2129
|
+
"default": 600,
|
|
2130
|
+
"description": "Set the width of chart, default is 600.",
|
|
2131
|
+
"type": "number"
|
|
2132
|
+
},
|
|
2133
|
+
"height": {
|
|
2134
|
+
"default": 400,
|
|
2135
|
+
"description": "Set the height of chart, default is 400.",
|
|
2136
|
+
"type": "number"
|
|
2137
|
+
},
|
|
2138
|
+
"title": {
|
|
2139
|
+
"default": "",
|
|
2140
|
+
"description": "Set the title of chart.",
|
|
2141
|
+
"type": "string"
|
|
2142
|
+
}
|
|
2143
|
+
},
|
|
2144
|
+
"required": [
|
|
2145
|
+
"data"
|
|
2146
|
+
],
|
|
2147
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2148
|
+
},
|
|
2149
|
+
"generate_venn_chart": {
|
|
2150
|
+
"type": "object",
|
|
2151
|
+
"properties": {
|
|
2152
|
+
"data": {
|
|
2153
|
+
"minItems": 1,
|
|
2154
|
+
"type": "array",
|
|
2155
|
+
"items": {
|
|
2156
|
+
"type": "object",
|
|
2157
|
+
"properties": {
|
|
2158
|
+
"label": {
|
|
2159
|
+
"description": "Label for the venn chart segment, such as 'A', 'B', or 'C'.",
|
|
2160
|
+
"type": "string"
|
|
2161
|
+
},
|
|
2162
|
+
"value": {
|
|
2163
|
+
"type": "number",
|
|
2164
|
+
"description": "Value for the venn chart segment, such as 10, 20, or 30."
|
|
2165
|
+
},
|
|
2166
|
+
"sets": {
|
|
2167
|
+
"type": "array",
|
|
2168
|
+
"items": {
|
|
2169
|
+
"type": "string"
|
|
2170
|
+
},
|
|
2171
|
+
"description": "Array of set names that this segment belongs to, such as ['A', 'B'] for an intersection between sets A and B."
|
|
2172
|
+
}
|
|
2173
|
+
},
|
|
2174
|
+
"required": [
|
|
2175
|
+
"value",
|
|
2176
|
+
"sets"
|
|
2177
|
+
]
|
|
2178
|
+
},
|
|
2179
|
+
"description": "Data for venn chart, such as, [{ label: 'A', value: 10, sets: ['A'] }, { label: 'B', value: 20, sets: ['B'] }, { label: 'C', value: 30, sets: ['C'] }, { label: 'AB', value: 5, sets: ['A', 'B'] }]."
|
|
2180
|
+
},
|
|
2181
|
+
"style": {
|
|
2182
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
2183
|
+
"type": "object",
|
|
2184
|
+
"properties": {
|
|
2185
|
+
"backgroundColor": {
|
|
2186
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
2187
|
+
"type": "string"
|
|
2188
|
+
},
|
|
2189
|
+
"palette": {
|
|
2190
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
2191
|
+
"type": "array",
|
|
2192
|
+
"items": {
|
|
2193
|
+
"type": "string"
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
"texture": {
|
|
2197
|
+
"default": "default",
|
|
2198
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
2199
|
+
"type": "string",
|
|
2200
|
+
"enum": [
|
|
2201
|
+
"default",
|
|
2202
|
+
"rough"
|
|
2203
|
+
]
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"theme": {
|
|
2208
|
+
"default": "default",
|
|
2209
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
2210
|
+
"type": "string",
|
|
2211
|
+
"enum": [
|
|
2212
|
+
"default",
|
|
2213
|
+
"academy",
|
|
2214
|
+
"dark"
|
|
2215
|
+
]
|
|
2216
|
+
},
|
|
2217
|
+
"width": {
|
|
2218
|
+
"default": 600,
|
|
2219
|
+
"description": "Set the width of chart, default is 600.",
|
|
2220
|
+
"type": "number"
|
|
2221
|
+
},
|
|
2222
|
+
"height": {
|
|
2223
|
+
"default": 400,
|
|
2224
|
+
"description": "Set the height of chart, default is 400.",
|
|
2225
|
+
"type": "number"
|
|
2226
|
+
},
|
|
2227
|
+
"title": {
|
|
2228
|
+
"default": "",
|
|
2229
|
+
"description": "Set the title of chart.",
|
|
2230
|
+
"type": "string"
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
"required": [
|
|
2234
|
+
"data"
|
|
2235
|
+
],
|
|
2236
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2237
|
+
},
|
|
2238
|
+
"generate_violin_chart": {
|
|
2239
|
+
"type": "object",
|
|
2240
|
+
"properties": {
|
|
2241
|
+
"data": {
|
|
2242
|
+
"minItems": 1,
|
|
2243
|
+
"type": "array",
|
|
2244
|
+
"items": {
|
|
2245
|
+
"type": "object",
|
|
2246
|
+
"properties": {
|
|
2247
|
+
"category": {
|
|
2248
|
+
"type": "string",
|
|
2249
|
+
"description": "Category of the data point, such as '分类一'."
|
|
2250
|
+
},
|
|
2251
|
+
"value": {
|
|
2252
|
+
"type": "number",
|
|
2253
|
+
"description": "Value of the data point, such as 10."
|
|
2254
|
+
},
|
|
2255
|
+
"group": {
|
|
2256
|
+
"description": "Optional group for the data point, used for grouping in the violin chart.",
|
|
2257
|
+
"type": "string"
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
"required": [
|
|
2261
|
+
"category",
|
|
2262
|
+
"value"
|
|
2263
|
+
]
|
|
2264
|
+
},
|
|
2265
|
+
"description": "Data for violin chart, such as, [{ category: 'Category A', value: 10 }], when the data is grouped, the 'group' field is required, such as, [{ category: 'Category B', value: 20, group: 'Group A' }]."
|
|
2266
|
+
},
|
|
2267
|
+
"style": {
|
|
2268
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
2269
|
+
"type": "object",
|
|
2270
|
+
"properties": {
|
|
2271
|
+
"backgroundColor": {
|
|
2272
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
2273
|
+
"type": "string"
|
|
2274
|
+
},
|
|
2275
|
+
"palette": {
|
|
2276
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
2277
|
+
"type": "array",
|
|
2278
|
+
"items": {
|
|
2279
|
+
"type": "string"
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"startAtZero": {
|
|
2283
|
+
"default": false,
|
|
2284
|
+
"description": "Whether to start the axis at zero, optional, default is false.",
|
|
2285
|
+
"type": "boolean"
|
|
2286
|
+
},
|
|
2287
|
+
"texture": {
|
|
2288
|
+
"default": "default",
|
|
2289
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
2290
|
+
"type": "string",
|
|
2291
|
+
"enum": [
|
|
2292
|
+
"default",
|
|
2293
|
+
"rough"
|
|
2294
|
+
]
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
"theme": {
|
|
2299
|
+
"default": "default",
|
|
2300
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
2301
|
+
"type": "string",
|
|
2302
|
+
"enum": [
|
|
2303
|
+
"default",
|
|
2304
|
+
"academy",
|
|
2305
|
+
"dark"
|
|
2306
|
+
]
|
|
2307
|
+
},
|
|
2308
|
+
"width": {
|
|
2309
|
+
"default": 600,
|
|
2310
|
+
"description": "Set the width of chart, default is 600.",
|
|
2311
|
+
"type": "number"
|
|
2312
|
+
},
|
|
2313
|
+
"height": {
|
|
2314
|
+
"default": 400,
|
|
2315
|
+
"description": "Set the height of chart, default is 400.",
|
|
2316
|
+
"type": "number"
|
|
2317
|
+
},
|
|
2318
|
+
"title": {
|
|
2319
|
+
"default": "",
|
|
2320
|
+
"description": "Set the title of chart.",
|
|
2321
|
+
"type": "string"
|
|
2322
|
+
},
|
|
2323
|
+
"axisXTitle": {
|
|
2324
|
+
"default": "",
|
|
2325
|
+
"description": "Set the x-axis title of chart.",
|
|
2326
|
+
"type": "string"
|
|
2327
|
+
},
|
|
2328
|
+
"axisYTitle": {
|
|
2329
|
+
"default": "",
|
|
2330
|
+
"description": "Set the y-axis title of chart.",
|
|
2331
|
+
"type": "string"
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
"required": [
|
|
2335
|
+
"data"
|
|
2336
|
+
],
|
|
2337
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2338
|
+
},
|
|
2339
|
+
"generate_waterfall_chart": {
|
|
2340
|
+
"type": "object",
|
|
2341
|
+
"properties": {
|
|
2342
|
+
"data": {
|
|
2343
|
+
"minItems": 1,
|
|
2344
|
+
"type": "array",
|
|
2345
|
+
"items": {
|
|
2346
|
+
"type": "object",
|
|
2347
|
+
"properties": {
|
|
2348
|
+
"category": {
|
|
2349
|
+
"type": "string"
|
|
2350
|
+
},
|
|
2351
|
+
"value": {
|
|
2352
|
+
"type": "number"
|
|
2353
|
+
},
|
|
2354
|
+
"isIntermediateTotal": {
|
|
2355
|
+
"type": "boolean"
|
|
2356
|
+
},
|
|
2357
|
+
"isTotal": {
|
|
2358
|
+
"type": "boolean"
|
|
2359
|
+
}
|
|
2360
|
+
},
|
|
2361
|
+
"required": [
|
|
2362
|
+
"category"
|
|
2363
|
+
]
|
|
2364
|
+
},
|
|
2365
|
+
"description": "Data for waterfall chart, it should be an array of objects. Each object must contain a `category` field. For regular items, a `value` field is also required. The `isIntermediateTotal` field marks intermediate subtotals, and the `isTotal` field marks the final total. For example, [{ category: 'Initial', value: 100 }, { category: 'Increase', value: 50 }, { category: 'Subtotal', isIntermediateTotal: true }, { category: 'Decrease', value: -30 }, { category: 'Total', isTotal: true }]."
|
|
2366
|
+
},
|
|
2367
|
+
"style": {
|
|
2368
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
2369
|
+
"type": "object",
|
|
2370
|
+
"properties": {
|
|
2371
|
+
"backgroundColor": {
|
|
2372
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
2373
|
+
"type": "string"
|
|
2374
|
+
},
|
|
2375
|
+
"texture": {
|
|
2376
|
+
"default": "default",
|
|
2377
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
2378
|
+
"type": "string",
|
|
2379
|
+
"enum": [
|
|
2380
|
+
"default",
|
|
2381
|
+
"rough"
|
|
2382
|
+
]
|
|
2383
|
+
},
|
|
2384
|
+
"palette": {
|
|
2385
|
+
"type": "object",
|
|
2386
|
+
"properties": {
|
|
2387
|
+
"positiveColor": {
|
|
2388
|
+
"description": "Color for positive values (increases). Default is '#FF4D4F'.",
|
|
2389
|
+
"type": "string"
|
|
2390
|
+
},
|
|
2391
|
+
"negativeColor": {
|
|
2392
|
+
"description": "Color for negative values (decreases). Default is '#2EBB59'.",
|
|
2393
|
+
"type": "string"
|
|
2394
|
+
},
|
|
2395
|
+
"totalColor": {
|
|
2396
|
+
"description": "Color for total and intermediate total bars. Default is '#1783FF'.",
|
|
2397
|
+
"type": "string"
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
},
|
|
2403
|
+
"theme": {
|
|
2404
|
+
"default": "default",
|
|
2405
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
2406
|
+
"type": "string",
|
|
2407
|
+
"enum": [
|
|
2408
|
+
"default",
|
|
2409
|
+
"academy",
|
|
2410
|
+
"dark"
|
|
2411
|
+
]
|
|
2412
|
+
},
|
|
2413
|
+
"width": {
|
|
2414
|
+
"default": 600,
|
|
2415
|
+
"description": "Set the width of chart, default is 600.",
|
|
2416
|
+
"type": "number"
|
|
2417
|
+
},
|
|
2418
|
+
"height": {
|
|
2419
|
+
"default": 400,
|
|
2420
|
+
"description": "Set the height of chart, default is 400.",
|
|
2421
|
+
"type": "number"
|
|
2422
|
+
},
|
|
2423
|
+
"title": {
|
|
2424
|
+
"default": "",
|
|
2425
|
+
"description": "Set the title of chart.",
|
|
2426
|
+
"type": "string"
|
|
2427
|
+
},
|
|
2428
|
+
"axisXTitle": {
|
|
2429
|
+
"default": "",
|
|
2430
|
+
"description": "Set the x-axis title of chart.",
|
|
2431
|
+
"type": "string"
|
|
2432
|
+
},
|
|
2433
|
+
"axisYTitle": {
|
|
2434
|
+
"default": "",
|
|
2435
|
+
"description": "Set the y-axis title of chart.",
|
|
2436
|
+
"type": "string"
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
"required": [
|
|
2440
|
+
"data"
|
|
2441
|
+
],
|
|
2442
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2443
|
+
},
|
|
2444
|
+
"generate_word_cloud_chart": {
|
|
2445
|
+
"type": "object",
|
|
2446
|
+
"properties": {
|
|
2447
|
+
"data": {
|
|
2448
|
+
"minItems": 1,
|
|
2449
|
+
"type": "array",
|
|
2450
|
+
"items": {
|
|
2451
|
+
"type": "object",
|
|
2452
|
+
"properties": {
|
|
2453
|
+
"text": {
|
|
2454
|
+
"type": "string"
|
|
2455
|
+
},
|
|
2456
|
+
"value": {
|
|
2457
|
+
"type": "number"
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
"required": [
|
|
2461
|
+
"text",
|
|
2462
|
+
"value"
|
|
2463
|
+
]
|
|
2464
|
+
},
|
|
2465
|
+
"description": "Data for word cloud chart, it should be an array of objects, each object contains a `text` field and a `value` field, such as, [{ value: 4.272, text: '形成' }]."
|
|
2466
|
+
},
|
|
2467
|
+
"style": {
|
|
2468
|
+
"description": "Style configuration for the chart with a JSON object, optional.",
|
|
2469
|
+
"type": "object",
|
|
2470
|
+
"properties": {
|
|
2471
|
+
"backgroundColor": {
|
|
2472
|
+
"description": "Background color of the chart, such as, '#fff'.",
|
|
2473
|
+
"type": "string"
|
|
2474
|
+
},
|
|
2475
|
+
"palette": {
|
|
2476
|
+
"description": "Color palette for the chart, it is a collection of colors.",
|
|
2477
|
+
"type": "array",
|
|
2478
|
+
"items": {
|
|
2479
|
+
"type": "string"
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
"texture": {
|
|
2483
|
+
"default": "default",
|
|
2484
|
+
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
|
|
2485
|
+
"type": "string",
|
|
2486
|
+
"enum": [
|
|
2487
|
+
"default",
|
|
2488
|
+
"rough"
|
|
2489
|
+
]
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
"theme": {
|
|
2494
|
+
"default": "default",
|
|
2495
|
+
"description": "Set the theme for the chart, optional, default is 'default'.",
|
|
2496
|
+
"type": "string",
|
|
2497
|
+
"enum": [
|
|
2498
|
+
"default",
|
|
2499
|
+
"academy",
|
|
2500
|
+
"dark"
|
|
2501
|
+
]
|
|
2502
|
+
},
|
|
2503
|
+
"width": {
|
|
2504
|
+
"default": 600,
|
|
2505
|
+
"description": "Set the width of chart, default is 600.",
|
|
2506
|
+
"type": "number"
|
|
2507
|
+
},
|
|
2508
|
+
"height": {
|
|
2509
|
+
"default": 400,
|
|
2510
|
+
"description": "Set the height of chart, default is 400.",
|
|
2511
|
+
"type": "number"
|
|
2512
|
+
},
|
|
2513
|
+
"title": {
|
|
2514
|
+
"default": "",
|
|
2515
|
+
"description": "Set the title of chart.",
|
|
2516
|
+
"type": "string"
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
"required": [
|
|
2520
|
+
"data"
|
|
2521
|
+
],
|
|
2522
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2523
|
+
},
|
|
2524
|
+
"generate_spreadsheet": {
|
|
2525
|
+
"type": "object",
|
|
2526
|
+
"properties": {
|
|
2527
|
+
"data": {
|
|
2528
|
+
"minItems": 1,
|
|
2529
|
+
"type": "array",
|
|
2530
|
+
"items": {
|
|
2531
|
+
"type": "object",
|
|
2532
|
+
"propertyNames": {
|
|
2533
|
+
"type": "string"
|
|
2534
|
+
},
|
|
2535
|
+
"additionalProperties": {
|
|
2536
|
+
"anyOf": [
|
|
2537
|
+
{
|
|
2538
|
+
"type": "string"
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
"type": "number"
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
"type": "null"
|
|
2545
|
+
}
|
|
2546
|
+
]
|
|
2547
|
+
}
|
|
2548
|
+
},
|
|
2549
|
+
"description": "Data for spreadsheet, an array of objects where each object represents a row. Keys are column names and values can be string, number, or null. Such as, [{ name: 'John', age: 30 }, { name: 'Jane', age: 25 }]."
|
|
2550
|
+
},
|
|
2551
|
+
"rows": {
|
|
2552
|
+
"description": "Row header fields for pivot table. When 'rows' or 'values' is provided, the spreadsheet will be rendered as a pivot table.",
|
|
2553
|
+
"type": "array",
|
|
2554
|
+
"items": {
|
|
2555
|
+
"type": "string"
|
|
2556
|
+
}
|
|
2557
|
+
},
|
|
2558
|
+
"columns": {
|
|
2559
|
+
"description": "Column header fields, used to specify the order of columns. For regular tables, this determines column order; for pivot tables, this is used for column grouping.",
|
|
2560
|
+
"type": "array",
|
|
2561
|
+
"items": {
|
|
2562
|
+
"type": "string"
|
|
2563
|
+
}
|
|
2564
|
+
},
|
|
2565
|
+
"values": {
|
|
2566
|
+
"description": "Value fields for pivot table. When 'rows' or 'values' is provided, the spreadsheet will be rendered as a pivot table.",
|
|
2567
|
+
"type": "array",
|
|
2568
|
+
"items": {
|
|
2569
|
+
"type": "string"
|
|
2570
|
+
}
|
|
2571
|
+
},
|
|
2572
|
+
"theme": {
|
|
2573
|
+
"default": "default",
|
|
2574
|
+
"description": "Set the theme for the spreadsheet, optional, default is 'default'.",
|
|
2575
|
+
"type": "string",
|
|
2576
|
+
"enum": [
|
|
2577
|
+
"default",
|
|
2578
|
+
"dark"
|
|
2579
|
+
]
|
|
2580
|
+
},
|
|
2581
|
+
"width": {
|
|
2582
|
+
"default": 600,
|
|
2583
|
+
"description": "Set the width of chart, default is 600.",
|
|
2584
|
+
"type": "number"
|
|
2585
|
+
},
|
|
2586
|
+
"height": {
|
|
2587
|
+
"default": 400,
|
|
2588
|
+
"description": "Set the height of chart, default is 400.",
|
|
2589
|
+
"type": "number"
|
|
2590
|
+
}
|
|
2591
|
+
},
|
|
2592
|
+
"required": [
|
|
2593
|
+
"data"
|
|
2594
|
+
],
|
|
2595
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
]
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"id": "prompts",
|
|
2603
|
+
"capability": "prompts",
|
|
2604
|
+
"status": "unsupported",
|
|
2605
|
+
"durationMs": 0.0014999999984866008,
|
|
2606
|
+
"message": "Prompts are not advertised by the target.",
|
|
2607
|
+
"evidence": [
|
|
2608
|
+
{
|
|
2609
|
+
"endpoint": "prompts/list",
|
|
2610
|
+
"advertised": false,
|
|
2611
|
+
"responded": false,
|
|
2612
|
+
"minimalShapePresent": false,
|
|
2613
|
+
"diagnostics": []
|
|
2614
|
+
}
|
|
2615
|
+
]
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"id": "resources",
|
|
2619
|
+
"capability": "resources",
|
|
2620
|
+
"status": "unsupported",
|
|
2621
|
+
"durationMs": 0.002874999998311978,
|
|
2622
|
+
"message": "Resources are not advertised by the target.",
|
|
2623
|
+
"evidence": [
|
|
2624
|
+
{
|
|
2625
|
+
"endpoint": "resources/list | resources/templates/list",
|
|
2626
|
+
"advertised": false,
|
|
2627
|
+
"responded": false,
|
|
2628
|
+
"minimalShapePresent": false,
|
|
2629
|
+
"diagnostics": []
|
|
2630
|
+
}
|
|
2631
|
+
]
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"id": "security-lite",
|
|
2635
|
+
"capability": "security-lite",
|
|
2636
|
+
"status": "pass",
|
|
2637
|
+
"durationMs": 0.12066699999923003,
|
|
2638
|
+
"message": "No security issues detected (lightweight scan).",
|
|
2639
|
+
"evidence": [
|
|
2640
|
+
{
|
|
2641
|
+
"endpoint": "security/scan-lite",
|
|
2642
|
+
"advertised": true,
|
|
2643
|
+
"responded": true,
|
|
2644
|
+
"minimalShapePresent": true,
|
|
2645
|
+
"itemCount": 0
|
|
2646
|
+
}
|
|
2647
|
+
]
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"id": "conformance",
|
|
2651
|
+
"capability": "conformance",
|
|
2652
|
+
"status": "pass",
|
|
2653
|
+
"durationMs": 2.8167500000017753,
|
|
2654
|
+
"message": "All 7 conformance checks passed.",
|
|
2655
|
+
"evidence": [
|
|
2656
|
+
{
|
|
2657
|
+
"endpoint": "conformance/check",
|
|
2658
|
+
"advertised": true,
|
|
2659
|
+
"responded": true,
|
|
2660
|
+
"minimalShapePresent": true,
|
|
2661
|
+
"itemCount": 7,
|
|
2662
|
+
"identifiers": [],
|
|
2663
|
+
"diagnostics": [
|
|
2664
|
+
"[pass] capabilities-present: Server returned capabilities object.",
|
|
2665
|
+
"[pass] server-info: Server provided initialization info.",
|
|
2666
|
+
"[pass] tools-capability-match: tools/list returned 27 tool(s).",
|
|
2667
|
+
"[pass] prompts-capability-match: Prompts not advertised — endpoint check skipped.",
|
|
2668
|
+
"[pass] resources-capability-match: Resources not advertised — endpoint check skipped.",
|
|
2669
|
+
"[pass] tool-response-content: No safe tool to invoke — content validation skipped.",
|
|
2670
|
+
"[pass] error-handling: Server returned proper error code -32601 for unknown method."
|
|
2671
|
+
]
|
|
2672
|
+
}
|
|
2673
|
+
]
|
|
2674
|
+
},
|
|
2675
|
+
{
|
|
2676
|
+
"id": "schema-quality",
|
|
2677
|
+
"capability": "schema-quality",
|
|
2678
|
+
"status": "pass",
|
|
2679
|
+
"durationMs": 1.4510000000009313,
|
|
2680
|
+
"message": "All 27 item(s) have good schema quality.",
|
|
2681
|
+
"evidence": [
|
|
2682
|
+
{
|
|
2683
|
+
"endpoint": "schema-quality/scan",
|
|
2684
|
+
"advertised": true,
|
|
2685
|
+
"responded": true,
|
|
2686
|
+
"minimalShapePresent": true,
|
|
2687
|
+
"itemCount": 0,
|
|
2688
|
+
"identifiers": []
|
|
2689
|
+
}
|
|
2690
|
+
]
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
"id": "security",
|
|
2694
|
+
"capability": "security",
|
|
2695
|
+
"status": "pass",
|
|
2696
|
+
"durationMs": 1.5284999999967113,
|
|
2697
|
+
"message": "No security issues detected.",
|
|
2698
|
+
"evidence": [
|
|
2699
|
+
{
|
|
2700
|
+
"endpoint": "security/scan",
|
|
2701
|
+
"advertised": true,
|
|
2702
|
+
"responded": true,
|
|
2703
|
+
"minimalShapePresent": true,
|
|
2704
|
+
"itemCount": 0
|
|
2705
|
+
}
|
|
2706
|
+
]
|
|
2707
|
+
}
|
|
2708
|
+
],
|
|
2709
|
+
"healthScore": {
|
|
2710
|
+
"overall": 93,
|
|
2711
|
+
"grade": "A",
|
|
2712
|
+
"dimensions": [
|
|
2713
|
+
{
|
|
2714
|
+
"name": "Protocol Compliance",
|
|
2715
|
+
"weight": 0.3,
|
|
2716
|
+
"score": 100,
|
|
2717
|
+
"details": [
|
|
2718
|
+
"conformance: pass (100/100)"
|
|
2719
|
+
]
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
"name": "Schema Quality",
|
|
2723
|
+
"weight": 0.2,
|
|
2724
|
+
"score": 100,
|
|
2725
|
+
"details": [
|
|
2726
|
+
"schema-quality: pass (100/100)"
|
|
2727
|
+
]
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
"name": "Security",
|
|
2731
|
+
"weight": 0.2,
|
|
2732
|
+
"score": 100,
|
|
2733
|
+
"details": [
|
|
2734
|
+
"security-lite: pass (100/100)",
|
|
2735
|
+
"security: pass (100/100)"
|
|
2736
|
+
]
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"name": "Reliability",
|
|
2740
|
+
"weight": 0.2,
|
|
2741
|
+
"score": 67,
|
|
2742
|
+
"details": [
|
|
2743
|
+
"tools: pass (100/100)",
|
|
2744
|
+
"prompts: unsupported (50/100)",
|
|
2745
|
+
"resources: unsupported (50/100)"
|
|
2746
|
+
]
|
|
2747
|
+
},
|
|
2748
|
+
{
|
|
2749
|
+
"name": "Performance",
|
|
2750
|
+
"weight": 0.1,
|
|
2751
|
+
"score": 100,
|
|
2752
|
+
"details": [
|
|
2753
|
+
"Connect: 3548ms",
|
|
2754
|
+
"p95 latency: 3ms (3 operations)"
|
|
2755
|
+
]
|
|
2756
|
+
}
|
|
2757
|
+
]
|
|
2758
|
+
},
|
|
2759
|
+
"performanceMetrics": {
|
|
2760
|
+
"connectMs": 3548.425417000002,
|
|
2761
|
+
"toolsListMs": 2.671415999997407,
|
|
2762
|
+
"promptsListMs": 0.0014999999984866008,
|
|
2763
|
+
"resourcesListMs": 0.002874999998311978
|
|
2764
|
+
}
|
|
2765
|
+
}
|