cxplot 0.1.33 → 0.1.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cxplot",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "cxplot \u2014 validate, render, hash and export CanvasXpress figure specs with the same engine the browser runs",
5
5
  "bin": {
6
6
  "cxplot": "bin/cxplot.js"
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "ajv": "^8.17.1",
24
24
  "ajv-formats": "^3.0.1",
25
- "canvasxpress": "71.7.0",
25
+ "canvasxpress": "71.9.0",
26
26
  "playwright": "1.59.1"
27
27
  },
28
28
  "keywords": [
@@ -3,7 +3,7 @@
3
3
  "$id": "https://canvasxpress.org/schema/canvasxpress-config-latest.schema.json",
4
4
  "title": "CanvasXpress configuration",
5
5
  "description": "Machine-generated schema for the CanvasXpress config object. Generated from CanvasXpress.doc (the engine's internal parameter registry) — do not hand-edit; re-run tools/schema/generate-config-schema.js.",
6
- "x-cx-version": "71.7",
6
+ "x-cx-version": "71.9",
7
7
  "type": "object",
8
8
  "additionalProperties": true,
9
9
  "properties": {
@@ -5461,10 +5461,14 @@
5461
5461
  "dataPointSize": {
5462
5462
  "type": [
5463
5463
  "integer",
5464
- "boolean"
5464
+ "boolean",
5465
+ "string"
5465
5466
  ],
5466
- "description": "Approximate pixel size for the data points in scatter plots, dotplots and boxplots. The size will be adjusted according to the dimensions of the graph",
5467
+ "description": "Approximate pixel size for the data points in scatter plots, dotplots and boxplots. The size will be adjusted according to the dimensions of the graph. Boxplots and dotplots default to 15 (to match ggplot2 geom_point) unless set explicitly. Set to the string \"auto\" to size scatter points from the plot area, damped by the number of points (larger dots on sparse/large panels, smaller on dense ones)",
5467
5468
  "default": 10,
5469
+ "x-cx-presets": [
5470
+ "auto"
5471
+ ],
5468
5472
  "x-cx-false-disables": true,
5469
5473
  "x-cx-category": "Aspect Ratio, Space and Width",
5470
5474
  "x-cx-nl": "Set the data point size to {_integer_}"
@@ -11255,10 +11259,10 @@
11255
11259
  "boolean"
11256
11260
  ],
11257
11261
  "description": "Specifies the orientation of one-dimensional graphs",
11258
- "default": "horizontal",
11262
+ "default": "vertical",
11259
11263
  "enum": [
11260
- "horizontal",
11261
11264
  "vertical",
11265
+ "horizontal",
11262
11266
  false
11263
11267
  ],
11264
11268
  "x-cx-false-disables": true,
@@ -23612,6 +23616,16 @@
23612
23616
  "x-cx-category": "Data Faceting",
23613
23617
  "x-cx-nl": "Segregate variables by {_multi-factor_}"
23614
23618
  },
23619
+ "selectableFits": {
23620
+ "type": "boolean",
23621
+ "description": "Flag to make fit lines and confidence areas (regression, loess, forecast, Kaplan-Meier curves/bands, area/ribbon) clickable: a click selects and broadcasts the data the fit/curve was computed over (e.g. a KM arm selects its whole cohort)",
23622
+ "default": true,
23623
+ "x-cx-category": "Confidence Intervals",
23624
+ "x-cx-nl": "{Make|Do Not Make} fit lines and confidence areas (regression, loess, forecast, Kaplan-Meier curves/bands, area/ribbon) clickable: a click selects and broadcasts the data the fit/curve was computed over (e",
23625
+ "x-cx-graphtypes": [
23626
+ "Scatter2D"
23627
+ ]
23628
+ },
23615
23629
  "selectedDataPoints": {
23616
23630
  "type": [
23617
23631
  "array",
@@ -27105,6 +27119,56 @@
27105
27119
  "Waterfall"
27106
27120
  ]
27107
27121
  },
27122
+ "showStatInference": {
27123
+ "type": "boolean",
27124
+ "description": "Opt-in flag to render the statInference block (pairwise significance brackets + p-value/stars) on one-dimensional group charts (Boxplot, Violin, Bar). Off by default so non-stat charts are unaffected.",
27125
+ "default": false,
27126
+ "x-cx-category": "Decorations",
27127
+ "x-cx-nl": "Set the show stat inference to {_boolean_}",
27128
+ "x-cx-graphtypes": [
27129
+ "Area",
27130
+ "AreaLine",
27131
+ "Bar",
27132
+ "BarLine",
27133
+ "Boxplot",
27134
+ "Bin",
27135
+ "Binplot",
27136
+ "Bullet",
27137
+ "CDF",
27138
+ "Cleveland",
27139
+ "Contour",
27140
+ "Density",
27141
+ "Distribution",
27142
+ "DotLine",
27143
+ "Dotplot",
27144
+ "Dumbbell",
27145
+ "Hex",
27146
+ "Hexplot",
27147
+ "Histogram",
27148
+ "KaplanMeier",
27149
+ "Line",
27150
+ "Lollipop",
27151
+ "Network",
27152
+ "Pareto",
27153
+ "QQ",
27154
+ "Quantile",
27155
+ "Ridgeline",
27156
+ "Scatter2D",
27157
+ "Scatter3D",
27158
+ "ScatterBubble2D",
27159
+ "Spaghetti",
27160
+ "SPLOM",
27161
+ "Stacked",
27162
+ "StackedLine",
27163
+ "StackedPercent",
27164
+ "StackedPercentLine",
27165
+ "TimeSeries",
27166
+ "Tornado",
27167
+ "Violin",
27168
+ "Volcano",
27169
+ "Waterfall"
27170
+ ]
27171
+ },
27108
27172
  "showTextShadow": {
27109
27173
  "type": "boolean",
27110
27174
  "description": "Flag to show/hide the shadows in text in the canvas. It will be forced to false if the browser is IE",
@@ -29119,6 +29183,80 @@
29119
29183
  "WordCloud"
29120
29184
  ]
29121
29185
  },
