canvasxpress 70.8.0 → 70.8.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/package.json +1 -1
- package/src/canvasXpress.d.mts +21 -4
- package/src/canvasXpress.d.ts +21 -4
- package/src/canvasXpress.js +2 -2
package/package.json
CHANGED
package/src/canvasXpress.d.mts
CHANGED
|
@@ -123,7 +123,7 @@ export type CXGraphType =
|
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
126
|
-
* config schema (
|
|
126
|
+
* config schema (1734 keys). String enums become open literal
|
|
127
127
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
128
128
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
129
129
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -1047,7 +1047,7 @@ export interface CXConfig {
|
|
|
1047
1047
|
* a different color is needed in a particular visualization
|
|
1048
1048
|
* @default "User"
|
|
1049
1049
|
*/
|
|
1050
|
-
colorScheme?: "AAAS" | "Accent" | "BMS" | "BMSBackground" | "BMSBlue" | "BMSBrown" | "BMSGreen" | "BMSPink" | "BMSPrimary" | "BMSSecondary" | "BMSTertiary" | "BMSTertiaryDark" | "BMSTertiaryLight" | "BMSWheat" | "Basic" | "Behance" | "BehancePair" | "BehanceQuartet" | "BehanceTrio" | "Black" | "BlackAndWhite" | "BlueGrey" | "BlueRedGrey" | "Blues" | "BluesDark" | "Bootstrap" | "BrBG" | "Brand" | "Brooklyn99Dark" | "Brooklyn99Regular" | "BuGn" | "BuPu" | "CanvasXpress" | "CanvasXpressOLD" | "CanvasXpressTraditional" | "Cividis" | "ColorBlind" | "ColorSpectrum" | "Colorful" | "ColorfulAlt" | "Complementary" | "Dark2" | "Default" | "Diverging" | "DivergingAlt" | "Economist" | "EconomistBG" | "Excel" | "Excel2" | "Excel3" | "Favorite" | "GGBlanket" | "GGPlot" | "GameOfThronesArryn" | "GameOfThronesGreyjoy" | "GameOfThronesLannister" | "GameOfThronesManderly" | "GameOfThronesMartell" | "GameOfThronesStannis" | "GameOfThronesStark" | "GameOfThronesTargaryen" | "GameOfThronesTully" | "GameOfThronesTyrell" | "GnBu" | "GravityFalls" | "Greens" | "Grey" | "GreyHC" | "Greys" | "Heat" | "Highcharts" | "Inferno" | "JCO" | "Jama" | "KimPossible" | "Lancet" | "LastAirBenderAir" | "LastAirBenderEarth" | "LastAirBenderFire" | "LastAirBenderWater" | "Light" | "Magma" | "Matlab" | "NEJM" | "NPG" | "OrRd" | "Oranges" | "PRGn" | "Paired" | "ParksAndRecreation" | "Parula" | "PaulTol" | "PiYG" | "Plasma" | "Prism" | "PrismPair" | "PrismTrio" | "PuBu" | "PuBuGn" | "PuOr" | "PuRd" | "Purples" | "Rainbow" | "RdBu" | "RdGy" | "RdPu" | "RdYlBu" | "RdYlGn" | "Reds" | "RickyAndMorty" | "Simpsons" | "Solarized" | "SolarizedBase" | "Spectral" | "SpongeBob" | "Stata" | "Stata2" | "Stata3" | "StataMono" | "Tableau" | "TableauBlueRed" | "TableauColorBlind" | "TableauCyclic" | "TableauGreenOrange" | "TableauGrey" | "TableauLight" | "TableauMedium" | "TableauPairSequential" | "TableauPurpleGrey" | "TableauTrafficLight" | "TableauTripleDiverging" | "Viridis" | "ViridisInv" | "WHO" | "WallStreetJournal" | "WallStreetJournal2" | "WallStreetJournal3" | "WallStreetJournalBlackGreen" | "WallStreetJournalDemRep" | "WallStreetJournalRedGreen" | "White" | "YlGn" | "YlGnBu" | "YlOrBr" | "YlOrRd" | false | (string & {});
|
|
1050
|
+
colorScheme?: "User" | "AAAS" | "Accent" | "BMS" | "BMSBackground" | "BMSBlue" | "BMSBrown" | "BMSGreen" | "BMSPink" | "BMSPrimary" | "BMSSecondary" | "BMSTertiary" | "BMSTertiaryDark" | "BMSTertiaryLight" | "BMSWheat" | "Basic" | "Behance" | "BehancePair" | "BehanceQuartet" | "BehanceTrio" | "Black" | "BlackAndWhite" | "BlueGrey" | "BlueRedGrey" | "Blues" | "BluesDark" | "Bootstrap" | "BrBG" | "Brand" | "Brooklyn99Dark" | "Brooklyn99Regular" | "BuGn" | "BuPu" | "CanvasXpress" | "CanvasXpressOLD" | "CanvasXpressTraditional" | "Cividis" | "ColorBlind" | "ColorSpectrum" | "Colorful" | "ColorfulAlt" | "Complementary" | "Dark2" | "Default" | "Diverging" | "DivergingAlt" | "Economist" | "EconomistBG" | "Excel" | "Excel2" | "Excel3" | "Favorite" | "GGBlanket" | "GGPlot" | "GameOfThronesArryn" | "GameOfThronesGreyjoy" | "GameOfThronesLannister" | "GameOfThronesManderly" | "GameOfThronesMartell" | "GameOfThronesStannis" | "GameOfThronesStark" | "GameOfThronesTargaryen" | "GameOfThronesTully" | "GameOfThronesTyrell" | "GnBu" | "GravityFalls" | "Greens" | "Grey" | "GreyHC" | "Greys" | "Heat" | "Highcharts" | "Inferno" | "JCO" | "Jama" | "KimPossible" | "Lancet" | "LastAirBenderAir" | "LastAirBenderEarth" | "LastAirBenderFire" | "LastAirBenderWater" | "Light" | "Magma" | "Matlab" | "NEJM" | "NPG" | "OrRd" | "Oranges" | "PRGn" | "Paired" | "ParksAndRecreation" | "Parula" | "PaulTol" | "PiYG" | "Plasma" | "Prism" | "PrismPair" | "PrismTrio" | "PuBu" | "PuBuGn" | "PuOr" | "PuRd" | "Purples" | "Rainbow" | "RdBu" | "RdGy" | "RdPu" | "RdYlBu" | "RdYlGn" | "Reds" | "RickyAndMorty" | "Simpsons" | "Solarized" | "SolarizedBase" | "Spectral" | "SpongeBob" | "Stata" | "Stata2" | "Stata3" | "StataMono" | "Tableau" | "TableauBlueRed" | "TableauColorBlind" | "TableauCyclic" | "TableauGreenOrange" | "TableauGrey" | "TableauLight" | "TableauMedium" | "TableauPairSequential" | "TableauPurpleGrey" | "TableauTrafficLight" | "TableauTripleDiverging" | "Viridis" | "ViridisInv" | "WHO" | "WallStreetJournal" | "WallStreetJournal2" | "WallStreetJournal3" | "WallStreetJournalBlackGreen" | "WallStreetJournalDemRep" | "WallStreetJournalRedGreen" | "White" | "YlGn" | "YlGnBu" | "YlOrBr" | "YlOrRd" | false | (string & {});
|
|
1051
1051
|
/**
|
|
1052
1052
|
* Name of metadata annotation to color the sample (row) dendrogram
|
|
1053
1053
|
* @graphTypes Area, AreaLine, Bar, BarLine, Boxplot, Circular … (21 types; see CXGraphTypeKeys)
|
|
@@ -2104,6 +2104,13 @@ export interface CXConfig {
|
|
|
2104
2104
|
* @default "ends"
|
|
2105
2105
|
*/
|
|
2106
2106
|
dataValuesFrequency?: "all" | "first" | "last" | "ends" | false | (string & {});
|
|
2107
|
+
/**
|
|
2108
|
+
* Flag to hide a data value label that does not fit inside its stacked bar segment
|
|
2109
|
+
* (showDataValues in Stacked graphs), instead of drawing it over the neighbouring segments
|
|
2110
|
+
* @graphTypes Area, AreaLine, Bar, BarLine, Boxplot, Bullet … (31 types; see CXGraphTypeKeys)
|
|
2111
|
+
* @default false
|
|
2112
|
+
*/
|
|
2113
|
+
dataValuesHideOverlap?: boolean;
|
|
2107
2114
|
/**
|
|
2108
2115
|
* Position for the data values in line graphs
|
|
2109
2116
|
* @graphTypes Area, AreaLine, Bar, BarLine, Boxplot, Bullet … (31 types; see CXGraphTypeKeys)
|
|
@@ -3976,6 +3983,14 @@ export interface CXConfig {
|
|
|
3976
3983
|
* @default false
|
|
3977
3984
|
*/
|
|
3978
3985
|
legendInside?: boolean;
|
|
3986
|
+
/**
|
|
3987
|
+
* What a left/right-justified top or bottom legend (legendHorizontalJustification 0 or 1)
|
|
3988
|
+
* aligns to: the panel (plot area) edge or the whole plot (canvas) edge, like titleAlign
|
|
3989
|
+
* plot::0
|
|
3990
|
+
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
3991
|
+
* @default "panel"
|
|
3992
|
+
*/
|
|
3993
|
+
legendJustifyTo?: "panel" | "plot" | false | (string & {});
|
|
3979
3994
|
/**
|
|
3980
3995
|
* Color for the border in legend key background
|
|
3981
3996
|
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
@@ -5234,7 +5249,7 @@ export interface CXConfig {
|
|
|
5234
5249
|
* @graphTypes OptionsWall
|
|
5235
5250
|
* @default false
|
|
5236
5251
|
*/
|
|
5237
|
-
optionsWallChain?: string | boolean;
|
|
5252
|
+
optionsWallChain?: Record<string, unknown> | boolean;
|
|
5238
5253
|
/**
|
|
5239
5254
|
* Expiry label shown in the flank panel titles (e.g. "2026-10-17")
|
|
5240
5255
|
* @graphTypes OptionsWall
|
|
@@ -6161,7 +6176,7 @@ export interface CXConfig {
|
|
|
6161
6176
|
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
6162
6177
|
* @default false
|
|
6163
6178
|
*/
|
|
6164
|
-
ribbonBy?: string | boolean;
|
|
6179
|
+
ribbonBy?: string | unknown[] | boolean | number;
|
|
6165
6180
|
/**
|
|
6166
6181
|
* Type of ribbon to create
|
|
6167
6182
|
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
@@ -11670,6 +11685,7 @@ export type CXKeysLegends =
|
|
|
11670
11685
|
| "legendDirection"
|
|
11671
11686
|
| "legendHorizontalJustification"
|
|
11672
11687
|
| "legendInside"
|
|
11688
|
+
| "legendJustifyTo"
|
|
11673
11689
|
| "legendKeyBackgroundBorderColor"
|
|
11674
11690
|
| "legendKeyBackgroundBorderLineType"
|
|
11675
11691
|
| "legendKeyBackgroundBorderSize"
|
|
@@ -12032,6 +12048,7 @@ export type CXKeysPlotArea =
|
|
|
12032
12048
|
| "binned"
|
|
12033
12049
|
| "blockContrast"
|
|
12034
12050
|
| "dataValuesFrequency"
|
|
12051
|
+
| "dataValuesHideOverlap"
|
|
12035
12052
|
| "dataValuesPosition"
|
|
12036
12053
|
| "dotplotOutlineThreshold"
|
|
12037
12054
|
| "guideStyle"
|
package/src/canvasXpress.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ declare namespace CanvasXpress {
|
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Full chart configuration — one property per parameter in the CanvasXpress
|
|
135
|
-
* config schema (
|
|
135
|
+
* config schema (1734 keys). String enums become open literal
|
|
136
136
|
* unions (except `graphType`, which is closed); `@graphTypes` in a key's JSDoc
|
|
137
137
|
* lists the graph types it applies to (absent = all). The index signature keeps
|
|
138
138
|
* obfuscation aliases and any newer key valid. See `CXConfigFor<G>` for the
|
|
@@ -1056,7 +1056,7 @@ declare namespace CanvasXpress {
|
|
|
1056
1056
|
* a different color is needed in a particular visualization
|
|
1057
1057
|
* @default "User"
|
|
1058
1058
|
*/
|
|
1059
|
-
colorScheme?: "AAAS" | "Accent" | "BMS" | "BMSBackground" | "BMSBlue" | "BMSBrown" | "BMSGreen" | "BMSPink" | "BMSPrimary" | "BMSSecondary" | "BMSTertiary" | "BMSTertiaryDark" | "BMSTertiaryLight" | "BMSWheat" | "Basic" | "Behance" | "BehancePair" | "BehanceQuartet" | "BehanceTrio" | "Black" | "BlackAndWhite" | "BlueGrey" | "BlueRedGrey" | "Blues" | "BluesDark" | "Bootstrap" | "BrBG" | "Brand" | "Brooklyn99Dark" | "Brooklyn99Regular" | "BuGn" | "BuPu" | "CanvasXpress" | "CanvasXpressOLD" | "CanvasXpressTraditional" | "Cividis" | "ColorBlind" | "ColorSpectrum" | "Colorful" | "ColorfulAlt" | "Complementary" | "Dark2" | "Default" | "Diverging" | "DivergingAlt" | "Economist" | "EconomistBG" | "Excel" | "Excel2" | "Excel3" | "Favorite" | "GGBlanket" | "GGPlot" | "GameOfThronesArryn" | "GameOfThronesGreyjoy" | "GameOfThronesLannister" | "GameOfThronesManderly" | "GameOfThronesMartell" | "GameOfThronesStannis" | "GameOfThronesStark" | "GameOfThronesTargaryen" | "GameOfThronesTully" | "GameOfThronesTyrell" | "GnBu" | "GravityFalls" | "Greens" | "Grey" | "GreyHC" | "Greys" | "Heat" | "Highcharts" | "Inferno" | "JCO" | "Jama" | "KimPossible" | "Lancet" | "LastAirBenderAir" | "LastAirBenderEarth" | "LastAirBenderFire" | "LastAirBenderWater" | "Light" | "Magma" | "Matlab" | "NEJM" | "NPG" | "OrRd" | "Oranges" | "PRGn" | "Paired" | "ParksAndRecreation" | "Parula" | "PaulTol" | "PiYG" | "Plasma" | "Prism" | "PrismPair" | "PrismTrio" | "PuBu" | "PuBuGn" | "PuOr" | "PuRd" | "Purples" | "Rainbow" | "RdBu" | "RdGy" | "RdPu" | "RdYlBu" | "RdYlGn" | "Reds" | "RickyAndMorty" | "Simpsons" | "Solarized" | "SolarizedBase" | "Spectral" | "SpongeBob" | "Stata" | "Stata2" | "Stata3" | "StataMono" | "Tableau" | "TableauBlueRed" | "TableauColorBlind" | "TableauCyclic" | "TableauGreenOrange" | "TableauGrey" | "TableauLight" | "TableauMedium" | "TableauPairSequential" | "TableauPurpleGrey" | "TableauTrafficLight" | "TableauTripleDiverging" | "Viridis" | "ViridisInv" | "WHO" | "WallStreetJournal" | "WallStreetJournal2" | "WallStreetJournal3" | "WallStreetJournalBlackGreen" | "WallStreetJournalDemRep" | "WallStreetJournalRedGreen" | "White" | "YlGn" | "YlGnBu" | "YlOrBr" | "YlOrRd" | false | (string & {});
|
|
1059
|
+
colorScheme?: "User" | "AAAS" | "Accent" | "BMS" | "BMSBackground" | "BMSBlue" | "BMSBrown" | "BMSGreen" | "BMSPink" | "BMSPrimary" | "BMSSecondary" | "BMSTertiary" | "BMSTertiaryDark" | "BMSTertiaryLight" | "BMSWheat" | "Basic" | "Behance" | "BehancePair" | "BehanceQuartet" | "BehanceTrio" | "Black" | "BlackAndWhite" | "BlueGrey" | "BlueRedGrey" | "Blues" | "BluesDark" | "Bootstrap" | "BrBG" | "Brand" | "Brooklyn99Dark" | "Brooklyn99Regular" | "BuGn" | "BuPu" | "CanvasXpress" | "CanvasXpressOLD" | "CanvasXpressTraditional" | "Cividis" | "ColorBlind" | "ColorSpectrum" | "Colorful" | "ColorfulAlt" | "Complementary" | "Dark2" | "Default" | "Diverging" | "DivergingAlt" | "Economist" | "EconomistBG" | "Excel" | "Excel2" | "Excel3" | "Favorite" | "GGBlanket" | "GGPlot" | "GameOfThronesArryn" | "GameOfThronesGreyjoy" | "GameOfThronesLannister" | "GameOfThronesManderly" | "GameOfThronesMartell" | "GameOfThronesStannis" | "GameOfThronesStark" | "GameOfThronesTargaryen" | "GameOfThronesTully" | "GameOfThronesTyrell" | "GnBu" | "GravityFalls" | "Greens" | "Grey" | "GreyHC" | "Greys" | "Heat" | "Highcharts" | "Inferno" | "JCO" | "Jama" | "KimPossible" | "Lancet" | "LastAirBenderAir" | "LastAirBenderEarth" | "LastAirBenderFire" | "LastAirBenderWater" | "Light" | "Magma" | "Matlab" | "NEJM" | "NPG" | "OrRd" | "Oranges" | "PRGn" | "Paired" | "ParksAndRecreation" | "Parula" | "PaulTol" | "PiYG" | "Plasma" | "Prism" | "PrismPair" | "PrismTrio" | "PuBu" | "PuBuGn" | "PuOr" | "PuRd" | "Purples" | "Rainbow" | "RdBu" | "RdGy" | "RdPu" | "RdYlBu" | "RdYlGn" | "Reds" | "RickyAndMorty" | "Simpsons" | "Solarized" | "SolarizedBase" | "Spectral" | "SpongeBob" | "Stata" | "Stata2" | "Stata3" | "StataMono" | "Tableau" | "TableauBlueRed" | "TableauColorBlind" | "TableauCyclic" | "TableauGreenOrange" | "TableauGrey" | "TableauLight" | "TableauMedium" | "TableauPairSequential" | "TableauPurpleGrey" | "TableauTrafficLight" | "TableauTripleDiverging" | "Viridis" | "ViridisInv" | "WHO" | "WallStreetJournal" | "WallStreetJournal2" | "WallStreetJournal3" | "WallStreetJournalBlackGreen" | "WallStreetJournalDemRep" | "WallStreetJournalRedGreen" | "White" | "YlGn" | "YlGnBu" | "YlOrBr" | "YlOrRd" | false | (string & {});
|
|
1060
1060
|
/**
|
|
1061
1061
|
* Name of metadata annotation to color the sample (row) dendrogram
|
|
1062
1062
|
* @graphTypes Area, AreaLine, Bar, BarLine, Boxplot, Circular … (21 types; see CXGraphTypeKeys)
|
|
@@ -2113,6 +2113,13 @@ declare namespace CanvasXpress {
|
|
|
2113
2113
|
* @default "ends"
|
|
2114
2114
|
*/
|
|
2115
2115
|
dataValuesFrequency?: "all" | "first" | "last" | "ends" | false | (string & {});
|
|
2116
|
+
/**
|
|
2117
|
+
* Flag to hide a data value label that does not fit inside its stacked bar segment
|
|
2118
|
+
* (showDataValues in Stacked graphs), instead of drawing it over the neighbouring segments
|
|
2119
|
+
* @graphTypes Area, AreaLine, Bar, BarLine, Boxplot, Bullet … (31 types; see CXGraphTypeKeys)
|
|
2120
|
+
* @default false
|
|
2121
|
+
*/
|
|
2122
|
+
dataValuesHideOverlap?: boolean;
|
|
2116
2123
|
/**
|
|
2117
2124
|
* Position for the data values in line graphs
|
|
2118
2125
|
* @graphTypes Area, AreaLine, Bar, BarLine, Boxplot, Bullet … (31 types; see CXGraphTypeKeys)
|
|
@@ -3985,6 +3992,14 @@ declare namespace CanvasXpress {
|
|
|
3985
3992
|
* @default false
|
|
3986
3993
|
*/
|
|
3987
3994
|
legendInside?: boolean;
|
|
3995
|
+
/**
|
|
3996
|
+
* What a left/right-justified top or bottom legend (legendHorizontalJustification 0 or 1)
|
|
3997
|
+
* aligns to: the panel (plot area) edge or the whole plot (canvas) edge, like titleAlign
|
|
3998
|
+
* plot::0
|
|
3999
|
+
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
4000
|
+
* @default "panel"
|
|
4001
|
+
*/
|
|
4002
|
+
legendJustifyTo?: "panel" | "plot" | false | (string & {});
|
|
3988
4003
|
/**
|
|
3989
4004
|
* Color for the border in legend key background
|
|
3990
4005
|
* @graphTypes Bar, BarLine, Boxplot, Bullet, Cleveland, DotLine … (19 types; see CXGraphTypeKeys)
|
|
@@ -5243,7 +5258,7 @@ declare namespace CanvasXpress {
|
|
|
5243
5258
|
* @graphTypes OptionsWall
|
|
5244
5259
|
* @default false
|
|
5245
5260
|
*/
|
|
5246
|
-
optionsWallChain?: string | boolean;
|
|
5261
|
+
optionsWallChain?: Record<string, unknown> | boolean;
|
|
5247
5262
|
/**
|
|
5248
5263
|
* Expiry label shown in the flank panel titles (e.g. "2026-10-17")
|
|
5249
5264
|
* @graphTypes OptionsWall
|
|
@@ -6170,7 +6185,7 @@ declare namespace CanvasXpress {
|
|
|
6170
6185
|
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
6171
6186
|
* @default false
|
|
6172
6187
|
*/
|
|
6173
|
-
ribbonBy?: string | boolean;
|
|
6188
|
+
ribbonBy?: string | unknown[] | boolean | number;
|
|
6174
6189
|
/**
|
|
6175
6190
|
* Type of ribbon to create
|
|
6176
6191
|
* @graphTypes Alluvial, Area, AreaLine, Bar, BarLine, Boxplot … (65 types; see CXGraphTypeKeys)
|
|
@@ -11679,6 +11694,7 @@ declare namespace CanvasXpress {
|
|
|
11679
11694
|
| "legendDirection"
|
|
11680
11695
|
| "legendHorizontalJustification"
|
|
11681
11696
|
| "legendInside"
|
|
11697
|
+
| "legendJustifyTo"
|
|
11682
11698
|
| "legendKeyBackgroundBorderColor"
|
|
11683
11699
|
| "legendKeyBackgroundBorderLineType"
|
|
11684
11700
|
| "legendKeyBackgroundBorderSize"
|
|
@@ -12041,6 +12057,7 @@ declare namespace CanvasXpress {
|
|
|
12041
12057
|
| "binned"
|
|
12042
12058
|
| "blockContrast"
|
|
12043
12059
|
| "dataValuesFrequency"
|
|
12060
|
+
| "dataValuesHideOverlap"
|
|
12044
12061
|
| "dataValuesPosition"
|
|
12045
12062
|
| "dotplotOutlineThreshold"
|
|
12046
12063
|
| "guideStyle"
|