@opendata-ai/openchart-core 8.9.0 → 9.0.0-rc.1
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 +3 -2
- package/dist/index.d.ts +967 -505
- package/dist/index.js +547 -203
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +889 -4983
- package/schema/table.schema.json +93 -90
- package/schema/vizspec.schema.json +1747 -9809
package/schema/table.schema.json
CHANGED
|
@@ -56,10 +56,6 @@
|
|
|
56
56
|
"$ref": "#/definitions/ThemeConfig",
|
|
57
57
|
"description": "Theme configuration overrides."
|
|
58
58
|
},
|
|
59
|
-
"darkMode": {
|
|
60
|
-
"$ref": "#/definitions/DarkMode",
|
|
61
|
-
"description": "Dark mode behavior."
|
|
62
|
-
},
|
|
63
59
|
"watermark": {
|
|
64
60
|
"type": "boolean",
|
|
65
61
|
"description": "Whether to show the OpenData watermark. Defaults to true."
|
|
@@ -121,10 +117,6 @@
|
|
|
121
117
|
],
|
|
122
118
|
"description": "Sticky footer summing every quantitative column over the filtered rows (the whole result set, not just the current page). `true` uses the label \"Total\"."
|
|
123
119
|
},
|
|
124
|
-
"compact": {
|
|
125
|
-
"type": "boolean",
|
|
126
|
-
"deprecated": "Use `density: 'condensed'`. Still honored, with a warning."
|
|
127
|
-
},
|
|
128
120
|
"responsive": {
|
|
129
121
|
"type": "boolean",
|
|
130
122
|
"description": "Whether the table adapts to container width. Defaults to true."
|
|
@@ -664,6 +656,50 @@
|
|
|
664
656
|
"$ref": "#/definitions/TokenValue",
|
|
665
657
|
"description": "Annotation text color. Accepts a TokenValue for light/dark pairs."
|
|
666
658
|
},
|
|
659
|
+
"annotationLabel": {
|
|
660
|
+
"$ref": "#/definitions/TokenValue",
|
|
661
|
+
"description": "Annotation label color. Accepts a TokenValue light/dark pair."
|
|
662
|
+
},
|
|
663
|
+
"annotationMuted": {
|
|
664
|
+
"$ref": "#/definitions/TokenValue",
|
|
665
|
+
"description": "Annotation muted color. Accepts a TokenValue light/dark pair."
|
|
666
|
+
},
|
|
667
|
+
"annotationLeader": {
|
|
668
|
+
"$ref": "#/definitions/TokenValue",
|
|
669
|
+
"description": "Annotation leader color. Accepts a TokenValue light/dark pair."
|
|
670
|
+
},
|
|
671
|
+
"annotationRule": {
|
|
672
|
+
"$ref": "#/definitions/TokenValue",
|
|
673
|
+
"description": "Annotation rule color. Accepts a TokenValue light/dark pair."
|
|
674
|
+
},
|
|
675
|
+
"annotationRangeFill": {
|
|
676
|
+
"$ref": "#/definitions/TokenValue",
|
|
677
|
+
"description": "Annotation rangefill color. Accepts a TokenValue light/dark pair."
|
|
678
|
+
},
|
|
679
|
+
"annotationMarkerFill": {
|
|
680
|
+
"$ref": "#/definitions/TokenValue",
|
|
681
|
+
"description": "Annotation markerfill color. Accepts a TokenValue light/dark pair."
|
|
682
|
+
},
|
|
683
|
+
"annotationPlate": {
|
|
684
|
+
"$ref": "#/definitions/TokenValue",
|
|
685
|
+
"description": "Annotation plate color. Accepts a TokenValue light/dark pair."
|
|
686
|
+
},
|
|
687
|
+
"gridlineZero": {
|
|
688
|
+
"$ref": "#/definitions/TokenValue",
|
|
689
|
+
"description": "Optional map missing-data and geographic border ink."
|
|
690
|
+
},
|
|
691
|
+
"mapNoDataFill": {
|
|
692
|
+
"$ref": "#/definitions/TokenValue"
|
|
693
|
+
},
|
|
694
|
+
"mapNoDataHatch": {
|
|
695
|
+
"$ref": "#/definitions/TokenValue"
|
|
696
|
+
},
|
|
697
|
+
"mapInteriorBorder": {
|
|
698
|
+
"$ref": "#/definitions/TokenValue"
|
|
699
|
+
},
|
|
700
|
+
"mapOutlineBorder": {
|
|
701
|
+
"$ref": "#/definitions/TokenValue"
|
|
702
|
+
},
|
|
667
703
|
"positive": {
|
|
668
704
|
"$ref": "#/definitions/TokenValue",
|
|
669
705
|
"description": "Semantic color for positive/up-trend values. Accepts a TokenValue for light/dark pairs."
|
|
@@ -706,11 +742,11 @@
|
|
|
706
742
|
},
|
|
707
743
|
"small": {
|
|
708
744
|
"type": "number",
|
|
709
|
-
"description": "Small text (source line, footer). Default:
|
|
745
|
+
"description": "Small text (source line, footer). Default: 12."
|
|
710
746
|
},
|
|
711
747
|
"axisTick": {
|
|
712
748
|
"type": "number",
|
|
713
|
-
"description": "Axis tick labels. Default:
|
|
749
|
+
"description": "Axis tick labels. Default: 12."
|
|
714
750
|
},
|
|
715
751
|
"metricLabel": {
|
|
716
752
|
"type": "number",
|
|
@@ -719,6 +755,13 @@
|
|
|
719
755
|
"metricValue": {
|
|
720
756
|
"type": "number",
|
|
721
757
|
"description": "KPI metric primary value. Default: 22. Delta/secondary derive from this."
|
|
758
|
+
},
|
|
759
|
+
"endpointLabel": {
|
|
760
|
+
"type": "number",
|
|
761
|
+
"description": "Series-name and numerical endpoint font sizes in pixels."
|
|
762
|
+
},
|
|
763
|
+
"endpointValue": {
|
|
764
|
+
"type": "number"
|
|
722
765
|
}
|
|
723
766
|
},
|
|
724
767
|
"additionalProperties": false,
|
|
@@ -781,6 +824,16 @@
|
|
|
781
824
|
"xAxisLabelPadding": {
|
|
782
825
|
"type": "number",
|
|
783
826
|
"description": "Gap in pixels between the x-axis line and tick label text. Increase when larger axisTick fonts sit too close to the axis line."
|
|
827
|
+
},
|
|
828
|
+
"endpointEntryGap": {
|
|
829
|
+
"type": "number",
|
|
830
|
+
"description": "Endpoint block separation, internal value gap, and plot-to-column gap."
|
|
831
|
+
},
|
|
832
|
+
"endpointValueGap": {
|
|
833
|
+
"type": "number"
|
|
834
|
+
},
|
|
835
|
+
"endpointColumnGap": {
|
|
836
|
+
"type": "number"
|
|
784
837
|
}
|
|
785
838
|
},
|
|
786
839
|
"additionalProperties": false,
|
|
@@ -794,97 +847,57 @@
|
|
|
794
847
|
"type": "object",
|
|
795
848
|
"properties": {
|
|
796
849
|
"eyebrow": {
|
|
797
|
-
"
|
|
798
|
-
{
|
|
799
|
-
"type": "string"
|
|
800
|
-
},
|
|
801
|
-
{
|
|
802
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
803
|
-
}
|
|
804
|
-
],
|
|
850
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
805
851
|
"description": "Eyebrow (kicker) style override."
|
|
806
852
|
},
|
|
807
853
|
"title": {
|
|
808
|
-
"
|
|
809
|
-
{
|
|
810
|
-
"type": "string"
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
814
|
-
}
|
|
815
|
-
],
|
|
854
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
816
855
|
"description": "Title style override."
|
|
817
856
|
},
|
|
818
857
|
"subtitle": {
|
|
819
|
-
"
|
|
820
|
-
{
|
|
821
|
-
"type": "string"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
825
|
-
}
|
|
826
|
-
],
|
|
858
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
827
859
|
"description": "Subtitle style override."
|
|
828
860
|
},
|
|
829
861
|
"source": {
|
|
830
|
-
"
|
|
831
|
-
{
|
|
832
|
-
"type": "string"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
836
|
-
}
|
|
837
|
-
],
|
|
862
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
838
863
|
"description": "Source/attribution style override."
|
|
839
864
|
},
|
|
840
865
|
"byline": {
|
|
841
|
-
"
|
|
842
|
-
{
|
|
843
|
-
"type": "string"
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
847
|
-
}
|
|
848
|
-
],
|
|
866
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
849
867
|
"description": "Byline style override."
|
|
850
868
|
},
|
|
851
869
|
"footer": {
|
|
852
|
-
"
|
|
853
|
-
{
|
|
854
|
-
"type": "string"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
858
|
-
}
|
|
859
|
-
],
|
|
870
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
860
871
|
"description": "Footer style override."
|
|
861
872
|
}
|
|
862
873
|
},
|
|
863
874
|
"additionalProperties": false,
|
|
864
|
-
"description": "Per-element chrome
|
|
875
|
+
"description": "Per-element chrome typography control (color, fontSize, fontWeight, lineHeight)."
|
|
865
876
|
},
|
|
866
877
|
"rule": {
|
|
867
|
-
"
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
"
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
878
|
+
"anyOf": [
|
|
879
|
+
{
|
|
880
|
+
"type": "object",
|
|
881
|
+
"properties": {
|
|
882
|
+
"color": {
|
|
883
|
+
"$ref": "#/definitions/TokenValue",
|
|
884
|
+
"description": "Rule color. Accepts a TokenValue for light/dark pairs."
|
|
885
|
+
},
|
|
886
|
+
"width": {
|
|
887
|
+
"type": "number",
|
|
888
|
+
"description": "Rule length in pixels."
|
|
889
|
+
},
|
|
890
|
+
"thickness": {
|
|
891
|
+
"type": "number",
|
|
892
|
+
"description": "Rule height in pixels."
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"additionalProperties": false
|
|
876
896
|
},
|
|
877
|
-
|
|
878
|
-
"type": "
|
|
879
|
-
"description": "Rule height in pixels."
|
|
897
|
+
{
|
|
898
|
+
"type": "null"
|
|
880
899
|
}
|
|
881
|
-
},
|
|
882
|
-
"required": [
|
|
883
|
-
"color",
|
|
884
|
-
"width",
|
|
885
|
-
"thickness"
|
|
886
900
|
],
|
|
887
|
-
"additionalProperties": false,
|
|
888
901
|
"description": "Editorial rule above the chrome block: a short colored bar (the Economist/FT masthead device). Omit for no rule."
|
|
889
902
|
},
|
|
890
903
|
"seriesStrategy": {
|
|
@@ -940,7 +953,7 @@
|
|
|
940
953
|
}
|
|
941
954
|
},
|
|
942
955
|
"additionalProperties": false,
|
|
943
|
-
"description": "Per-element chrome theme
|
|
956
|
+
"description": "Per-element chrome theme typography controls."
|
|
944
957
|
},
|
|
945
958
|
"SeriesStrategy": {
|
|
946
959
|
"type": "string",
|
|
@@ -950,15 +963,6 @@
|
|
|
950
963
|
],
|
|
951
964
|
"description": "Series color assignment strategy.\n\n- `'palette'` — always assign from the full categorical palette (current default, zero visual drift).\n- `'accent-neutral'` — assign by series count: a single series gets the accent (first categorical color) only; 2-4 series get accent for the first and neutral grays for the rest; 5+ fall back to the full palette."
|
|
952
965
|
},
|
|
953
|
-
"DarkMode": {
|
|
954
|
-
"type": "string",
|
|
955
|
-
"enum": [
|
|
956
|
-
"auto",
|
|
957
|
-
"force",
|
|
958
|
-
"off"
|
|
959
|
-
],
|
|
960
|
-
"description": "Dark mode behavior.\n\n- `\"auto\"` - Checks the `prefers-color-scheme` media query to detect the user's system-level preference. This does NOT detect class-based dark mode toggles (e.g. `document.documentElement.classList.toggle('dark')`). If your app uses class-based dark mode, use VizThemeProvider with `\"force\"` or `\"off\"` instead of `\"auto\"` and toggle based on your app's state.\n- `\"force\"` - Always render in dark mode regardless of system preference.\n- `\"off\"` - Always render in light mode (default).\n\nAll components (Chart, Sankey, Graph) inherit darkMode from VizThemeProvider when no explicit prop is passed."
|
|
961
|
-
},
|
|
962
966
|
"TableDensity": {
|
|
963
967
|
"type": "string",
|
|
964
968
|
"enum": [
|
|
@@ -1009,10 +1013,9 @@
|
|
|
1009
1013
|
"type": "string",
|
|
1010
1014
|
"enum": [
|
|
1011
1015
|
"fluid",
|
|
1012
|
-
"subtle"
|
|
1013
|
-
"legacy"
|
|
1016
|
+
"subtle"
|
|
1014
1017
|
],
|
|
1015
|
-
"description": "Opt-in motion language.
|
|
1018
|
+
"description": "Opt-in motion language."
|
|
1016
1019
|
},
|
|
1017
1020
|
"AnimationConfig": {
|
|
1018
1021
|
"type": "object",
|