29186
+ "smpTextRotateAuto": {
29187
+ "type": "boolean",
29188
+ "description": "Flag to automatically keep the sample (or grouping-factor) labels of vertical one-dimensional plots horizontal when the longest label fits its band, falling back to smpTextRotate otherwise. Re-evaluated on resize",
29189
+ "default": true,
29190
+ "x-cx-category": "Samples",
29191
+ "x-cx-nl": "{Automatically|Do Not Automatically} keep the sample (or grouping-factor) labels of vertical one-dimensional plots horizontal when the longest label fits its band, falling back to smpTextRotate otherwise",
29192
+ "x-cx-graphtypes": [
29193
+ "Alluvial",
29194
+ "Area",
29195
+ "AreaLine",
29196
+ "Bar",
29197
+ "BarLine",
29198
+ "Boxplot",
29199
+ "Bin",
29200
+ "Binplot",
29201
+ "Bubble",
29202
+ "Bullet",
29203
+ "CDF",
29204
+ "Chord",
29205
+ "Circular",
29206
+ "Cleveland",
29207
+ "Contour",
29208
+ "Correlation",
29209
+ "Density",
29210
+ "Distribution",
29211
+ "Donut",
29212
+ "DotLine",
29213
+ "Dotplot",
29214
+ "Dumbbell",
29215
+ "Fish",
29216
+ "Gantt",
29217
+ "Heatmap",
29218
+ "Hex",
29219
+ "Hexplot",
29220
+ "Histogram",
29221
+ "KaplanMeier",
29222
+ "Line",
29223
+ "Lollipop",
29224
+ "Map",
29225
+ "Meter",
29226
+ "ParallelCoordinates",
29227
+ "OptionsWall",
29228
+ "Pareto",
29229
+ "Pie",
29230
+ "QQ",
29231
+ "Quantile",
29232
+ "Radar",
29233
+ "Ribbon",
29234
+ "Ridgeline",
29235
+ "Sankey",
29236
+ "Scatter2D",
29237
+ "Scatter3D",
29238
+ "ScatterBubble2D",
29239
+ "Spaghetti",
29240
+ "SPLOM",
29241
+ "Stacked",
29242
+ "StackedLine",
29243
+ "StackedPercent",
29244
+ "StackedPercentLine",
29245
+ "Streamgraph",
29246
+ "Sunburst",
29247
+ "TagCloud",
29248
+ "Tornado",
29249
+ "TimeSeries",
29250
+ "Tree",
29251
+ "TreeBracket",
29252
+ "Treemap",
29253
+ "Upset",
29254
+ "Violin",
29255
+ "Volcano",
29256
+ "Waterfall",
29257
+ "WordCloud"
29258
+ ]
29259
+ },
29122
29260
  "smpTextScaleFontFactor": {
29123
29261
  "type": [
29124
29262
  "number",
@@ -30566,6 +30704,64 @@
30566
30704
  "Pie"
30567
30705
  ]
30568
30706
  },
