@opendata-ai/openchart-core 8.9.1 → 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 +697 -348
- package/dist/index.js +353 -247
- 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 +962 -5116
- package/schema/table.schema.json +64 -89
- package/schema/vizspec.schema.json +1572 -9693
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
|
-
"deprecated": "Use the mount darkMode option; the spec field has no effect."
|
|
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."
|
|
@@ -692,6 +684,22 @@
|
|
|
692
684
|
"$ref": "#/definitions/TokenValue",
|
|
693
685
|
"description": "Annotation plate color. Accepts a TokenValue light/dark pair."
|
|
694
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
|
+
},
|
|
695
703
|
"positive": {
|
|
696
704
|
"$ref": "#/definitions/TokenValue",
|
|
697
705
|
"description": "Semantic color for positive/up-trend values. Accepts a TokenValue for light/dark pairs."
|
|
@@ -734,11 +742,11 @@
|
|
|
734
742
|
},
|
|
735
743
|
"small": {
|
|
736
744
|
"type": "number",
|
|
737
|
-
"description": "Small text (source line, footer). Default:
|
|
745
|
+
"description": "Small text (source line, footer). Default: 12."
|
|
738
746
|
},
|
|
739
747
|
"axisTick": {
|
|
740
748
|
"type": "number",
|
|
741
|
-
"description": "Axis tick labels. Default:
|
|
749
|
+
"description": "Axis tick labels. Default: 12."
|
|
742
750
|
},
|
|
743
751
|
"metricLabel": {
|
|
744
752
|
"type": "number",
|
|
@@ -747,6 +755,13 @@
|
|
|
747
755
|
"metricValue": {
|
|
748
756
|
"type": "number",
|
|
749
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"
|
|
750
765
|
}
|
|
751
766
|
},
|
|
752
767
|
"additionalProperties": false,
|
|
@@ -809,6 +824,16 @@
|
|
|
809
824
|
"xAxisLabelPadding": {
|
|
810
825
|
"type": "number",
|
|
811
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"
|
|
812
837
|
}
|
|
813
838
|
},
|
|
814
839
|
"additionalProperties": false,
|
|
@@ -822,97 +847,57 @@
|
|
|
822
847
|
"type": "object",
|
|
823
848
|
"properties": {
|
|
824
849
|
"eyebrow": {
|
|
825
|
-
"
|
|
826
|
-
{
|
|
827
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
"type": "string"
|
|
831
|
-
}
|
|
832
|
-
],
|
|
850
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
833
851
|
"description": "Eyebrow (kicker) style override."
|
|
834
852
|
},
|
|
835
853
|
"title": {
|
|
836
|
-
"
|
|
837
|
-
{
|
|
838
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"type": "string"
|
|
842
|
-
}
|
|
843
|
-
],
|
|
854
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
844
855
|
"description": "Title style override."
|
|
845
856
|
},
|
|
846
857
|
"subtitle": {
|
|
847
|
-
"
|
|
848
|
-
{
|
|
849
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
"type": "string"
|
|
853
|
-
}
|
|
854
|
-
],
|
|
858
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
855
859
|
"description": "Subtitle style override."
|
|
856
860
|
},
|
|
857
861
|
"source": {
|
|
858
|
-
"
|
|
859
|
-
{
|
|
860
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
"type": "string"
|
|
864
|
-
}
|
|
865
|
-
],
|
|
862
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
866
863
|
"description": "Source/attribution style override."
|
|
867
864
|
},
|
|
868
865
|
"byline": {
|
|
869
|
-
"
|
|
870
|
-
{
|
|
871
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
872
|
-
},
|
|
873
|
-
{
|
|
874
|
-
"type": "string"
|
|
875
|
-
}
|
|
876
|
-
],
|
|
866
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
877
867
|
"description": "Byline style override."
|
|
878
868
|
},
|
|
879
869
|
"footer": {
|
|
880
|
-
"
|
|
881
|
-
{
|
|
882
|
-
"$ref": "#/definitions/ChromeThemeOverride"
|
|
883
|
-
},
|
|
884
|
-
{
|
|
885
|
-
"type": "string"
|
|
886
|
-
}
|
|
887
|
-
],
|
|
870
|
+
"$ref": "#/definitions/ChromeThemeOverride",
|
|
888
871
|
"description": "Footer style override."
|
|
889
872
|
}
|
|
890
873
|
},
|
|
891
874
|
"additionalProperties": false,
|
|
892
|
-
"description": "Per-element chrome
|
|
875
|
+
"description": "Per-element chrome typography control (color, fontSize, fontWeight, lineHeight)."
|
|
893
876
|
},
|
|
894
877
|
"rule": {
|
|
895
|
-
"
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
"
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
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
|
|
904
896
|
},
|
|
905
|
-
|
|
906
|
-
"type": "
|
|
907
|
-
"description": "Rule height in pixels."
|
|
897
|
+
{
|
|
898
|
+
"type": "null"
|
|
908
899
|
}
|
|
909
|
-
},
|
|
910
|
-
"required": [
|
|
911
|
-
"color",
|
|
912
|
-
"width",
|
|
913
|
-
"thickness"
|
|
914
900
|
],
|
|
915
|
-
"additionalProperties": false,
|
|
916
901
|
"description": "Editorial rule above the chrome block: a short colored bar (the Economist/FT masthead device). Omit for no rule."
|
|
917
902
|
},
|
|
918
903
|
"seriesStrategy": {
|
|
@@ -968,7 +953,7 @@
|
|
|
968
953
|
}
|
|
969
954
|
},
|
|
970
955
|
"additionalProperties": false,
|
|
971
|
-
"description": "Per-element chrome theme
|
|
956
|
+
"description": "Per-element chrome theme typography controls."
|
|
972
957
|
},
|
|
973
958
|
"SeriesStrategy": {
|
|
974
959
|
"type": "string",
|
|
@@ -978,15 +963,6 @@
|
|
|
978
963
|
],
|
|
979
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."
|
|
980
965
|
},
|
|
981
|
-
"DarkMode": {
|
|
982
|
-
"type": "string",
|
|
983
|
-
"enum": [
|
|
984
|
-
"auto",
|
|
985
|
-
"force",
|
|
986
|
-
"off"
|
|
987
|
-
],
|
|
988
|
-
"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."
|
|
989
|
-
},
|
|
990
966
|
"TableDensity": {
|
|
991
967
|
"type": "string",
|
|
992
968
|
"enum": [
|
|
@@ -1037,8 +1013,7 @@
|
|
|
1037
1013
|
"type": "string",
|
|
1038
1014
|
"enum": [
|
|
1039
1015
|
"fluid",
|
|
1040
|
-
"subtle"
|
|
1041
|
-
"legacy"
|
|
1016
|
+
"subtle"
|
|
1042
1017
|
],
|
|
1043
1018
|
"description": "Opt-in motion language."
|
|
1044
1019
|
},
|