mviz 1.6.4 → 1.6.7
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 -8
- package/dist/charts/area.js +8 -36
- package/dist/charts/bar.js +8 -26
- package/dist/charts/bubble.js +9 -7
- package/dist/charts/combo.js +17 -39
- package/dist/charts/dumbbell.js +15 -14
- package/dist/charts/funnel.js +12 -7
- package/dist/charts/heatmap.js +8 -6
- package/dist/charts/line.js +6 -27
- package/dist/charts/scatter.js +7 -5
- package/dist/cli.js +4 -3
- package/dist/components/big_value.d.ts +23 -1
- package/dist/components/big_value.js +84 -25
- package/dist/components/delta.d.ts +24 -1
- package/dist/components/delta.js +63 -17
- package/dist/components/table-interactivity.d.ts +69 -0
- package/dist/components/table-interactivity.js +216 -0
- package/dist/components/table.d.ts +6 -1
- package/dist/components/table.js +53 -12
- package/dist/core/chart-helpers.d.ts +59 -5
- package/dist/core/chart-helpers.js +84 -5
- package/dist/core/formatting.d.ts +61 -4
- package/dist/core/formatting.js +216 -17
- package/dist/core/lint-rules/registry.d.ts +4 -2
- package/dist/core/lint-rules/registry.js +6 -1
- package/dist/core/lint-rules/rules/index.d.ts +1 -0
- package/dist/core/lint-rules/rules/index.js +1 -0
- package/dist/core/lint-rules/rules/pct-scalar-gt-one.d.ts +13 -0
- package/dist/core/lint-rules/rules/pct-scalar-gt-one.js +46 -0
- package/dist/core/lint-rules/types.d.ts +12 -0
- package/dist/core/linter.d.ts +10 -2
- package/dist/core/linter.js +60 -12
- package/dist/layout/block-loader.d.ts +31 -0
- package/dist/layout/block-loader.js +143 -0
- package/dist/layout/layout-resolver.d.ts +33 -0
- package/dist/layout/layout-resolver.js +73 -0
- package/dist/layout/markdown-parser.d.ts +34 -0
- package/dist/layout/markdown-parser.js +395 -0
- package/dist/layout/parser-types.d.ts +116 -0
- package/dist/layout/parser-types.js +11 -0
- package/dist/layout/parser.d.ts +31 -22
- package/dist/layout/parser.js +118 -1006
- package/dist/layout/renderer.d.ts +33 -0
- package/dist/layout/renderer.js +450 -0
- package/dist/types.d.ts +1 -1
- package/package.json +6 -6
- package/schema/mviz.v1.schema.json +402 -33
|
@@ -109,6 +109,27 @@
|
|
|
109
109
|
"pct1"
|
|
110
110
|
]
|
|
111
111
|
},
|
|
112
|
+
"TableColumnFormatOption": {
|
|
113
|
+
"description": "Format options for table columns. Extends FormatOption with 'date' and 'duration', which only affect table rendering and sort (not chart axes/labels).",
|
|
114
|
+
"enum": [
|
|
115
|
+
"auto",
|
|
116
|
+
"currency_auto",
|
|
117
|
+
"currency",
|
|
118
|
+
"currency0k",
|
|
119
|
+
"currency0m",
|
|
120
|
+
"currency0b",
|
|
121
|
+
"num0",
|
|
122
|
+
"num1",
|
|
123
|
+
"num0k",
|
|
124
|
+
"num0m",
|
|
125
|
+
"num0b",
|
|
126
|
+
"pct",
|
|
127
|
+
"pct0",
|
|
128
|
+
"pct1",
|
|
129
|
+
"date",
|
|
130
|
+
"duration"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
112
133
|
"CurrencyCode": {
|
|
113
134
|
"type": "string",
|
|
114
135
|
"description": "ISO 4217 currency code (e.g., USD, GBP, EUR)"
|
|
@@ -135,6 +156,7 @@
|
|
|
135
156
|
},
|
|
136
157
|
"ColumnarData": {
|
|
137
158
|
"type": "object",
|
|
159
|
+
"description": "Columnar data shape accepted as an alternative to `data` on DataArray-based chart types. The CLI normalizes this to `data` before rendering or linting.",
|
|
138
160
|
"properties": {
|
|
139
161
|
"columns": {
|
|
140
162
|
"type": "array",
|
|
@@ -176,13 +198,15 @@
|
|
|
176
198
|
"type": "array",
|
|
177
199
|
"items": {
|
|
178
200
|
"type": "string"
|
|
179
|
-
}
|
|
201
|
+
},
|
|
202
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
180
203
|
},
|
|
181
204
|
"rows": {
|
|
182
205
|
"type": "array",
|
|
183
206
|
"items": {
|
|
184
207
|
"type": "array"
|
|
185
|
-
}
|
|
208
|
+
},
|
|
209
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
186
210
|
},
|
|
187
211
|
"x": {
|
|
188
212
|
"type": "string"
|
|
@@ -213,6 +237,13 @@
|
|
|
213
237
|
},
|
|
214
238
|
"yMax": {
|
|
215
239
|
"type": "number"
|
|
240
|
+
},
|
|
241
|
+
"xAxisType": {
|
|
242
|
+
"enum": [
|
|
243
|
+
"category",
|
|
244
|
+
"time",
|
|
245
|
+
"value"
|
|
246
|
+
]
|
|
216
247
|
}
|
|
217
248
|
},
|
|
218
249
|
"additionalProperties": false
|
|
@@ -239,13 +270,15 @@
|
|
|
239
270
|
"type": "array",
|
|
240
271
|
"items": {
|
|
241
272
|
"type": "string"
|
|
242
|
-
}
|
|
273
|
+
},
|
|
274
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
243
275
|
},
|
|
244
276
|
"rows": {
|
|
245
277
|
"type": "array",
|
|
246
278
|
"items": {
|
|
247
279
|
"type": "array"
|
|
248
|
-
}
|
|
280
|
+
},
|
|
281
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
249
282
|
},
|
|
250
283
|
"x": {
|
|
251
284
|
"type": "string"
|
|
@@ -306,13 +339,15 @@
|
|
|
306
339
|
"type": "array",
|
|
307
340
|
"items": {
|
|
308
341
|
"type": "string"
|
|
309
|
-
}
|
|
342
|
+
},
|
|
343
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
310
344
|
},
|
|
311
345
|
"rows": {
|
|
312
346
|
"type": "array",
|
|
313
347
|
"items": {
|
|
314
348
|
"type": "array"
|
|
315
|
-
}
|
|
349
|
+
},
|
|
350
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
316
351
|
},
|
|
317
352
|
"x": {
|
|
318
353
|
"type": "string"
|
|
@@ -343,6 +378,13 @@
|
|
|
343
378
|
},
|
|
344
379
|
"yMax": {
|
|
345
380
|
"type": "number"
|
|
381
|
+
},
|
|
382
|
+
"xAxisType": {
|
|
383
|
+
"enum": [
|
|
384
|
+
"category",
|
|
385
|
+
"time",
|
|
386
|
+
"value"
|
|
387
|
+
]
|
|
346
388
|
}
|
|
347
389
|
},
|
|
348
390
|
"additionalProperties": false
|
|
@@ -363,6 +405,20 @@
|
|
|
363
405
|
"data": {
|
|
364
406
|
"$ref": "#/$defs/DataArray"
|
|
365
407
|
},
|
|
408
|
+
"columns": {
|
|
409
|
+
"type": "array",
|
|
410
|
+
"items": {
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
414
|
+
},
|
|
415
|
+
"rows": {
|
|
416
|
+
"type": "array",
|
|
417
|
+
"items": {
|
|
418
|
+
"type": "array"
|
|
419
|
+
},
|
|
420
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
421
|
+
},
|
|
366
422
|
"name": {
|
|
367
423
|
"type": "string",
|
|
368
424
|
"default": "name"
|
|
@@ -401,6 +457,20 @@
|
|
|
401
457
|
"data": {
|
|
402
458
|
"$ref": "#/$defs/DataArray"
|
|
403
459
|
},
|
|
460
|
+
"columns": {
|
|
461
|
+
"type": "array",
|
|
462
|
+
"items": {
|
|
463
|
+
"type": "string"
|
|
464
|
+
},
|
|
465
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
466
|
+
},
|
|
467
|
+
"rows": {
|
|
468
|
+
"type": "array",
|
|
469
|
+
"items": {
|
|
470
|
+
"type": "array"
|
|
471
|
+
},
|
|
472
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
473
|
+
},
|
|
404
474
|
"x": {
|
|
405
475
|
"type": "string"
|
|
406
476
|
},
|
|
@@ -456,6 +526,20 @@
|
|
|
456
526
|
"data": {
|
|
457
527
|
"$ref": "#/$defs/DataArray"
|
|
458
528
|
},
|
|
529
|
+
"columns": {
|
|
530
|
+
"type": "array",
|
|
531
|
+
"items": {
|
|
532
|
+
"type": "string"
|
|
533
|
+
},
|
|
534
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
535
|
+
},
|
|
536
|
+
"rows": {
|
|
537
|
+
"type": "array",
|
|
538
|
+
"items": {
|
|
539
|
+
"type": "array"
|
|
540
|
+
},
|
|
541
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
542
|
+
},
|
|
459
543
|
"x": {
|
|
460
544
|
"type": "string"
|
|
461
545
|
},
|
|
@@ -540,8 +624,7 @@
|
|
|
540
624
|
"HistogramChart": {
|
|
541
625
|
"type": "object",
|
|
542
626
|
"required": [
|
|
543
|
-
"type"
|
|
544
|
-
"data"
|
|
627
|
+
"type"
|
|
545
628
|
],
|
|
546
629
|
"properties": {
|
|
547
630
|
"$schema": {
|
|
@@ -564,6 +647,20 @@
|
|
|
564
647
|
}
|
|
565
648
|
]
|
|
566
649
|
},
|
|
650
|
+
"columns": {
|
|
651
|
+
"type": "array",
|
|
652
|
+
"items": {
|
|
653
|
+
"type": "string"
|
|
654
|
+
},
|
|
655
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
656
|
+
},
|
|
657
|
+
"rows": {
|
|
658
|
+
"type": "array",
|
|
659
|
+
"items": {
|
|
660
|
+
"type": "array"
|
|
661
|
+
},
|
|
662
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
663
|
+
},
|
|
567
664
|
"value": {
|
|
568
665
|
"type": "string"
|
|
569
666
|
},
|
|
@@ -578,13 +675,25 @@
|
|
|
578
675
|
"$ref": "#/$defs/Theme"
|
|
579
676
|
}
|
|
580
677
|
},
|
|
581
|
-
"additionalProperties": false
|
|
678
|
+
"additionalProperties": false,
|
|
679
|
+
"anyOf": [
|
|
680
|
+
{
|
|
681
|
+
"required": [
|
|
682
|
+
"data"
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"required": [
|
|
687
|
+
"columns",
|
|
688
|
+
"rows"
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
]
|
|
582
692
|
},
|
|
583
693
|
"WaterfallChart": {
|
|
584
694
|
"type": "object",
|
|
585
695
|
"required": [
|
|
586
|
-
"type"
|
|
587
|
-
"data"
|
|
696
|
+
"type"
|
|
588
697
|
],
|
|
589
698
|
"properties": {
|
|
590
699
|
"$schema": {
|
|
@@ -622,6 +731,20 @@
|
|
|
622
731
|
}
|
|
623
732
|
}
|
|
624
733
|
},
|
|
734
|
+
"columns": {
|
|
735
|
+
"type": "array",
|
|
736
|
+
"items": {
|
|
737
|
+
"type": "string"
|
|
738
|
+
},
|
|
739
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
740
|
+
},
|
|
741
|
+
"rows": {
|
|
742
|
+
"type": "array",
|
|
743
|
+
"items": {
|
|
744
|
+
"type": "array"
|
|
745
|
+
},
|
|
746
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
747
|
+
},
|
|
625
748
|
"name": {
|
|
626
749
|
"type": "string",
|
|
627
750
|
"default": "name",
|
|
@@ -653,13 +776,25 @@
|
|
|
653
776
|
"$ref": "#/$defs/Theme"
|
|
654
777
|
}
|
|
655
778
|
},
|
|
656
|
-
"additionalProperties": false
|
|
779
|
+
"additionalProperties": false,
|
|
780
|
+
"anyOf": [
|
|
781
|
+
{
|
|
782
|
+
"required": [
|
|
783
|
+
"data"
|
|
784
|
+
]
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"required": [
|
|
788
|
+
"columns",
|
|
789
|
+
"rows"
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
]
|
|
657
793
|
},
|
|
658
794
|
"XmrChart": {
|
|
659
795
|
"type": "object",
|
|
660
796
|
"required": [
|
|
661
|
-
"type"
|
|
662
|
-
"data"
|
|
797
|
+
"type"
|
|
663
798
|
],
|
|
664
799
|
"properties": {
|
|
665
800
|
"$schema": {
|
|
@@ -682,6 +817,20 @@
|
|
|
682
817
|
}
|
|
683
818
|
]
|
|
684
819
|
},
|
|
820
|
+
"columns": {
|
|
821
|
+
"type": "array",
|
|
822
|
+
"items": {
|
|
823
|
+
"type": "string"
|
|
824
|
+
},
|
|
825
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
826
|
+
},
|
|
827
|
+
"rows": {
|
|
828
|
+
"type": "array",
|
|
829
|
+
"items": {
|
|
830
|
+
"type": "array"
|
|
831
|
+
},
|
|
832
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
833
|
+
},
|
|
685
834
|
"value": {
|
|
686
835
|
"type": "string",
|
|
687
836
|
"default": "value"
|
|
@@ -707,13 +856,25 @@
|
|
|
707
856
|
"type": "number"
|
|
708
857
|
}
|
|
709
858
|
},
|
|
710
|
-
"additionalProperties": false
|
|
859
|
+
"additionalProperties": false,
|
|
860
|
+
"anyOf": [
|
|
861
|
+
{
|
|
862
|
+
"required": [
|
|
863
|
+
"data"
|
|
864
|
+
]
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"required": [
|
|
868
|
+
"columns",
|
|
869
|
+
"rows"
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
]
|
|
711
873
|
},
|
|
712
874
|
"SankeyChart": {
|
|
713
875
|
"type": "object",
|
|
714
876
|
"required": [
|
|
715
|
-
"type"
|
|
716
|
-
"data"
|
|
877
|
+
"type"
|
|
717
878
|
],
|
|
718
879
|
"properties": {
|
|
719
880
|
"$schema": {
|
|
@@ -745,6 +906,20 @@
|
|
|
745
906
|
}
|
|
746
907
|
}
|
|
747
908
|
},
|
|
909
|
+
"columns": {
|
|
910
|
+
"type": "array",
|
|
911
|
+
"items": {
|
|
912
|
+
"type": "string"
|
|
913
|
+
},
|
|
914
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
915
|
+
},
|
|
916
|
+
"rows": {
|
|
917
|
+
"type": "array",
|
|
918
|
+
"items": {
|
|
919
|
+
"type": "array"
|
|
920
|
+
},
|
|
921
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
922
|
+
},
|
|
748
923
|
"nodes": {
|
|
749
924
|
"type": "array",
|
|
750
925
|
"items": {
|
|
@@ -758,13 +933,25 @@
|
|
|
758
933
|
"$ref": "#/$defs/Theme"
|
|
759
934
|
}
|
|
760
935
|
},
|
|
761
|
-
"additionalProperties": false
|
|
936
|
+
"additionalProperties": false,
|
|
937
|
+
"anyOf": [
|
|
938
|
+
{
|
|
939
|
+
"required": [
|
|
940
|
+
"data"
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"required": [
|
|
945
|
+
"columns",
|
|
946
|
+
"rows"
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
]
|
|
762
950
|
},
|
|
763
951
|
"FunnelChart": {
|
|
764
952
|
"type": "object",
|
|
765
953
|
"required": [
|
|
766
|
-
"type"
|
|
767
|
-
"data"
|
|
954
|
+
"type"
|
|
768
955
|
],
|
|
769
956
|
"properties": {
|
|
770
957
|
"$schema": {
|
|
@@ -777,6 +964,20 @@
|
|
|
777
964
|
"data": {
|
|
778
965
|
"$ref": "#/$defs/DataArray"
|
|
779
966
|
},
|
|
967
|
+
"columns": {
|
|
968
|
+
"type": "array",
|
|
969
|
+
"items": {
|
|
970
|
+
"type": "string"
|
|
971
|
+
},
|
|
972
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
973
|
+
},
|
|
974
|
+
"rows": {
|
|
975
|
+
"type": "array",
|
|
976
|
+
"items": {
|
|
977
|
+
"type": "array"
|
|
978
|
+
},
|
|
979
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
980
|
+
},
|
|
780
981
|
"name": {
|
|
781
982
|
"type": "string"
|
|
782
983
|
},
|
|
@@ -796,13 +997,25 @@
|
|
|
796
997
|
"$ref": "#/$defs/Theme"
|
|
797
998
|
}
|
|
798
999
|
},
|
|
799
|
-
"additionalProperties": false
|
|
1000
|
+
"additionalProperties": false,
|
|
1001
|
+
"anyOf": [
|
|
1002
|
+
{
|
|
1003
|
+
"required": [
|
|
1004
|
+
"data"
|
|
1005
|
+
]
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"required": [
|
|
1009
|
+
"columns",
|
|
1010
|
+
"rows"
|
|
1011
|
+
]
|
|
1012
|
+
}
|
|
1013
|
+
]
|
|
800
1014
|
},
|
|
801
1015
|
"HeatmapChart": {
|
|
802
1016
|
"type": "object",
|
|
803
1017
|
"required": [
|
|
804
1018
|
"type",
|
|
805
|
-
"data",
|
|
806
1019
|
"xCategories",
|
|
807
1020
|
"yCategories"
|
|
808
1021
|
],
|
|
@@ -839,6 +1052,20 @@
|
|
|
839
1052
|
]
|
|
840
1053
|
}
|
|
841
1054
|
},
|
|
1055
|
+
"columns": {
|
|
1056
|
+
"type": "array",
|
|
1057
|
+
"items": {
|
|
1058
|
+
"type": "string"
|
|
1059
|
+
},
|
|
1060
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
1061
|
+
},
|
|
1062
|
+
"rows": {
|
|
1063
|
+
"type": "array",
|
|
1064
|
+
"items": {
|
|
1065
|
+
"type": "array"
|
|
1066
|
+
},
|
|
1067
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
1068
|
+
},
|
|
842
1069
|
"xCategories": {
|
|
843
1070
|
"type": "array",
|
|
844
1071
|
"items": {
|
|
@@ -864,13 +1091,25 @@
|
|
|
864
1091
|
"$ref": "#/$defs/Theme"
|
|
865
1092
|
}
|
|
866
1093
|
},
|
|
867
|
-
"additionalProperties": false
|
|
1094
|
+
"additionalProperties": false,
|
|
1095
|
+
"anyOf": [
|
|
1096
|
+
{
|
|
1097
|
+
"required": [
|
|
1098
|
+
"data"
|
|
1099
|
+
]
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"required": [
|
|
1103
|
+
"columns",
|
|
1104
|
+
"rows"
|
|
1105
|
+
]
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
868
1108
|
},
|
|
869
1109
|
"CalendarChart": {
|
|
870
1110
|
"type": "object",
|
|
871
1111
|
"required": [
|
|
872
1112
|
"type",
|
|
873
|
-
"data",
|
|
874
1113
|
"year"
|
|
875
1114
|
],
|
|
876
1115
|
"properties": {
|
|
@@ -900,6 +1139,20 @@
|
|
|
900
1139
|
}
|
|
901
1140
|
}
|
|
902
1141
|
},
|
|
1142
|
+
"columns": {
|
|
1143
|
+
"type": "array",
|
|
1144
|
+
"items": {
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
},
|
|
1147
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
1148
|
+
},
|
|
1149
|
+
"rows": {
|
|
1150
|
+
"type": "array",
|
|
1151
|
+
"items": {
|
|
1152
|
+
"type": "array"
|
|
1153
|
+
},
|
|
1154
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
1155
|
+
},
|
|
903
1156
|
"year": {
|
|
904
1157
|
"type": "integer"
|
|
905
1158
|
},
|
|
@@ -910,7 +1163,20 @@
|
|
|
910
1163
|
"$ref": "#/$defs/Theme"
|
|
911
1164
|
}
|
|
912
1165
|
},
|
|
913
|
-
"additionalProperties": false
|
|
1166
|
+
"additionalProperties": false,
|
|
1167
|
+
"anyOf": [
|
|
1168
|
+
{
|
|
1169
|
+
"required": [
|
|
1170
|
+
"data"
|
|
1171
|
+
]
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"required": [
|
|
1175
|
+
"columns",
|
|
1176
|
+
"rows"
|
|
1177
|
+
]
|
|
1178
|
+
}
|
|
1179
|
+
]
|
|
914
1180
|
},
|
|
915
1181
|
"SparklineChart": {
|
|
916
1182
|
"type": "object",
|
|
@@ -938,8 +1204,30 @@
|
|
|
938
1204
|
}
|
|
939
1205
|
]
|
|
940
1206
|
},
|
|
1207
|
+
"columns": {
|
|
1208
|
+
"type": "array",
|
|
1209
|
+
"items": {
|
|
1210
|
+
"type": "string"
|
|
1211
|
+
},
|
|
1212
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
1213
|
+
},
|
|
1214
|
+
"rows": {
|
|
1215
|
+
"type": "array",
|
|
1216
|
+
"items": {
|
|
1217
|
+
"type": "array"
|
|
1218
|
+
},
|
|
1219
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
1220
|
+
},
|
|
941
1221
|
"value": {
|
|
942
|
-
"
|
|
1222
|
+
"oneOf": [
|
|
1223
|
+
{
|
|
1224
|
+
"type": "number"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"type": "string"
|
|
1228
|
+
}
|
|
1229
|
+
],
|
|
1230
|
+
"description": "Numeric percentage for pct/pct_bar sparkType, or the data field name (string) whose values are plotted for line/bar/area/dumbbell sparkType."
|
|
943
1231
|
},
|
|
944
1232
|
"sparkType": {
|
|
945
1233
|
"enum": [
|
|
@@ -962,6 +1250,11 @@
|
|
|
962
1250
|
},
|
|
963
1251
|
"theme": {
|
|
964
1252
|
"$ref": "#/$defs/Theme"
|
|
1253
|
+
},
|
|
1254
|
+
"showValue": {
|
|
1255
|
+
"type": "boolean",
|
|
1256
|
+
"default": true,
|
|
1257
|
+
"description": "Show the formatted value next to the bar (pct/pct_bar sparkType only)"
|
|
965
1258
|
}
|
|
966
1259
|
},
|
|
967
1260
|
"additionalProperties": false
|
|
@@ -983,6 +1276,20 @@
|
|
|
983
1276
|
"data": {
|
|
984
1277
|
"$ref": "#/$defs/DataArray"
|
|
985
1278
|
},
|
|
1279
|
+
"columns": {
|
|
1280
|
+
"type": "array",
|
|
1281
|
+
"items": {
|
|
1282
|
+
"type": "string"
|
|
1283
|
+
},
|
|
1284
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
1285
|
+
},
|
|
1286
|
+
"rows": {
|
|
1287
|
+
"type": "array",
|
|
1288
|
+
"items": {
|
|
1289
|
+
"type": "array"
|
|
1290
|
+
},
|
|
1291
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
1292
|
+
},
|
|
986
1293
|
"x": {
|
|
987
1294
|
"type": "string"
|
|
988
1295
|
},
|
|
@@ -1043,7 +1350,6 @@
|
|
|
1043
1350
|
"type": "object",
|
|
1044
1351
|
"required": [
|
|
1045
1352
|
"type",
|
|
1046
|
-
"data",
|
|
1047
1353
|
"category",
|
|
1048
1354
|
"start",
|
|
1049
1355
|
"end"
|
|
@@ -1059,6 +1365,20 @@
|
|
|
1059
1365
|
"data": {
|
|
1060
1366
|
"$ref": "#/$defs/DataArray"
|
|
1061
1367
|
},
|
|
1368
|
+
"columns": {
|
|
1369
|
+
"type": "array",
|
|
1370
|
+
"items": {
|
|
1371
|
+
"type": "string"
|
|
1372
|
+
},
|
|
1373
|
+
"description": "Columnar form: column names. Use together with `rows` as an alternative to `data`."
|
|
1374
|
+
},
|
|
1375
|
+
"rows": {
|
|
1376
|
+
"type": "array",
|
|
1377
|
+
"items": {
|
|
1378
|
+
"type": "array"
|
|
1379
|
+
},
|
|
1380
|
+
"description": "Columnar form: row values. Use together with `columns` as an alternative to `data`."
|
|
1381
|
+
},
|
|
1062
1382
|
"category": {
|
|
1063
1383
|
"type": "string"
|
|
1064
1384
|
},
|
|
@@ -1093,9 +1413,28 @@
|
|
|
1093
1413
|
},
|
|
1094
1414
|
"theme": {
|
|
1095
1415
|
"$ref": "#/$defs/Theme"
|
|
1416
|
+
},
|
|
1417
|
+
"xMin": {
|
|
1418
|
+
"type": "number"
|
|
1419
|
+
},
|
|
1420
|
+
"xMax": {
|
|
1421
|
+
"type": "number"
|
|
1096
1422
|
}
|
|
1097
1423
|
},
|
|
1098
|
-
"additionalProperties": false
|
|
1424
|
+
"additionalProperties": false,
|
|
1425
|
+
"anyOf": [
|
|
1426
|
+
{
|
|
1427
|
+
"required": [
|
|
1428
|
+
"data"
|
|
1429
|
+
]
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"required": [
|
|
1433
|
+
"columns",
|
|
1434
|
+
"rows"
|
|
1435
|
+
]
|
|
1436
|
+
}
|
|
1437
|
+
]
|
|
1099
1438
|
},
|
|
1100
1439
|
"MermaidChart": {
|
|
1101
1440
|
"type": "object",
|
|
@@ -1113,8 +1452,15 @@
|
|
|
1113
1452
|
},
|
|
1114
1453
|
"code": {
|
|
1115
1454
|
"oneOf": [
|
|
1116
|
-
{
|
|
1117
|
-
|
|
1455
|
+
{
|
|
1456
|
+
"type": "string"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"type": "array",
|
|
1460
|
+
"items": {
|
|
1461
|
+
"type": "string"
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1118
1464
|
],
|
|
1119
1465
|
"description": "Mermaid diagram syntax as string or array of lines (joined with newlines)"
|
|
1120
1466
|
},
|
|
@@ -1227,6 +1573,11 @@
|
|
|
1227
1573
|
"type": "boolean",
|
|
1228
1574
|
"default": true
|
|
1229
1575
|
},
|
|
1576
|
+
"neutralIs": {
|
|
1577
|
+
"type": "number",
|
|
1578
|
+
"default": 0,
|
|
1579
|
+
"description": "Value treated as neutral (no change). When value === neutralIs, the indicator uses a right-arrow and muted color instead of green/red."
|
|
1580
|
+
},
|
|
1230
1581
|
"comparison": {
|
|
1231
1582
|
"type": "object",
|
|
1232
1583
|
"properties": {
|
|
@@ -1253,8 +1604,16 @@
|
|
|
1253
1604
|
"type"
|
|
1254
1605
|
],
|
|
1255
1606
|
"anyOf": [
|
|
1256
|
-
{
|
|
1257
|
-
|
|
1607
|
+
{
|
|
1608
|
+
"required": [
|
|
1609
|
+
"message"
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"required": [
|
|
1614
|
+
"content"
|
|
1615
|
+
]
|
|
1616
|
+
}
|
|
1258
1617
|
],
|
|
1259
1618
|
"properties": {
|
|
1260
1619
|
"$schema": {
|
|
@@ -1415,7 +1774,7 @@
|
|
|
1415
1774
|
]
|
|
1416
1775
|
},
|
|
1417
1776
|
"fmt": {
|
|
1418
|
-
"$ref": "#/$defs/
|
|
1777
|
+
"$ref": "#/$defs/TableColumnFormatOption"
|
|
1419
1778
|
},
|
|
1420
1779
|
"bold": {
|
|
1421
1780
|
"type": "boolean"
|
|
@@ -1480,6 +1839,16 @@
|
|
|
1480
1839
|
"compact": {
|
|
1481
1840
|
"type": "boolean"
|
|
1482
1841
|
},
|
|
1842
|
+
"sortable": {
|
|
1843
|
+
"type": "boolean",
|
|
1844
|
+
"default": true,
|
|
1845
|
+
"description": "Enable click-to-sort on column headers. Cycles asc \u2192 desc \u2192 none. Numeric columns sort by raw value."
|
|
1846
|
+
},
|
|
1847
|
+
"filter": {
|
|
1848
|
+
"type": "boolean",
|
|
1849
|
+
"default": false,
|
|
1850
|
+
"description": "When true, render a global search input above the table that filters rows by case-insensitive contains match on any cell."
|
|
1851
|
+
},
|
|
1483
1852
|
"currency": {
|
|
1484
1853
|
"$ref": "#/$defs/CurrencyCode"
|
|
1485
1854
|
},
|