plotagents 0.5.0 → 0.8.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/AGENTS.md +29 -5
- package/README.md +44 -15
- package/bin/plotagents.js +40 -14
- package/dist/plotagents-geo.js +1 -1
- package/dist/plotagents.js +6161 -757
- package/docs/api.md +23 -5
- package/docs/charts.md +229 -10
- package/docs/colorscales.md +46 -0
- package/docs/dashboards.md +79 -0
- package/docs/es/agents.md +102 -0
- package/docs/es/api.md +172 -0
- package/docs/es/charts.md +436 -0
- package/docs/es/colorscales.md +46 -0
- package/docs/es/dashboards.md +79 -0
- package/docs/es/getting-started.md +142 -0
- package/docs/es/rendering.md +47 -0
- package/docs/es/themes.md +116 -0
- package/docs/getting-started.md +6 -2
- package/docs/themes.md +39 -9
- package/index.d.ts +275 -20
- package/package.json +11 -4
- package/schema.json +1382 -53
- package/skills/plotagents/SKILL.md +105 -0
- package/src/axes.js +11 -3
- package/src/charts/bar.js +40 -21
- package/src/charts/categorical.js +31 -7
- package/src/charts/chord.js +6 -4
- package/src/charts/choropleth.js +287 -37
- package/src/charts/corr.js +512 -0
- package/src/charts/dist.js +39 -21
- package/src/charts/donut.js +4 -2
- package/src/charts/gantt.js +460 -0
- package/src/charts/heatmap.js +2 -2
- package/src/charts/kpi.js +11 -8
- package/src/charts/line.js +187 -43
- package/src/charts/network.js +557 -189
- package/src/charts/pointmap.js +602 -0
- package/src/charts/radar.js +7 -1
- package/src/charts/regplot.js +16 -4
- package/src/charts/sankey.js +42 -6
- package/src/charts/scatter.js +103 -23
- package/src/charts/sunburst.js +7 -6
- package/src/charts/table.js +882 -0
- package/src/charts/treemap.js +12 -9
- package/src/charts/wordcloud.js +177 -0
- package/src/colorscales.js +193 -0
- package/src/dashboard.js +451 -0
- package/src/dashed.js +1 -1
- package/src/data.js +4 -2
- package/src/facet.js +4 -3
- package/src/format.js +80 -25
- package/src/frame.js +101 -29
- package/src/geo/projection.js +76 -9
- package/src/geo/registry.js +87 -8
- package/src/hierarchy.js +6 -0
- package/src/i18n.js +107 -0
- package/src/index.js +92 -14
- package/src/infer.js +18 -1
- package/src/interact.js +157 -36
- package/src/lint.js +353 -11
- package/src/runtime.js +301 -101
- package/src/scale.js +82 -11
- package/src/schema.js +235 -36
- package/src/stats.js +76 -17
- package/src/svg.js +4 -1
- package/src/text.js +5 -0
- package/src/theme.js +101 -14
package/schema.json
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://unpkg.com/plotagents/schema.json",
|
|
4
4
|
"title": "plotagents spec",
|
|
5
|
-
"description": "Declarative chart spec. Data as rows (tidy) plus the field name for each role. Everything else has well-designed defaults.",
|
|
5
|
+
"description": "Declarative chart spec. Data as rows (tidy) plus the field name for each role. Everything else has well-designed defaults. `data` is required except for kpi (`items`), flowchart (`nodes` + `edges`), chord (`matrix`) and wordcloud with raw `text`.",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": [
|
|
8
|
-
"data"
|
|
9
|
-
],
|
|
10
7
|
"properties": {
|
|
11
8
|
"type": {
|
|
12
9
|
"type": "string",
|
|
@@ -42,8 +39,14 @@
|
|
|
42
39
|
"chord",
|
|
43
40
|
"pyramid",
|
|
44
41
|
"flowchart",
|
|
42
|
+
"gantt",
|
|
43
|
+
"wordcloud",
|
|
45
44
|
"choropleth",
|
|
46
45
|
"symbolmap",
|
|
46
|
+
"pointmap",
|
|
47
|
+
"table",
|
|
48
|
+
"corr",
|
|
49
|
+
"pairplot",
|
|
47
50
|
"barplot",
|
|
48
51
|
"countplot",
|
|
49
52
|
"columns",
|
|
@@ -67,6 +70,13 @@
|
|
|
67
70
|
"pointplot",
|
|
68
71
|
"spider",
|
|
69
72
|
"doughnut",
|
|
73
|
+
"dotmap",
|
|
74
|
+
"dot-map",
|
|
75
|
+
"tilemap",
|
|
76
|
+
"basemap",
|
|
77
|
+
"mapa-puntos",
|
|
78
|
+
"mapa-de-puntos",
|
|
79
|
+
"latlon",
|
|
70
80
|
"graph",
|
|
71
81
|
"force",
|
|
72
82
|
"red",
|
|
@@ -86,13 +96,62 @@
|
|
|
86
96
|
"symbol",
|
|
87
97
|
"bubblemap",
|
|
88
98
|
"mapa-simbolos",
|
|
99
|
+
"words",
|
|
100
|
+
"word-cloud",
|
|
101
|
+
"wordclouds",
|
|
102
|
+
"tagcloud",
|
|
103
|
+
"tag-cloud",
|
|
104
|
+
"nube",
|
|
105
|
+
"nube-de-palabras",
|
|
106
|
+
"cloud",
|
|
107
|
+
"timeline",
|
|
108
|
+
"roadmap",
|
|
109
|
+
"schedule",
|
|
110
|
+
"cronograma",
|
|
111
|
+
"carta-gantt",
|
|
112
|
+
"ganttchart",
|
|
113
|
+
"gantt-chart",
|
|
114
|
+
"planning",
|
|
115
|
+
"tabla",
|
|
116
|
+
"tables",
|
|
117
|
+
"datatable",
|
|
118
|
+
"data-table",
|
|
119
|
+
"grid",
|
|
120
|
+
"tableau",
|
|
121
|
+
"tabelle",
|
|
122
|
+
"tabela",
|
|
123
|
+
"spreadsheet",
|
|
124
|
+
"planilla",
|
|
125
|
+
"correlation",
|
|
126
|
+
"correlations",
|
|
127
|
+
"corrplot",
|
|
128
|
+
"corrmatrix",
|
|
129
|
+
"corr-matrix",
|
|
130
|
+
"correlation-matrix",
|
|
131
|
+
"correlogram",
|
|
132
|
+
"correlograma",
|
|
133
|
+
"correlacion",
|
|
134
|
+
"correlación",
|
|
135
|
+
"matriz-correlacion",
|
|
136
|
+
"matriz-de-correlacion",
|
|
137
|
+
"matriz-de-correlación",
|
|
138
|
+
"clustermap",
|
|
139
|
+
"cluster-map",
|
|
140
|
+
"pairs",
|
|
141
|
+
"pairgrid",
|
|
142
|
+
"splom",
|
|
143
|
+
"scattermatrix",
|
|
144
|
+
"scatter-matrix",
|
|
145
|
+
"scatterplot-matrix",
|
|
146
|
+
"matriz-de-dispersion",
|
|
147
|
+
"matriz-de-dispersión",
|
|
89
148
|
"tree",
|
|
90
149
|
"stat",
|
|
91
150
|
"stats",
|
|
92
151
|
"number",
|
|
93
152
|
"heat"
|
|
94
153
|
],
|
|
95
|
-
"description": "Compare: bar, count. Time: line, area. Relationships: scatter, bubble, regplot, residplot, jointplot, radar. Distributions (seaborn): hist, kde, ecdf, box, violin, strip, swarm, point. Part-to-whole: treemap, sunburst, donut, pie. Other: heatmap, sankey, kpi. seaborn names are accepted (barplot, countplot, histplot, kdeplot, boxplot, violinplot, lmplot…). \"auto\" (default) picks from the data."
|
|
154
|
+
"description": "Compare: bar, count. Time: line, area. Schedules: gantt. Relationships: scatter, bubble, regplot, residplot, jointplot, radar, corr (correlation matrix; clustermap), pairplot (scatter-plot matrix). Distributions (seaborn): hist, kde, ecdf, box, violin, strip, swarm, point. Part-to-whole: treemap, sunburst, donut, pie. Other: heatmap, sankey, kpi, network, chord, pyramid, flowchart, wordcloud. Maps: choropleth, symbolmap, pointmap (lat/lon dots over a tile basemap). seaborn names are accepted (barplot, countplot, histplot, kdeplot, boxplot, violinplot, lmplot…). \"auto\" (default) picks from the data."
|
|
96
155
|
},
|
|
97
156
|
"data": {
|
|
98
157
|
"description": "Array of rows, e.g. [{ \"region\": \"Biobío\", \"sales\": 1240 }]. For kpi it can be omitted in favor of `items`.",
|
|
@@ -124,9 +183,13 @@
|
|
|
124
183
|
"type": "string",
|
|
125
184
|
"enum": [
|
|
126
185
|
"es",
|
|
127
|
-
"en"
|
|
186
|
+
"en",
|
|
187
|
+
"pt",
|
|
188
|
+
"fr",
|
|
189
|
+
"de",
|
|
190
|
+
"auto"
|
|
128
191
|
],
|
|
129
|
-
"description": "Language and number format. Default \"es\" (1.234,5);
|
|
192
|
+
"description": "Language and number format. Default \"es\" (1.234,5); \"en\" for 1,234.5; also \"pt\", \"fr\", \"de\". \"auto\" recognizes the language from the title, subtitle, column names and categories (tables do this when `locale` is omitted)."
|
|
130
193
|
},
|
|
131
194
|
"x": {
|
|
132
195
|
"type": "string",
|
|
@@ -150,6 +213,10 @@
|
|
|
150
213
|
"type": "string",
|
|
151
214
|
"description": "Field that splits the data into colored series. Alias: hue."
|
|
152
215
|
},
|
|
216
|
+
"color": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"description": "Alias of series when it names a field (a \"#hex\" value is a fixed color instead)."
|
|
219
|
+
},
|
|
153
220
|
"hue": {
|
|
154
221
|
"type": "string",
|
|
155
222
|
"description": "Alias of series (seaborn naming)."
|
|
@@ -164,7 +231,7 @@
|
|
|
164
231
|
},
|
|
165
232
|
"group": {
|
|
166
233
|
"type": "string",
|
|
167
|
-
"description": "Level-1 group field for a two-level treemap (shortcut for path)."
|
|
234
|
+
"description": "Level-1 group field for a two-level treemap (shortcut for path). gantt: phase/workstream field (one colored section per phase). table: rows grouped under a header per value."
|
|
168
235
|
},
|
|
169
236
|
"path": {
|
|
170
237
|
"type": "array",
|
|
@@ -249,29 +316,211 @@
|
|
|
249
316
|
}
|
|
250
317
|
}
|
|
251
318
|
},
|
|
319
|
+
"text": {
|
|
320
|
+
"description": "wordcloud: field with the words, OR the raw text to count (a string or a list of strings, e.g. open survey answers). Raw text drops Spanish/English stopwords.",
|
|
321
|
+
"anyOf": [
|
|
322
|
+
{
|
|
323
|
+
"type": "string"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"type": "array",
|
|
327
|
+
"items": {
|
|
328
|
+
"type": "string"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"textField": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "wordcloud: field holding free text in each row; words are counted across rows."
|
|
336
|
+
},
|
|
337
|
+
"stopwords": {
|
|
338
|
+
"type": "array",
|
|
339
|
+
"items": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"description": "wordcloud: extra words to ignore when counting raw text."
|
|
343
|
+
},
|
|
344
|
+
"minFont": {
|
|
345
|
+
"type": "number",
|
|
346
|
+
"description": "wordcloud: smallest font size (default 11)."
|
|
347
|
+
},
|
|
348
|
+
"maxFont": {
|
|
349
|
+
"type": "number",
|
|
350
|
+
"description": "wordcloud: largest font size (default from the panel size)."
|
|
351
|
+
},
|
|
352
|
+
"task": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"description": "gantt: task name field (one row per task)."
|
|
355
|
+
},
|
|
356
|
+
"start": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "gantt: start date field (\"2026-03-02\", \"2026-03\") or a number (e.g. week)."
|
|
359
|
+
},
|
|
360
|
+
"end": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "gantt: end date field. Day dates are inclusive. Missing end, or end equal to start, makes a milestone."
|
|
363
|
+
},
|
|
364
|
+
"duration": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"description": "gantt: duration field (days, or units of a numeric axis) instead of `end`."
|
|
367
|
+
},
|
|
368
|
+
"progress": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"description": "gantt: completion field, 0–1 or 0–100. The filled part of each bar is the progress."
|
|
371
|
+
},
|
|
372
|
+
"dependsOn": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"description": "gantt: field with the name(s) of the predecessor task(s) (\"A\" or \"A, B\"): draws arrows."
|
|
375
|
+
},
|
|
376
|
+
"milestone": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"description": "gantt: boolean field that marks milestones (drawn as diamonds)."
|
|
379
|
+
},
|
|
380
|
+
"today": {
|
|
381
|
+
"description": "gantt: date of the \"today\" line (\"2026-03-12\"), or true for the current date.",
|
|
382
|
+
"anyOf": [
|
|
383
|
+
{
|
|
384
|
+
"type": "string"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"type": "boolean"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"type": "number"
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"groupHeaders": {
|
|
395
|
+
"description": "gantt: false draws phases as a color legend instead of section headers.",
|
|
396
|
+
"anyOf": [
|
|
397
|
+
{
|
|
398
|
+
"type": "boolean"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"type": "string",
|
|
402
|
+
"enum": [
|
|
403
|
+
"compact"
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
},
|
|
408
|
+
"rowHeight": {
|
|
409
|
+
"type": "number",
|
|
410
|
+
"description": "gantt: row height in px."
|
|
411
|
+
},
|
|
412
|
+
"collapsed": {
|
|
413
|
+
"description": "gantt: phases (values of `group`) drawn collapsed into one summary row; true collapses all. In the browser a click on a phase header toggles it.",
|
|
414
|
+
"anyOf": [
|
|
415
|
+
{
|
|
416
|
+
"type": "boolean"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "string"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "array",
|
|
423
|
+
"items": {
|
|
424
|
+
"type": "string"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
"collapsible": {
|
|
430
|
+
"type": "boolean",
|
|
431
|
+
"description": "gantt: false disables click-to-collapse of phases in the browser."
|
|
432
|
+
},
|
|
433
|
+
"critical": {
|
|
434
|
+
"type": "boolean",
|
|
435
|
+
"description": "gantt: highlight the critical path, the zero-slack chain along `dependsOn`."
|
|
436
|
+
},
|
|
437
|
+
"criticalColor": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"description": "gantt: color of the critical path."
|
|
440
|
+
},
|
|
441
|
+
"weekends": {
|
|
442
|
+
"type": "boolean",
|
|
443
|
+
"description": "gantt: shade weekends on day plans of up to 120 days (default true)."
|
|
444
|
+
},
|
|
445
|
+
"todayColor": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"description": "gantt: color of the \"today\" line."
|
|
448
|
+
},
|
|
449
|
+
"sort": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"enum": [
|
|
452
|
+
"desc",
|
|
453
|
+
"asc",
|
|
454
|
+
"none",
|
|
455
|
+
"alpha",
|
|
456
|
+
"start"
|
|
457
|
+
],
|
|
458
|
+
"description": "bar: category order (desc by default unless the categories are time). gantt: \"start\" orders tasks by start date. donut/chord: \"none\" keeps the data order."
|
|
459
|
+
},
|
|
252
460
|
"geo": {
|
|
253
|
-
"description": "choropleth/symbolmap: \"chile\" (16 regions, default), \"usa\" (50 states + DC, Albers with Alaska/Hawaii insets; Puerto Rico when it has data), \"world\" (countries), a name registered with registerGeo(), or a GeoJSON FeatureCollection.",
|
|
461
|
+
"description": "choropleth/symbolmap: \"chile\" (16 regions, default), \"usa\" (50 states + DC, Albers with Alaska/Hawaii insets; Puerto Rico when it has data), \"world\" (countries), a name registered with registerGeo(), or YOUR OWN geometry: a GeoJSON FeatureCollection, Feature, list of Features or bare geometry, or a TopoJSON Topology. Polygons are filled, LineStrings stroked and Points drawn as dots. In the browser, render() also accepts a URL to a .geojson/.topojson file.",
|
|
254
462
|
"anyOf": [
|
|
255
463
|
{
|
|
256
464
|
"type": "string"
|
|
257
465
|
},
|
|
258
466
|
{
|
|
259
467
|
"type": "object"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"type": "array",
|
|
471
|
+
"items": {
|
|
472
|
+
"type": "object"
|
|
473
|
+
}
|
|
260
474
|
}
|
|
261
475
|
]
|
|
262
476
|
},
|
|
477
|
+
"geoObject": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"description": "TopoJSON: name of the object inside `objects` to draw (default: the first one)."
|
|
480
|
+
},
|
|
263
481
|
"key": {
|
|
264
482
|
"type": "string",
|
|
265
483
|
"description": "choropleth/symbolmap: data field with the region, state or country name/code to match (US: \"TX\", \"Texas\", \"06\")."
|
|
266
484
|
},
|
|
267
485
|
"projection": {
|
|
268
|
-
"type": "
|
|
269
|
-
"
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
486
|
+
"description": "Map projection (picked automatically): \"mercator\", \"equalEarth\", \"albersUsa\", \"equirectangular\", \"conic\" (or { type: \"conic\", parallels: [-30, -45], rotate: 72 }), \"identity\" (coordinates already in pixels, y down) or \"planar\" (projected coordinates such as UTM metres, y up; chosen automatically when coordinates are outside lon/lat range).",
|
|
487
|
+
"anyOf": [
|
|
488
|
+
{
|
|
489
|
+
"type": "string",
|
|
490
|
+
"enum": [
|
|
491
|
+
"mercator",
|
|
492
|
+
"equalEarth",
|
|
493
|
+
"albersUsa",
|
|
494
|
+
"equirectangular",
|
|
495
|
+
"conic",
|
|
496
|
+
"identity",
|
|
497
|
+
"planar"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"type": "object",
|
|
502
|
+
"properties": {
|
|
503
|
+
"type": {
|
|
504
|
+
"type": "string"
|
|
505
|
+
},
|
|
506
|
+
"parallels": {
|
|
507
|
+
"type": "array",
|
|
508
|
+
"items": {
|
|
509
|
+
"type": "number"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"rotate": {
|
|
513
|
+
"type": "number"
|
|
514
|
+
},
|
|
515
|
+
"center": {
|
|
516
|
+
"type": "array",
|
|
517
|
+
"items": {
|
|
518
|
+
"type": "number"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
]
|
|
275
524
|
},
|
|
276
525
|
"values": {
|
|
277
526
|
"type": "boolean",
|
|
@@ -279,7 +528,169 @@
|
|
|
279
528
|
},
|
|
280
529
|
"featureKey": {
|
|
281
530
|
"type": "string",
|
|
282
|
-
"description": "choropleth: feature property to match against
|
|
531
|
+
"description": "choropleth: feature property to match `key` against. Default tries code, id, ISO-3, name and aliases, then any property whose values match the data (e.g. \"CUT_REG\", \"GEOID\")."
|
|
532
|
+
},
|
|
533
|
+
"nameKey": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "choropleth: feature property with the display name (default: name, NOMBRE, NAME_1, ADMIN…)."
|
|
536
|
+
},
|
|
537
|
+
"fitTo": {
|
|
538
|
+
"description": "Map framing: zoom to some regions (names or codes), a bounding box [lonMin, latMin, lonMax, latMax], or \"markers\". The rest of the map stays as context, clipped.",
|
|
539
|
+
"anyOf": [
|
|
540
|
+
{
|
|
541
|
+
"type": "string"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "array",
|
|
545
|
+
"items": {
|
|
546
|
+
"anyOf": [
|
|
547
|
+
{
|
|
548
|
+
"type": "string"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"type": "number"
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
"markers": {
|
|
559
|
+
"description": "Map: points on top, from [{ lon, lat, label, value?, color? }] or { data, lon, lat, label, size, color, legend, maxRadius, labels }. With a size field, circles are area-proportional.",
|
|
560
|
+
"anyOf": [
|
|
561
|
+
{
|
|
562
|
+
"type": "array",
|
|
563
|
+
"items": {
|
|
564
|
+
"type": "object"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"type": "object"
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
"layers": {
|
|
573
|
+
"type": "array",
|
|
574
|
+
"description": "Map: extra GeoJSON drawn over (or `below: true` under) the regions: rivers, roads, routes, borders, points. Each { geo, label?, stroke?, width?, fill?, dash?, opacity?, below? }; a `label` adds a legend key.",
|
|
575
|
+
"items": {
|
|
576
|
+
"type": "object"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"borderColor": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"description": "Map: color of the borders between regions."
|
|
582
|
+
},
|
|
583
|
+
"borderWidth": {
|
|
584
|
+
"type": "number",
|
|
585
|
+
"description": "Map: width of the borders between regions."
|
|
586
|
+
},
|
|
587
|
+
"pointRadius": {
|
|
588
|
+
"type": "number",
|
|
589
|
+
"description": "Map: radius of Point features in your own GeoJSON (default 5)."
|
|
590
|
+
},
|
|
591
|
+
"missing": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"enum": [
|
|
594
|
+
"hatch",
|
|
595
|
+
"plain"
|
|
596
|
+
],
|
|
597
|
+
"description": "choropleth: how regions without data look: hatched (default) or \"plain\" (flat tint)."
|
|
598
|
+
},
|
|
599
|
+
"thresholds": {
|
|
600
|
+
"type": "array",
|
|
601
|
+
"items": {
|
|
602
|
+
"type": "number"
|
|
603
|
+
},
|
|
604
|
+
"description": "choropleth: class breaks (same as a list in `scale`)."
|
|
605
|
+
},
|
|
606
|
+
"lat": {
|
|
607
|
+
"type": "string",
|
|
608
|
+
"description": "pointmap: latitude field (auto-detected: lat, latitude, latitud)."
|
|
609
|
+
},
|
|
610
|
+
"lon": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"description": "pointmap: longitude field (auto-detected: lon, lng, longitude, longitud)."
|
|
613
|
+
},
|
|
614
|
+
"tiles": {
|
|
615
|
+
"description": "pointmap: basemap. \"osm\" (default), \"esri-gray\", \"esri-dark\", \"carto-light\", \"carto-dark\", \"mapbox-light\", \"mapbox-dark\" (needs `tilesKey`), your own { url, attribution, subdomains, maxZoom, retina } with {z}/{x}/{y}, or false for none (vector world outline).",
|
|
616
|
+
"anyOf": [
|
|
617
|
+
{
|
|
618
|
+
"type": "string",
|
|
619
|
+
"enum": [
|
|
620
|
+
"osm",
|
|
621
|
+
"esri-gray",
|
|
622
|
+
"esri-dark",
|
|
623
|
+
"carto-light",
|
|
624
|
+
"carto-dark",
|
|
625
|
+
"mapbox-light",
|
|
626
|
+
"mapbox-dark"
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"type": "boolean",
|
|
631
|
+
"enum": [
|
|
632
|
+
false
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"type": "object",
|
|
637
|
+
"properties": {
|
|
638
|
+
"url": {
|
|
639
|
+
"type": "string"
|
|
640
|
+
},
|
|
641
|
+
"attribution": {
|
|
642
|
+
"type": "string"
|
|
643
|
+
},
|
|
644
|
+
"subdomains": {
|
|
645
|
+
"type": "string"
|
|
646
|
+
},
|
|
647
|
+
"maxZoom": {
|
|
648
|
+
"type": "number"
|
|
649
|
+
},
|
|
650
|
+
"retina": {
|
|
651
|
+
"type": "boolean"
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
"required": [
|
|
655
|
+
"url"
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
"tilesKey": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"description": "pointmap: API key or PUBLIC token for the tile provider (Mapbox \"pk.…\"; a secret \"sk.\" token is rejected because it would be visible in the SVG)."
|
|
663
|
+
},
|
|
664
|
+
"tileStyle": {
|
|
665
|
+
"type": "string",
|
|
666
|
+
"enum": [
|
|
667
|
+
"muted",
|
|
668
|
+
"original"
|
|
669
|
+
],
|
|
670
|
+
"description": "pointmap: \"muted\" (default) desaturates the basemap so the data stands out; \"original\" keeps its colors."
|
|
671
|
+
},
|
|
672
|
+
"tileOpacity": {
|
|
673
|
+
"type": "number",
|
|
674
|
+
"minimum": 0,
|
|
675
|
+
"maximum": 1,
|
|
676
|
+
"description": "pointmap: basemap opacity."
|
|
677
|
+
},
|
|
678
|
+
"zoom": {
|
|
679
|
+
"type": "number",
|
|
680
|
+
"description": "pointmap: tile zoom level (automatic from the points by default)."
|
|
681
|
+
},
|
|
682
|
+
"center": {
|
|
683
|
+
"type": "array",
|
|
684
|
+
"items": {
|
|
685
|
+
"type": "number"
|
|
686
|
+
},
|
|
687
|
+
"minItems": 2,
|
|
688
|
+
"maxItems": 2,
|
|
689
|
+
"description": "pointmap: map center [lon, lat] (default: fitted to the points)."
|
|
690
|
+
},
|
|
691
|
+
"tall": {
|
|
692
|
+
"type": "boolean",
|
|
693
|
+
"description": "Map: false prevents the tall layout (map on the left, ranked label column on the right) for elongated territories."
|
|
283
694
|
},
|
|
284
695
|
"midpoint": {
|
|
285
696
|
"type": "number",
|
|
@@ -289,6 +700,26 @@
|
|
|
289
700
|
"type": "integer",
|
|
290
701
|
"description": "choropleth: number of color classes (default 5)."
|
|
291
702
|
},
|
|
703
|
+
"scale": {
|
|
704
|
+
"description": "choropleth: \"quantile\" (default), \"equal\", \"continuous\", \"categorical\" (text values get one color each; automatic when `value` holds text) or a list of thresholds.",
|
|
705
|
+
"anyOf": [
|
|
706
|
+
{
|
|
707
|
+
"type": "string",
|
|
708
|
+
"enum": [
|
|
709
|
+
"quantile",
|
|
710
|
+
"equal",
|
|
711
|
+
"continuous",
|
|
712
|
+
"categorical"
|
|
713
|
+
]
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"type": "array",
|
|
717
|
+
"items": {
|
|
718
|
+
"type": "number"
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
]
|
|
722
|
+
},
|
|
292
723
|
"nodes": {
|
|
293
724
|
"type": "array",
|
|
294
725
|
"items": {
|
|
@@ -307,9 +738,53 @@
|
|
|
307
738
|
"type": "string",
|
|
308
739
|
"enum": [
|
|
309
740
|
"force",
|
|
741
|
+
"circular",
|
|
742
|
+
"radial",
|
|
743
|
+
"concentric",
|
|
744
|
+
"clusters",
|
|
745
|
+
"tree",
|
|
746
|
+
"grid",
|
|
310
747
|
"circle"
|
|
311
748
|
],
|
|
312
|
-
"description": "network layout."
|
|
749
|
+
"description": "network layout: \"force\" (default) deterministic force-directed; \"circular\" around a circle by group with names rotated outward (\"circle\" = circular); \"radial\" tree rings from `focus` or the most connected node; \"concentric\" rings by weight; \"clusters\" one cluster per group; \"tree\" the radial tree laid flat; \"grid\" ordered by group."
|
|
750
|
+
},
|
|
751
|
+
"curveness": {
|
|
752
|
+
"type": "number",
|
|
753
|
+
"minimum": 0,
|
|
754
|
+
"description": "network: edge bend as a share of its length (default 0.3; 0 = straight)."
|
|
755
|
+
},
|
|
756
|
+
"maxRadius": {
|
|
757
|
+
"type": "number",
|
|
758
|
+
"description": "network/symbolmap/pointmap/bubble: largest node or circle radius in px."
|
|
759
|
+
},
|
|
760
|
+
"iterations": {
|
|
761
|
+
"type": "integer",
|
|
762
|
+
"description": "network: force-layout iterations (automatic by size)."
|
|
763
|
+
},
|
|
764
|
+
"nodeId": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"description": "network: id field in `nodes` (default id/name)."
|
|
767
|
+
},
|
|
768
|
+
"nodeLabel": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"description": "network: label field in `nodes` (default label, else the id)."
|
|
771
|
+
},
|
|
772
|
+
"labelOrientation": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"enum": [
|
|
775
|
+
"horizontal",
|
|
776
|
+
"radial"
|
|
777
|
+
],
|
|
778
|
+
"description": "chord: label orientation (radial by default above 10 groups)."
|
|
779
|
+
},
|
|
780
|
+
"ribbonColor": {
|
|
781
|
+
"type": "string",
|
|
782
|
+
"enum": [
|
|
783
|
+
"source",
|
|
784
|
+
"smaller",
|
|
785
|
+
"larger"
|
|
786
|
+
],
|
|
787
|
+
"description": "chord: ribbon color: \"source\" (default when directed), \"smaller\" group (default) or \"larger\" flow."
|
|
313
788
|
},
|
|
314
789
|
"matrix": {
|
|
315
790
|
"type": "array",
|
|
@@ -356,9 +831,256 @@
|
|
|
356
831
|
"type": "string",
|
|
357
832
|
"description": "One panel per value of this field (small multiples, seaborn col). Shared scales and colors."
|
|
358
833
|
},
|
|
834
|
+
"col": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"description": "Alias of facet (seaborn naming)."
|
|
837
|
+
},
|
|
838
|
+
"facetOrder": {
|
|
839
|
+
"type": "array",
|
|
840
|
+
"items": {
|
|
841
|
+
"type": "string"
|
|
842
|
+
},
|
|
843
|
+
"description": "facet: panel order (values of the facet field; the rest follow)."
|
|
844
|
+
},
|
|
359
845
|
"columns": {
|
|
846
|
+
"description": "table: the columns, in order: field names or objects { field, label, type, format, align, width, good, target, colorScale, total, lines }. Column types: text, number, bar (data bar), heat (cell color), delta (▲/▼ change, colored by `good`), sparkline (field holds a list of numbers), progress (meter vs `target` field/number, or 0–1 / 0–100), badge (status pill; status words in es/en/pt/fr/de get good/warning/critical colors), check (booleans as ✓), date, link, rank. Omit to infer everything. facet: panels per row (an integer, seaborn col_wrap). kpi: tiles per row.",
|
|
847
|
+
"anyOf": [
|
|
848
|
+
{
|
|
849
|
+
"type": "integer"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"type": "array",
|
|
853
|
+
"items": {
|
|
854
|
+
"anyOf": [
|
|
855
|
+
{
|
|
856
|
+
"type": "string"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"type": "object",
|
|
860
|
+
"properties": {
|
|
861
|
+
"field": {
|
|
862
|
+
"type": "string"
|
|
863
|
+
},
|
|
864
|
+
"label": {
|
|
865
|
+
"type": "string"
|
|
866
|
+
},
|
|
867
|
+
"type": {
|
|
868
|
+
"type": "string",
|
|
869
|
+
"enum": [
|
|
870
|
+
"text",
|
|
871
|
+
"number",
|
|
872
|
+
"bar",
|
|
873
|
+
"heat",
|
|
874
|
+
"delta",
|
|
875
|
+
"sparkline",
|
|
876
|
+
"progress",
|
|
877
|
+
"badge",
|
|
878
|
+
"check",
|
|
879
|
+
"date",
|
|
880
|
+
"link",
|
|
881
|
+
"rank"
|
|
882
|
+
]
|
|
883
|
+
},
|
|
884
|
+
"format": {
|
|
885
|
+
"anyOf": [
|
|
886
|
+
{
|
|
887
|
+
"type": "string"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"type": "object"
|
|
891
|
+
}
|
|
892
|
+
]
|
|
893
|
+
},
|
|
894
|
+
"align": {
|
|
895
|
+
"type": "string",
|
|
896
|
+
"enum": [
|
|
897
|
+
"left",
|
|
898
|
+
"right",
|
|
899
|
+
"center"
|
|
900
|
+
]
|
|
901
|
+
},
|
|
902
|
+
"width": {
|
|
903
|
+
"type": "number"
|
|
904
|
+
},
|
|
905
|
+
"good": {
|
|
906
|
+
"type": "string",
|
|
907
|
+
"enum": [
|
|
908
|
+
"up",
|
|
909
|
+
"down"
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
"target": {
|
|
913
|
+
"anyOf": [
|
|
914
|
+
{
|
|
915
|
+
"type": "string"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"type": "number"
|
|
919
|
+
}
|
|
920
|
+
]
|
|
921
|
+
},
|
|
922
|
+
"colorScale": {
|
|
923
|
+
"anyOf": [
|
|
924
|
+
{
|
|
925
|
+
"type": "string"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"type": "array",
|
|
929
|
+
"items": {
|
|
930
|
+
"type": "string"
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"type": "object"
|
|
935
|
+
}
|
|
936
|
+
]
|
|
937
|
+
},
|
|
938
|
+
"total": {
|
|
939
|
+
"anyOf": [
|
|
940
|
+
{
|
|
941
|
+
"type": "boolean"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"type": "string",
|
|
945
|
+
"enum": [
|
|
946
|
+
"sum",
|
|
947
|
+
"mean",
|
|
948
|
+
"min",
|
|
949
|
+
"max",
|
|
950
|
+
"count"
|
|
951
|
+
]
|
|
952
|
+
}
|
|
953
|
+
]
|
|
954
|
+
},
|
|
955
|
+
"lines": {
|
|
956
|
+
"type": "integer",
|
|
957
|
+
"minimum": 1,
|
|
958
|
+
"maximum": 6
|
|
959
|
+
},
|
|
960
|
+
"text": {
|
|
961
|
+
"type": "string",
|
|
962
|
+
"description": "link: field with the text to show instead of the URL."
|
|
963
|
+
},
|
|
964
|
+
"sortable": {
|
|
965
|
+
"type": "boolean"
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
]
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
"sortBy": {
|
|
975
|
+
"type": "string",
|
|
976
|
+
"description": "table: column to sort by (field or label). Numbers sort high→low by default, text A→Z. In the browser a click on a header sorts."
|
|
977
|
+
},
|
|
978
|
+
"sortOrder": {
|
|
979
|
+
"type": "string",
|
|
980
|
+
"enum": [
|
|
981
|
+
"asc",
|
|
982
|
+
"desc"
|
|
983
|
+
],
|
|
984
|
+
"description": "table: sort direction (same as `sort: \"asc\" | \"desc\"`)."
|
|
985
|
+
},
|
|
986
|
+
"pageSize": {
|
|
987
|
+
"anyOf": [
|
|
988
|
+
{
|
|
989
|
+
"type": "integer",
|
|
990
|
+
"minimum": 1
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"type": "boolean",
|
|
994
|
+
"enum": [
|
|
995
|
+
false
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
],
|
|
999
|
+
"description": "table: rows per page. Default: all rows up to 15, then pages of 10. false shows every row."
|
|
1000
|
+
},
|
|
1001
|
+
"page": {
|
|
360
1002
|
"type": "integer",
|
|
361
|
-
"
|
|
1003
|
+
"minimum": 1,
|
|
1004
|
+
"description": "table: page to show (1-based). In the browser the pager changes it."
|
|
1005
|
+
},
|
|
1006
|
+
"query": {
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"description": "table: show only rows that contain these words (accent- and case-insensitive)."
|
|
1009
|
+
},
|
|
1010
|
+
"search": {
|
|
1011
|
+
"type": "boolean",
|
|
1012
|
+
"description": "table: search box in the browser (default: on above 20 rows)."
|
|
1013
|
+
},
|
|
1014
|
+
"total": {
|
|
1015
|
+
"description": "table: totals row. true sums numbers (and averages percents and progress); \"mean\"/\"sum\"; or { field: \"sum\" | \"mean\" | false, label }.",
|
|
1016
|
+
"anyOf": [
|
|
1017
|
+
{
|
|
1018
|
+
"type": "boolean"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"type": "string",
|
|
1022
|
+
"enum": [
|
|
1023
|
+
"sum",
|
|
1024
|
+
"mean",
|
|
1025
|
+
"min",
|
|
1026
|
+
"max"
|
|
1027
|
+
]
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
"type": "object"
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
"totalLabel": {
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"description": "table: label of the totals row (default \"Total\"/\"Gesamt\")."
|
|
1037
|
+
},
|
|
1038
|
+
"rank": {
|
|
1039
|
+
"type": "boolean",
|
|
1040
|
+
"description": "table: add a \"#\" column with the position under the current sort."
|
|
1041
|
+
},
|
|
1042
|
+
"cards": {
|
|
1043
|
+
"description": "table: one card per row. \"auto\" (default) switches when the columns do not fit (phones); true always; false never (columns shrink and truncate).",
|
|
1044
|
+
"anyOf": [
|
|
1045
|
+
{
|
|
1046
|
+
"type": "boolean"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"enum": [
|
|
1051
|
+
"auto"
|
|
1052
|
+
]
|
|
1053
|
+
}
|
|
1054
|
+
]
|
|
1055
|
+
},
|
|
1056
|
+
"density": {
|
|
1057
|
+
"type": "string",
|
|
1058
|
+
"enum": [
|
|
1059
|
+
"compact",
|
|
1060
|
+
"normal",
|
|
1061
|
+
"comfortable"
|
|
1062
|
+
],
|
|
1063
|
+
"description": "table: row height."
|
|
1064
|
+
},
|
|
1065
|
+
"striped": {
|
|
1066
|
+
"type": "boolean",
|
|
1067
|
+
"description": "table: tint every other row (helps on very wide tables)."
|
|
1068
|
+
},
|
|
1069
|
+
"bars": {
|
|
1070
|
+
"type": "boolean",
|
|
1071
|
+
"description": "table: false turns off the automatic data bar on the main numeric column."
|
|
1072
|
+
},
|
|
1073
|
+
"sortable": {
|
|
1074
|
+
"type": "boolean",
|
|
1075
|
+
"description": "table: false disables click-to-sort on headers in the browser."
|
|
1076
|
+
},
|
|
1077
|
+
"sharex": {
|
|
1078
|
+
"type": "boolean",
|
|
1079
|
+
"description": "facet: same x scale in every panel (default true)."
|
|
1080
|
+
},
|
|
1081
|
+
"panelHeight": {
|
|
1082
|
+
"type": "number",
|
|
1083
|
+
"description": "facet: height of each panel in px."
|
|
362
1084
|
},
|
|
363
1085
|
"sharey": {
|
|
364
1086
|
"type": "boolean",
|
|
@@ -366,18 +1088,82 @@
|
|
|
366
1088
|
},
|
|
367
1089
|
"time": {
|
|
368
1090
|
"type": "string",
|
|
369
|
-
"description": "Time field (d3plus-style): shows one period at a time (the latest by default
|
|
1091
|
+
"description": "Time field (d3plus-style): shows one period at a time (the latest by default, or `timeValue`). Add `slider: true` only when the person asks to move through periods."
|
|
370
1092
|
},
|
|
371
1093
|
"timeValue": {
|
|
372
1094
|
"description": "Period to show when `time` is set."
|
|
373
1095
|
},
|
|
374
1096
|
"slider": {
|
|
375
|
-
"
|
|
376
|
-
"
|
|
1097
|
+
"description": "Browser time controls, OFF by default; set them only when the person asks. true: period buttons when there are few periods (≤ 8), a minimal slider otherwise; line/area get a range slider. \"buttons\" or \"slider\" force one.",
|
|
1098
|
+
"anyOf": [
|
|
1099
|
+
{
|
|
1100
|
+
"type": "boolean"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"enum": [
|
|
1105
|
+
"buttons",
|
|
1106
|
+
"slider"
|
|
1107
|
+
]
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
377
1110
|
},
|
|
378
1111
|
"play": {
|
|
379
1112
|
"type": "boolean",
|
|
380
|
-
"description": "Browser: false keeps the time
|
|
1113
|
+
"description": "Browser: false keeps the time controls but hides the play button."
|
|
1114
|
+
},
|
|
1115
|
+
"playInterval": {
|
|
1116
|
+
"type": "number",
|
|
1117
|
+
"description": "Browser: milliseconds per period while playing."
|
|
1118
|
+
},
|
|
1119
|
+
"legend": {
|
|
1120
|
+
"description": "Legend: true/false, or its position \"top\" (default), \"bottom\", \"left\", \"right\" (left/right fall back to bottom under 520px wide), or { position }.",
|
|
1121
|
+
"anyOf": [
|
|
1122
|
+
{
|
|
1123
|
+
"type": "boolean"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"enum": [
|
|
1128
|
+
"top",
|
|
1129
|
+
"bottom",
|
|
1130
|
+
"left",
|
|
1131
|
+
"right"
|
|
1132
|
+
]
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"type": "object",
|
|
1136
|
+
"properties": {
|
|
1137
|
+
"position": {
|
|
1138
|
+
"type": "string",
|
|
1139
|
+
"enum": [
|
|
1140
|
+
"top",
|
|
1141
|
+
"bottom",
|
|
1142
|
+
"left",
|
|
1143
|
+
"right"
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
]
|
|
1149
|
+
},
|
|
1150
|
+
"legendTitle": {
|
|
1151
|
+
"type": "string",
|
|
1152
|
+
"description": "Title of a color-ramp or size legend (heatmap, maps)."
|
|
1153
|
+
},
|
|
1154
|
+
"exclude": {
|
|
1155
|
+
"description": "Drop legend entries (series, first hierarchy level, group or donut slice) and recompute axes and shares with the rest. Colors stay fixed; excluded entries remain in the legend, faded, so a click re-adds them. In the browser shift+click on a legend key toggles it.",
|
|
1156
|
+
"anyOf": [
|
|
1157
|
+
{
|
|
1158
|
+
"type": "string"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"type": "array",
|
|
1162
|
+
"items": {
|
|
1163
|
+
"type": "string"
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
]
|
|
381
1167
|
},
|
|
382
1168
|
"compare": {
|
|
383
1169
|
"description": "With `time`: period to compute changes against: \"previous\" (default), \"first\", a specific period, or false.",
|
|
@@ -408,10 +1194,20 @@
|
|
|
408
1194
|
},
|
|
409
1195
|
"xRange": {
|
|
410
1196
|
"type": "array",
|
|
411
|
-
"description": "line/area: visible x range [from, to] (what the range slider sets)."
|
|
1197
|
+
"description": "line/area: visible x range [from, to] (what the range slider sets with `slider: true`)."
|
|
1198
|
+
},
|
|
1199
|
+
"showValues": {
|
|
1200
|
+
"type": "boolean",
|
|
1201
|
+
"description": "treemap: show each tile value next to its label."
|
|
1202
|
+
},
|
|
1203
|
+
"hole": {
|
|
1204
|
+
"type": "number",
|
|
1205
|
+
"minimum": 0,
|
|
1206
|
+
"maximum": 0.9,
|
|
1207
|
+
"description": "sunburst: size of the center hole as a fraction of the radius (default 0.3)."
|
|
412
1208
|
},
|
|
413
1209
|
"focus": {
|
|
414
|
-
"description": "treemap/sunburst: path to drill into, e.g. [\"Mining\"]. network: a node id to center and highlight with its neighbors.
|
|
1210
|
+
"description": "treemap/sunburst: path to drill into, e.g. [\"Mining\"] (in the browser a click on a tile or legend key zooms to it). network: a node id to center and highlight with its neighbors.",
|
|
415
1211
|
"anyOf": [
|
|
416
1212
|
{
|
|
417
1213
|
"type": "string"
|
|
@@ -456,6 +1252,23 @@
|
|
|
456
1252
|
},
|
|
457
1253
|
"description": "Fixed value-axis domain [min, max]."
|
|
458
1254
|
},
|
|
1255
|
+
"valueDomain": {
|
|
1256
|
+
"type": "array",
|
|
1257
|
+
"items": {
|
|
1258
|
+
"type": "number"
|
|
1259
|
+
},
|
|
1260
|
+
"minItems": 2,
|
|
1261
|
+
"maxItems": 2,
|
|
1262
|
+
"description": "box/violin/strip/swarm/point/radar: fixed value-axis domain [min, max] whatever the orientation."
|
|
1263
|
+
},
|
|
1264
|
+
"orient": {
|
|
1265
|
+
"type": "string",
|
|
1266
|
+
"enum": [
|
|
1267
|
+
"v",
|
|
1268
|
+
"h"
|
|
1269
|
+
],
|
|
1270
|
+
"description": "box/violin/strip/swarm/point: \"v\" vertical or \"h\" horizontal (same as `horizontal`)."
|
|
1271
|
+
},
|
|
459
1272
|
"zero": {
|
|
460
1273
|
"type": "boolean",
|
|
461
1274
|
"description": "line: force (or prevent) a y axis starting at zero."
|
|
@@ -468,8 +1281,55 @@
|
|
|
468
1281
|
"type": "string",
|
|
469
1282
|
"description": "y-axis title (drawn horizontally above the axis)."
|
|
470
1283
|
},
|
|
471
|
-
"format": {
|
|
472
|
-
"description": "Value format: \"number\" | \"compact\" | \"percent\" | \"currency\" | \"integer\", or { type, prefix, suffix, decimals, currency }.",
|
|
1284
|
+
"format": {
|
|
1285
|
+
"description": "Value format: \"number\" | \"compact\" | \"percent\" | \"currency\" | \"integer\", or { type, prefix, suffix, decimals (0–20), currency }.",
|
|
1286
|
+
"anyOf": [
|
|
1287
|
+
{
|
|
1288
|
+
"type": "string",
|
|
1289
|
+
"enum": [
|
|
1290
|
+
"number",
|
|
1291
|
+
"compact",
|
|
1292
|
+
"percent",
|
|
1293
|
+
"currency",
|
|
1294
|
+
"integer"
|
|
1295
|
+
]
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"type": "object",
|
|
1299
|
+
"properties": {
|
|
1300
|
+
"type": {
|
|
1301
|
+
"type": "string",
|
|
1302
|
+
"enum": [
|
|
1303
|
+
"number",
|
|
1304
|
+
"compact",
|
|
1305
|
+
"percent",
|
|
1306
|
+
"currency",
|
|
1307
|
+
"integer"
|
|
1308
|
+
]
|
|
1309
|
+
},
|
|
1310
|
+
"prefix": {
|
|
1311
|
+
"type": "string"
|
|
1312
|
+
},
|
|
1313
|
+
"suffix": {
|
|
1314
|
+
"type": "string"
|
|
1315
|
+
},
|
|
1316
|
+
"decimals": {
|
|
1317
|
+
"type": "integer",
|
|
1318
|
+
"minimum": 0,
|
|
1319
|
+
"maximum": 20
|
|
1320
|
+
},
|
|
1321
|
+
"currency": {
|
|
1322
|
+
"type": "string"
|
|
1323
|
+
},
|
|
1324
|
+
"scale": {
|
|
1325
|
+
"type": "number"
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
]
|
|
1330
|
+
},
|
|
1331
|
+
"xFormat": {
|
|
1332
|
+
"description": "Format of x values when x is a measure (scatter, regplot, hist).",
|
|
473
1333
|
"anyOf": [
|
|
474
1334
|
{
|
|
475
1335
|
"type": "string",
|
|
@@ -485,8 +1345,62 @@
|
|
|
485
1345
|
"type": "object",
|
|
486
1346
|
"properties": {
|
|
487
1347
|
"type": {
|
|
1348
|
+
"type": "string",
|
|
1349
|
+
"enum": [
|
|
1350
|
+
"number",
|
|
1351
|
+
"compact",
|
|
1352
|
+
"percent",
|
|
1353
|
+
"currency",
|
|
1354
|
+
"integer"
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
"prefix": {
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1360
|
+
"suffix": {
|
|
1361
|
+
"type": "string"
|
|
1362
|
+
},
|
|
1363
|
+
"decimals": {
|
|
1364
|
+
"type": "integer",
|
|
1365
|
+
"minimum": 0,
|
|
1366
|
+
"maximum": 20
|
|
1367
|
+
},
|
|
1368
|
+
"currency": {
|
|
488
1369
|
"type": "string"
|
|
489
1370
|
},
|
|
1371
|
+
"scale": {
|
|
1372
|
+
"type": "number"
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1378
|
+
"yFormat": {
|
|
1379
|
+
"description": "Format of y values (overrides `format` on the y axis).",
|
|
1380
|
+
"anyOf": [
|
|
1381
|
+
{
|
|
1382
|
+
"type": "string",
|
|
1383
|
+
"enum": [
|
|
1384
|
+
"number",
|
|
1385
|
+
"compact",
|
|
1386
|
+
"percent",
|
|
1387
|
+
"currency",
|
|
1388
|
+
"integer"
|
|
1389
|
+
]
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"type": "object",
|
|
1393
|
+
"properties": {
|
|
1394
|
+
"type": {
|
|
1395
|
+
"type": "string",
|
|
1396
|
+
"enum": [
|
|
1397
|
+
"number",
|
|
1398
|
+
"compact",
|
|
1399
|
+
"percent",
|
|
1400
|
+
"currency",
|
|
1401
|
+
"integer"
|
|
1402
|
+
]
|
|
1403
|
+
},
|
|
490
1404
|
"prefix": {
|
|
491
1405
|
"type": "string"
|
|
492
1406
|
},
|
|
@@ -494,17 +1408,22 @@
|
|
|
494
1408
|
"type": "string"
|
|
495
1409
|
},
|
|
496
1410
|
"decimals": {
|
|
497
|
-
"type": "integer"
|
|
1411
|
+
"type": "integer",
|
|
1412
|
+
"minimum": 0,
|
|
1413
|
+
"maximum": 20
|
|
498
1414
|
},
|
|
499
1415
|
"currency": {
|
|
500
1416
|
"type": "string"
|
|
1417
|
+
},
|
|
1418
|
+
"scale": {
|
|
1419
|
+
"type": "number"
|
|
501
1420
|
}
|
|
502
1421
|
}
|
|
503
1422
|
}
|
|
504
1423
|
]
|
|
505
1424
|
},
|
|
506
1425
|
"highlight": {
|
|
507
|
-
"description": "Emphasize one or more categories/series and mute the rest.",
|
|
1426
|
+
"description": "Emphasize one or more categories/series and mute the rest. table: the rows whose label matches.",
|
|
508
1427
|
"anyOf": [
|
|
509
1428
|
{
|
|
510
1429
|
"type": "string"
|
|
@@ -566,7 +1485,7 @@
|
|
|
566
1485
|
]
|
|
567
1486
|
},
|
|
568
1487
|
"labels": {
|
|
569
|
-
"description": "Value labels: true, false or \"auto\". In scatter/regplot: a number of points or a list of names to label.",
|
|
1488
|
+
"description": "Value labels: true, false or \"auto\". In scatter/regplot: a number of points or a list of names to label. network: true labels every node.",
|
|
570
1489
|
"anyOf": [
|
|
571
1490
|
{
|
|
572
1491
|
"type": "boolean"
|
|
@@ -637,19 +1556,20 @@
|
|
|
637
1556
|
"type": "boolean",
|
|
638
1557
|
"description": "Force horizontal orientation (otherwise chosen from label length and count)."
|
|
639
1558
|
},
|
|
640
|
-
"sort": {
|
|
641
|
-
"type": "string",
|
|
642
|
-
"enum": [
|
|
643
|
-
"desc",
|
|
644
|
-
"asc",
|
|
645
|
-
"none",
|
|
646
|
-
"alpha"
|
|
647
|
-
],
|
|
648
|
-
"description": "bar: category order (desc by default unless the categories are time)."
|
|
649
|
-
},
|
|
650
1559
|
"top": {
|
|
651
1560
|
"type": "integer",
|
|
652
|
-
"description": "bar: keep the N largest and fold the rest into \"Other\"."
|
|
1561
|
+
"description": "bar: keep the N largest and fold the rest into \"Other\". table: keep the first N rows after sorting."
|
|
1562
|
+
},
|
|
1563
|
+
"endLabels": {
|
|
1564
|
+
"type": "boolean",
|
|
1565
|
+
"description": "line/regplot: false removes the series names at the end of each line (a legend is drawn instead)."
|
|
1566
|
+
},
|
|
1567
|
+
"labelsFor": {
|
|
1568
|
+
"type": "object",
|
|
1569
|
+
"additionalProperties": {
|
|
1570
|
+
"type": "string"
|
|
1571
|
+
},
|
|
1572
|
+
"description": "Wide table (y as a list): display names per column, e.g. { \"rev\": \"Revenue\" }."
|
|
653
1573
|
},
|
|
654
1574
|
"index": {
|
|
655
1575
|
"type": "boolean",
|
|
@@ -745,7 +1665,7 @@
|
|
|
745
1665
|
"description": "kde: fill the area. line: false removes the gradient under a single line."
|
|
746
1666
|
},
|
|
747
1667
|
"order": {
|
|
748
|
-
"description": "regplot: polynomial degree (number). box/violin/strip/swarm/point: category order (list).",
|
|
1668
|
+
"description": "regplot: polynomial degree (number). box/violin/strip/swarm/point: category order (list). corr: variable order (list).",
|
|
749
1669
|
"anyOf": [
|
|
750
1670
|
{
|
|
751
1671
|
"type": "integer"
|
|
@@ -780,7 +1700,7 @@
|
|
|
780
1700
|
"scatter",
|
|
781
1701
|
"reg"
|
|
782
1702
|
],
|
|
783
|
-
"description": "jointplot: center plot."
|
|
1703
|
+
"description": "jointplot: center plot. pairplot: \"reg\" adds a least-squares line to every scatter panel."
|
|
784
1704
|
},
|
|
785
1705
|
"marginal": {
|
|
786
1706
|
"type": "string",
|
|
@@ -796,10 +1716,65 @@
|
|
|
796
1716
|
"box",
|
|
797
1717
|
"quartiles",
|
|
798
1718
|
"points",
|
|
1719
|
+
"stick",
|
|
799
1720
|
"none"
|
|
800
1721
|
],
|
|
801
1722
|
"description": "violin: what goes inside."
|
|
802
1723
|
},
|
|
1724
|
+
"bandwidth": {
|
|
1725
|
+
"type": "number",
|
|
1726
|
+
"description": "violin: KDE bandwidth (default Scott's rule)."
|
|
1727
|
+
},
|
|
1728
|
+
"bwAdjust": {
|
|
1729
|
+
"type": "number",
|
|
1730
|
+
"description": "kde/violin/hist kde: multiply the bandwidth (seaborn bw_adjust)."
|
|
1731
|
+
},
|
|
1732
|
+
"cut": {
|
|
1733
|
+
"type": "number",
|
|
1734
|
+
"description": "kde/violin: how far the density extends past the data, in bandwidths."
|
|
1735
|
+
},
|
|
1736
|
+
"jitter": {
|
|
1737
|
+
"description": "strip: spread of the points across the category (fraction of the band, default 0.6; 0 or false = none).",
|
|
1738
|
+
"anyOf": [
|
|
1739
|
+
{
|
|
1740
|
+
"type": "number"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"type": "boolean"
|
|
1744
|
+
}
|
|
1745
|
+
]
|
|
1746
|
+
},
|
|
1747
|
+
"dodge": {
|
|
1748
|
+
"type": "boolean",
|
|
1749
|
+
"description": "strip/swarm/point with hue: place groups side by side."
|
|
1750
|
+
},
|
|
1751
|
+
"hueOrder": {
|
|
1752
|
+
"type": "array",
|
|
1753
|
+
"items": {
|
|
1754
|
+
"type": "string"
|
|
1755
|
+
},
|
|
1756
|
+
"description": "Order of the hue groups."
|
|
1757
|
+
},
|
|
1758
|
+
"showMeans": {
|
|
1759
|
+
"type": "boolean",
|
|
1760
|
+
"description": "box/strip: mark the mean."
|
|
1761
|
+
},
|
|
1762
|
+
"cumulative": {
|
|
1763
|
+
"type": "boolean",
|
|
1764
|
+
"description": "hist/kde: cumulative distribution."
|
|
1765
|
+
},
|
|
1766
|
+
"rug": {
|
|
1767
|
+
"type": "boolean",
|
|
1768
|
+
"description": "kde: tick marks for each observation."
|
|
1769
|
+
},
|
|
1770
|
+
"complementary": {
|
|
1771
|
+
"type": "boolean",
|
|
1772
|
+
"description": "ecdf: show 1 − F(x) (share above each value)."
|
|
1773
|
+
},
|
|
1774
|
+
"radius": {
|
|
1775
|
+
"type": "number",
|
|
1776
|
+
"description": "Point radius in px (scatter, regplot, strip, swarm)."
|
|
1777
|
+
},
|
|
803
1778
|
"split": {
|
|
804
1779
|
"type": "boolean",
|
|
805
1780
|
"description": "violin: with two hue levels, one half each."
|
|
@@ -816,6 +1791,115 @@
|
|
|
816
1791
|
"type": "boolean",
|
|
817
1792
|
"description": "donut: semicircle."
|
|
818
1793
|
},
|
|
1794
|
+
"thickness": {
|
|
1795
|
+
"type": "number",
|
|
1796
|
+
"minimum": 0,
|
|
1797
|
+
"maximum": 1,
|
|
1798
|
+
"description": "donut: ring thickness as a fraction of the radius (1 = pie)."
|
|
1799
|
+
},
|
|
1800
|
+
"maxSlices": {
|
|
1801
|
+
"type": "integer",
|
|
1802
|
+
"minimum": 2,
|
|
1803
|
+
"description": "donut/pie: slices before the rest fold into \"Other\" (default 6)."
|
|
1804
|
+
},
|
|
1805
|
+
"centerValue": {
|
|
1806
|
+
"type": "string",
|
|
1807
|
+
"description": "donut/sunburst: text in the center (default: the total)."
|
|
1808
|
+
},
|
|
1809
|
+
"centerLabel": {
|
|
1810
|
+
"type": "string",
|
|
1811
|
+
"description": "donut/sunburst: caption under the center value."
|
|
1812
|
+
},
|
|
1813
|
+
"cellHeight": {
|
|
1814
|
+
"type": "number",
|
|
1815
|
+
"description": "heatmap: maximum cell height in px."
|
|
1816
|
+
},
|
|
1817
|
+
"vars": {
|
|
1818
|
+
"type": "array",
|
|
1819
|
+
"items": {
|
|
1820
|
+
"type": "string"
|
|
1821
|
+
},
|
|
1822
|
+
"description": "corr/pairplot: the numeric fields to relate, in order (seaborn `vars`). Default: every numeric field (pairplot: the first 6). `y: [...]` works too."
|
|
1823
|
+
},
|
|
1824
|
+
"method": {
|
|
1825
|
+
"type": "string",
|
|
1826
|
+
"enum": [
|
|
1827
|
+
"pearson",
|
|
1828
|
+
"spearman"
|
|
1829
|
+
],
|
|
1830
|
+
"description": "corr: correlation coefficient. \"pearson\" (default, linear) or \"spearman\" (ranks: monotonic relations, robust to outliers)."
|
|
1831
|
+
},
|
|
1832
|
+
"triangle": {
|
|
1833
|
+
"anyOf": [
|
|
1834
|
+
{
|
|
1835
|
+
"type": "string",
|
|
1836
|
+
"enum": [
|
|
1837
|
+
"lower",
|
|
1838
|
+
"full"
|
|
1839
|
+
]
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
"type": "boolean"
|
|
1843
|
+
}
|
|
1844
|
+
],
|
|
1845
|
+
"description": "corr: \"lower\" (default) shows each pair once, below the diagonal; \"full\" shows the whole symmetric matrix (default with `cluster`)."
|
|
1846
|
+
},
|
|
1847
|
+
"cluster": {
|
|
1848
|
+
"type": "boolean",
|
|
1849
|
+
"description": "corr: reorder variables by hierarchical clustering (average linkage on 1 − r) and draw the dendrogram on top, like sns.clustermap. `type: \"clustermap\"` sets it."
|
|
1850
|
+
},
|
|
1851
|
+
"dendrogram": {
|
|
1852
|
+
"type": "boolean",
|
|
1853
|
+
"description": "corr with `cluster`: false hides the dendrogram but keeps the clustered order."
|
|
1854
|
+
},
|
|
1855
|
+
"alpha": {
|
|
1856
|
+
"type": "number",
|
|
1857
|
+
"exclusiveMinimum": 0,
|
|
1858
|
+
"exclusiveMaximum": 1,
|
|
1859
|
+
"description": "corr: significance level (e.g. 0.05). Cells with p ≥ alpha are greyed out and a legend key explains it. p-values use Fisher's z."
|
|
1860
|
+
},
|
|
1861
|
+
"cellSize": {
|
|
1862
|
+
"type": "number",
|
|
1863
|
+
"description": "corr: maximum cell size in px (cells are square)."
|
|
1864
|
+
},
|
|
1865
|
+
"diag": {
|
|
1866
|
+
"type": "string",
|
|
1867
|
+
"enum": [
|
|
1868
|
+
"hist",
|
|
1869
|
+
"kde"
|
|
1870
|
+
],
|
|
1871
|
+
"description": "pairplot: what goes on the diagonal. Default \"hist\", or \"kde\" when `hue` is set."
|
|
1872
|
+
},
|
|
1873
|
+
"upper": {
|
|
1874
|
+
"anyOf": [
|
|
1875
|
+
{
|
|
1876
|
+
"type": "string",
|
|
1877
|
+
"enum": [
|
|
1878
|
+
"corr",
|
|
1879
|
+
"scatter"
|
|
1880
|
+
]
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"type": "boolean",
|
|
1884
|
+
"enum": [
|
|
1885
|
+
false
|
|
1886
|
+
]
|
|
1887
|
+
}
|
|
1888
|
+
],
|
|
1889
|
+
"description": "pairplot: above the diagonal, \"corr\" (default: Pearson r, tinted by strength, per `hue` group when there is room), \"scatter\" (mirror), or false (empty)."
|
|
1890
|
+
},
|
|
1891
|
+
"corner": {
|
|
1892
|
+
"type": "boolean",
|
|
1893
|
+
"description": "pairplot: draw only the lower triangle and the diagonal (seaborn corner=True)."
|
|
1894
|
+
},
|
|
1895
|
+
"panelSize": {
|
|
1896
|
+
"type": "number",
|
|
1897
|
+
"description": "pairplot: maximum panel size in px."
|
|
1898
|
+
},
|
|
1899
|
+
"diverging": {
|
|
1900
|
+
"type": "boolean",
|
|
1901
|
+
"description": "heatmap/choropleth: diverging color scale around 0 (or `midpoint`)."
|
|
1902
|
+
},
|
|
819
1903
|
"colors": {
|
|
820
1904
|
"type": "object",
|
|
821
1905
|
"additionalProperties": {
|
|
@@ -824,7 +1908,7 @@
|
|
|
824
1908
|
"description": "Pin colors to entities: { \"Biobío\": \"#3A47B8\" }."
|
|
825
1909
|
},
|
|
826
1910
|
"palette": {
|
|
827
|
-
"description": "
|
|
1911
|
+
"description": "Categorical colors: a name (\"cdia\", \"okabe-ito\", \"tableau10\", \"udec\"), a matplotlib qualitative palette (\"tab10\", \"tab20\", \"Set1\", \"Set2\", \"Set3\", \"Pastel1\", \"Pastel2\", \"Paired\", \"Accent\", \"Dark2\"), any colormap name (sampled, e.g. \"viridis\"), or a list of colors in fixed order.",
|
|
828
1912
|
"anyOf": [
|
|
829
1913
|
{
|
|
830
1914
|
"type": "string"
|
|
@@ -838,7 +1922,93 @@
|
|
|
838
1922
|
]
|
|
839
1923
|
},
|
|
840
1924
|
"ramp": {
|
|
841
|
-
"description": "Sequential ramp: a name (\"indigo\", \"magenta\", \"teal\", \"amber\") or a list of colors from light to dark.",
|
|
1925
|
+
"description": "Sequential ramp: a name (\"indigo\", \"magenta\", \"teal\", \"amber\"), any colormap name, or a list of colors from light to dark.",
|
|
1926
|
+
"anyOf": [
|
|
1927
|
+
{
|
|
1928
|
+
"type": "string"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"type": "array",
|
|
1932
|
+
"items": {
|
|
1933
|
+
"type": "string"
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
]
|
|
1937
|
+
},
|
|
1938
|
+
"colorScale": {
|
|
1939
|
+
"description": "Continuous color scale (heatmap, choropleth, treemap change, pointmap values): any matplotlib colormap name, case-insensitive, `_r` reverses (\"viridis\", \"plasma\", \"inferno\", \"magma\", \"cividis\", \"Blues\", \"Greens\", \"YlOrRd\", \"RdBu\", \"coolwarm\", \"Spectral\", \"turbo\", \"twilight\"…); diverging names imply a diverging scale. Or a list of hex colors, or { name | colors, reverse, mid }. Aliases: cmap, colormap. Qualitative palettes (tab10…) go in `palette`; avoid rainbow maps (jet, hsv).",
|
|
1940
|
+
"anyOf": [
|
|
1941
|
+
{
|
|
1942
|
+
"type": "string"
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"type": "array",
|
|
1946
|
+
"items": {
|
|
1947
|
+
"type": "string"
|
|
1948
|
+
},
|
|
1949
|
+
"minItems": 2
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"type": "object",
|
|
1953
|
+
"properties": {
|
|
1954
|
+
"name": {
|
|
1955
|
+
"type": "string"
|
|
1956
|
+
},
|
|
1957
|
+
"colors": {
|
|
1958
|
+
"type": "array",
|
|
1959
|
+
"items": {
|
|
1960
|
+
"type": "string"
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"reverse": {
|
|
1964
|
+
"type": "boolean"
|
|
1965
|
+
},
|
|
1966
|
+
"mid": {
|
|
1967
|
+
"type": "number",
|
|
1968
|
+
"description": "Center of a diverging scale."
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
]
|
|
1973
|
+
},
|
|
1974
|
+
"cmap": {
|
|
1975
|
+
"description": "Alias of colorScale (matplotlib naming).",
|
|
1976
|
+
"anyOf": [
|
|
1977
|
+
{
|
|
1978
|
+
"type": "string"
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"type": "array",
|
|
1982
|
+
"items": {
|
|
1983
|
+
"type": "string"
|
|
1984
|
+
},
|
|
1985
|
+
"minItems": 2
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"type": "object",
|
|
1989
|
+
"properties": {
|
|
1990
|
+
"name": {
|
|
1991
|
+
"type": "string"
|
|
1992
|
+
},
|
|
1993
|
+
"colors": {
|
|
1994
|
+
"type": "array",
|
|
1995
|
+
"items": {
|
|
1996
|
+
"type": "string"
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
"reverse": {
|
|
2000
|
+
"type": "boolean"
|
|
2001
|
+
},
|
|
2002
|
+
"mid": {
|
|
2003
|
+
"type": "number",
|
|
2004
|
+
"description": "Center of a diverging scale."
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
]
|
|
2009
|
+
},
|
|
2010
|
+
"colormap": {
|
|
2011
|
+
"description": "Alias of colorScale.",
|
|
842
2012
|
"anyOf": [
|
|
843
2013
|
{
|
|
844
2014
|
"type": "string"
|
|
@@ -847,24 +2017,179 @@
|
|
|
847
2017
|
"type": "array",
|
|
848
2018
|
"items": {
|
|
849
2019
|
"type": "string"
|
|
2020
|
+
},
|
|
2021
|
+
"minItems": 2
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"type": "object",
|
|
2025
|
+
"properties": {
|
|
2026
|
+
"name": {
|
|
2027
|
+
"type": "string"
|
|
2028
|
+
},
|
|
2029
|
+
"colors": {
|
|
2030
|
+
"type": "array",
|
|
2031
|
+
"items": {
|
|
2032
|
+
"type": "string"
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
"reverse": {
|
|
2036
|
+
"type": "boolean"
|
|
2037
|
+
},
|
|
2038
|
+
"mid": {
|
|
2039
|
+
"type": "number",
|
|
2040
|
+
"description": "Center of a diverging scale."
|
|
2041
|
+
}
|
|
850
2042
|
}
|
|
851
2043
|
}
|
|
852
2044
|
]
|
|
853
2045
|
},
|
|
854
2046
|
"theme": {
|
|
855
|
-
"description": "Theme: \"papel\" (light, default), \"noche\" (dark), or a JSON object deep-merged over `extends`.
|
|
2047
|
+
"description": "Theme: \"papel\" (light, default), \"noche\" (dark), a name registered with registerTheme(), or a JSON object deep-merged over `extends`. Simple tokens: background (alias of surface), text (alias of ink), accent (first series color), grid (a color or { color, dash, width }), axis, tooltip { bg, ink }, radius / barRadius (corner radius), font. Full keys: surface, ink, lede, muted, tint, dim, other, categorical (list, palette or colormap name), sequential, diverging, status {good, warning, critical}, font {family, mono, import}, type {title, subtitle, label, axis, legend, source, titleWeight}, marks {barRadius, barMax, lineWidth, pointRadius, gap, ring, areaOpacity, bandOpacity, dotOpacity}, axes {inside, grid}, layout {padding}. configure({ theme }) applies it to every chart.",
|
|
856
2048
|
"anyOf": [
|
|
857
2049
|
{
|
|
858
2050
|
"type": "string",
|
|
859
|
-
"
|
|
860
|
-
"papel",
|
|
861
|
-
"noche",
|
|
862
|
-
"light",
|
|
863
|
-
"dark"
|
|
864
|
-
]
|
|
2051
|
+
"description": "\"papel\", \"noche\", \"light\", \"dark\" or a registered theme name."
|
|
865
2052
|
},
|
|
866
2053
|
{
|
|
867
|
-
"type": "object"
|
|
2054
|
+
"type": "object",
|
|
2055
|
+
"properties": {
|
|
2056
|
+
"extends": {
|
|
2057
|
+
"type": "string"
|
|
2058
|
+
},
|
|
2059
|
+
"mode": {
|
|
2060
|
+
"type": "string",
|
|
2061
|
+
"enum": [
|
|
2062
|
+
"light",
|
|
2063
|
+
"dark"
|
|
2064
|
+
]
|
|
2065
|
+
},
|
|
2066
|
+
"background": {
|
|
2067
|
+
"type": "string"
|
|
2068
|
+
},
|
|
2069
|
+
"surface": {
|
|
2070
|
+
"type": "string"
|
|
2071
|
+
},
|
|
2072
|
+
"text": {
|
|
2073
|
+
"type": "string"
|
|
2074
|
+
},
|
|
2075
|
+
"ink": {
|
|
2076
|
+
"type": "string"
|
|
2077
|
+
},
|
|
2078
|
+
"lede": {
|
|
2079
|
+
"type": "string"
|
|
2080
|
+
},
|
|
2081
|
+
"muted": {
|
|
2082
|
+
"type": "string"
|
|
2083
|
+
},
|
|
2084
|
+
"accent": {
|
|
2085
|
+
"type": "string"
|
|
2086
|
+
},
|
|
2087
|
+
"grid": {
|
|
2088
|
+
"anyOf": [
|
|
2089
|
+
{
|
|
2090
|
+
"type": "string"
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"type": "object",
|
|
2094
|
+
"properties": {
|
|
2095
|
+
"color": {
|
|
2096
|
+
"type": "string"
|
|
2097
|
+
},
|
|
2098
|
+
"dash": {
|
|
2099
|
+
"type": "string"
|
|
2100
|
+
},
|
|
2101
|
+
"width": {
|
|
2102
|
+
"type": "number"
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
"axis": {
|
|
2109
|
+
"type": "string"
|
|
2110
|
+
},
|
|
2111
|
+
"tooltip": {
|
|
2112
|
+
"type": "object",
|
|
2113
|
+
"properties": {
|
|
2114
|
+
"bg": {
|
|
2115
|
+
"type": "string"
|
|
2116
|
+
},
|
|
2117
|
+
"ink": {
|
|
2118
|
+
"type": "string"
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
},
|
|
2122
|
+
"radius": {
|
|
2123
|
+
"type": "number"
|
|
2124
|
+
},
|
|
2125
|
+
"barRadius": {
|
|
2126
|
+
"type": "number"
|
|
2127
|
+
},
|
|
2128
|
+
"categorical": {
|
|
2129
|
+
"anyOf": [
|
|
2130
|
+
{
|
|
2131
|
+
"type": "string"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
"type": "array",
|
|
2135
|
+
"items": {
|
|
2136
|
+
"type": "string"
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
]
|
|
2140
|
+
},
|
|
2141
|
+
"sequential": {
|
|
2142
|
+
"anyOf": [
|
|
2143
|
+
{
|
|
2144
|
+
"type": "string"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"type": "array",
|
|
2148
|
+
"items": {
|
|
2149
|
+
"type": "string"
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
]
|
|
2153
|
+
},
|
|
2154
|
+
"diverging": {
|
|
2155
|
+
"anyOf": [
|
|
2156
|
+
{
|
|
2157
|
+
"type": "string"
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"type": "array",
|
|
2161
|
+
"items": {
|
|
2162
|
+
"type": "string"
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
]
|
|
2166
|
+
},
|
|
2167
|
+
"font": {
|
|
2168
|
+
"anyOf": [
|
|
2169
|
+
{
|
|
2170
|
+
"type": "string"
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
"type": "object"
|
|
2174
|
+
}
|
|
2175
|
+
]
|
|
2176
|
+
},
|
|
2177
|
+
"status": {
|
|
2178
|
+
"type": "object"
|
|
2179
|
+
},
|
|
2180
|
+
"type": {
|
|
2181
|
+
"type": "object"
|
|
2182
|
+
},
|
|
2183
|
+
"marks": {
|
|
2184
|
+
"type": "object"
|
|
2185
|
+
},
|
|
2186
|
+
"axes": {
|
|
2187
|
+
"type": "object"
|
|
2188
|
+
},
|
|
2189
|
+
"layout": {
|
|
2190
|
+
"type": "object"
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
868
2193
|
}
|
|
869
2194
|
]
|
|
870
2195
|
},
|
|
@@ -890,6 +2215,10 @@
|
|
|
890
2215
|
"height": {
|
|
891
2216
|
"type": "number",
|
|
892
2217
|
"description": "Height in px. Automatic for horizontal bars, heatmaps, KPI tiles, and narrow treemaps, sunbursts and radars."
|
|
2218
|
+
},
|
|
2219
|
+
"padding": {
|
|
2220
|
+
"type": "number",
|
|
2221
|
+
"description": "Outer padding in px (default from the width)."
|
|
893
2222
|
}
|
|
894
2223
|
}
|
|
895
2224
|
}
|