30707
+ "statInference": {
30708
+ "type": [
30709
+ "object",
30710
+ "array",
30711
+ "boolean",
30712
+ "string",
30713
+ "number"
30714
+ ],
30715
+ "description": "Renderer-first inference layer. An object with a comparisons array, each item {groups: [a, b] (category names or 1-based positions), p: rawPValue, optional padj, value (bracket height on the value axis), label, color}. Optional correction {method: \"BH\"|\"bonferroni\"|\"BY\"|\"holm\"|\"hochberg\"|\"none\"} applies native multiple-testing correction when padj is not supplied, and annotate (\"p\"|\"padj\"|\"stars\") selects what each bracket prints. Optional fdrThreshold (number) draws no bracket for a comparison whose corrected p (raw p when no correction applies) is above it. Test statistics are computed upstream (R/Python); only correction and star derivation run in the engine. Requires showStatInference:true.",
30716
+ "default": false,
30717
+ "x-cx-false-disables": true,
30718
+ "x-cx-scalar-autowrap": true,
30719
+ "x-cx-category": "Decorations",
30720
+ "x-cx-nl": "Set the stat inference to {_object-or-array_}",
30721
+ "x-cx-graphtypes": [
30722
+ "Area",
30723
+ "AreaLine",
30724
+ "Bar",
30725
+ "BarLine",
30726
+ "Boxplot",
30727
+ "Bin",
30728
+ "Binplot",
30729
+ "Bullet",
30730
+ "CDF",
30731
+ "Cleveland",
30732
+ "Contour",
30733
+ "Density",
30734
+ "Distribution",
30735
+ "DotLine",
30736
+ "Dotplot",
30737
+ "Dumbbell",
30738
+ "Hex",
30739
+ "Hexplot",
30740
+ "Histogram",
30741
+ "KaplanMeier",
30742
+ "Line",
30743
+ "Lollipop",
30744
+ "Network",
30745
+ "Pareto",
30746
+ "QQ",
30747
+ "Quantile",
30748
+ "Ridgeline",
30749
+ "Scatter2D",
30750
+ "Scatter3D",
30751
+ "ScatterBubble2D",
30752
+ "Spaghetti",
30753
+ "SPLOM",
30754
+ "Stacked",
30755
+ "StackedLine",
30756
+ "StackedPercent",
30757
+ "StackedPercentLine",
30758
+ "TimeSeries",
30759
+ "Tornado",
30760
+ "Violin",
30761
+ "Volcano",
30762
+ "Waterfall"
30763
+ ]
30764
+ },
30569
30765
  "streamEvict": {
30570
30766
  "type": [
30571
30767
  "string",
@@ -35515,6 +35711,60 @@
35515
35711
  "Scatter2D"
35516
35712
  ]
35517
35713
  },
35714
+ "volcano": {
35715
+ "type": [
35716
+ "object",
35717
+ "boolean"
35718
+ ],
35719
+ "description": "Promotes a Volcano chart (Scatter2D of log2 fold-change vs -log10 p-value) by auto-seeding significance cut-off lines: {foldChange: <log2 FC cutoff>, fdr: <p/FDR cutoff on the raw scale>, foldChangeColor, fdrColor, width}. Draws vertical rules at +/- foldChange and a horizontal rule at -log10(fdr) using the scatter decoration path. Omit to keep the plain Volcano alias.",
35720
+ "default": false,
35721
+ "x-cx-false-disables": true,
35722
+ "x-cx-category": "Decorations",
35723
+ "x-cx-nl": "Set the volcano to {_object_}",
35724
+ "x-cx-graphtypes": [
35725
+ "Area",
35726
+ "AreaLine",
35727
+ "Bar",
35728
+ "BarLine",
35729
+ "Boxplot",
35730
+ "Bin",
35731
+ "Binplot",
35732
+ "Bullet",
35733
+ "CDF",
35734
+ "Cleveland",
35735
+ "Contour",
35736
+ "Density",
35737
+ "Distribution",
35738
+ "DotLine",
35739
+ "Dotplot",
35740
+ "Dumbbell",
35741
+ "Hex",
35742
+ "Hexplot",
35743
+ "Histogram",
35744
+ "KaplanMeier",
35745
+ "Line",
35746
+ "Lollipop",
35747
+ "Network",
35748
+ "Pareto",
35749
+ "QQ",
35750
+ "Quantile",
35751
+ "Ridgeline",
35752
+ "Scatter2D",
35753
+ "Scatter3D",
35754
+ "ScatterBubble2D",
35755
+ "Spaghetti",
35756
+ "SPLOM",
35757
+ "Stacked",
35758
+ "StackedLine",
35759
+ "StackedPercent",
35760
+ "StackedPercentLine",
35761
+ "TimeSeries",
35762
+ "Tornado",
35763
+ "Violin",
35764
+ "Volcano",
35765
+ "Waterfall"
35766
+ ]
35767
+ },
35518
35768
  "waterfallDecreaseColor": {
35519
35769
  "type": [
35520
35770
  "string",