cxplot 0.1.15 → 0.1.17

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.15",
3
+ "version": "0.1.17",
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": "70.1.0",
25
+ "canvasxpress": "70.3.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": "70.1",
6
+ "x-cx-version": "70.3",
7
7
  "type": "object",
8
8
  "additionalProperties": true,
9
9
  "properties": {
@@ -10290,6 +10290,89 @@
10290
10290
  "x-cx-category": "Text",
10291
10291
  "x-cx-nl": "Set the fonts external to {_array_}"
10292
10292
  },
10293
+ "forecastHorizon": {
10294
+ "type": [
10295
+ "integer",
10296
+ "boolean"
10297
+ ],
10298
+ "description": "Number of future steps to forecast. 0 uses the forecast package default: 10, or two seasons when forecastSeasonLength is greater than 1",
10299
+ "default": 0,
10300
+ "x-cx-false-disables": true,
10301
+ "x-cx-category": "Forecast",
10302
+ "x-cx-nl": "Set the forecast horizon to {_integer_}",
10303
+ "x-cx-graphtypes": [
10304
+ "Scatter2D"
10305
+ ]
10306
+ },
10307
+ "forecastLevel": {
10308
+ "type": [
10309
+ "number",
10310
+ "boolean"
10311
+ ],
10312
+ "description": "Level of the forecast prediction interval (e.g. 0.8 or 0.95)",
10313
+ "default": 0.95,
10314
+ "x-cx-false-disables": true,
10315
+ "x-cx-category": "Forecast",
10316
+ "x-cx-nl": "Set the forecast level to {_float_}",
10317
+ "x-cx-graphtypes": [
10318
+ "Scatter2D"
10319
+ ]
10320
+ },
10321
+ "forecastLineType": {
10322
+ "type": [
10323
+ "string",
10324
+ "boolean"
10325
+ ],
10326
+ "description": "Line type for the projected forecast line",
10327
+ "default": "dashed",
10328
+ "enum": [
10329
+ "dashed",
10330
+ "solid",
10331
+ "dotted",
10332
+ false
10333
+ ],
10334
+ "x-cx-false-disables": true,
10335
+ "x-cx-category": "Forecast",
10336
+ "x-cx-nl": "Set the forecast line type to {_option_}",
10337
+ "x-cx-graphtypes": [
10338
+ "Scatter2D"
10339
+ ]
10340
+ },
10341
+ "forecastMethod": {
10342
+ "type": [
10343
+ "string",
10344
+ "boolean"
10345
+ ],
10346
+ "description": "Forecast method. ses : simple exponential smoothing (level), holt : level and trend, hw : Holt-Winters (level, trend and additive seasonality). auto uses hw when forecastSeasonLength is greater than 1, holt otherwise. Short series fall back hw to holt to ses",
10347
+ "default": "auto",
10348
+ "enum": [
10349
+ "auto",
10350
+ "ses",
10351
+ "holt",
10352
+ "hw",
10353
+ false
10354
+ ],
10355
+ "x-cx-false-disables": true,
10356
+ "x-cx-category": "Forecast",
10357
+ "x-cx-nl": "Forecast with {_option_}",
10358
+ "x-cx-graphtypes": [
10359
+ "Scatter2D"
10360
+ ]
10361
+ },
10362
+ "forecastSeasonLength": {
10363
+ "type": [
10364
+ "integer",
10365
+ "boolean"
10366
+ ],
10367
+ "description": "Number of observations per season (e.g. 12 for monthly data with a yearly cycle, 7 for daily data with a weekly cycle). 0 or 1 disables seasonality",
10368
+ "default": 0,
10369
+ "x-cx-false-disables": true,
10370
+ "x-cx-category": "Forecast",
10371
+ "x-cx-nl": "Set the forecast season length to {_integer_}",
10372
+ "x-cx-graphtypes": [
10373
+ "Scatter2D"
10374
+ ]
10375
+ },
10293
10376
  "foreground": {
10294
10377
  "type": [
10295
10378
  "string",
@@ -25284,6 +25367,33 @@
25284
25367
  "Scatter2D"
25285
25368
  ]
25286
25369
  },
25370
+ "showForecast": {
25371
+ "type": [
25372
+ "string",
25373
+ "boolean"
25374
+ ],
25375
+ "description": "Name of a variable annotation, or set to true, to display a forecast (projected line and prediction interval) in Scatter plots. The x values must be regularly spaced (numbers or dates)",
25376
+ "default": false,
25377
+ "x-cx-options": [
25378
+ false
25379
+ ],
25380
+ "x-cx-false-disables": true,
25381
+ "x-cx-category": "Forecast",
25382
+ "x-cx-nl": "Forecast by {_factor_}",
25383
+ "x-cx-graphtypes": [
25384
+ "Scatter2D"
25385
+ ]
25386
+ },
25387
+ "showForecastInterval": {
25388
+ "type": "boolean",
25389
+ "description": "Flag to show/hide the forecast prediction interval",
25390
+ "default": true,
25391
+ "x-cx-category": "Forecast",
25392
+ "x-cx-nl": "{Show|Hide} the forecast interval",
25393
+ "x-cx-graphtypes": [
25394
+ "Scatter2D"
25395
+ ]
25396
+ },
25287
25397
  "showHeatmapIndicator": {
25288
25398
  "type": "boolean",
25289
25399
  "description": "Flag to show/hide the heatmap color indicator",
@@ -29645,6 +29755,32 @@
29645
29755
  "Pie"
29646
29756
  ]
29647
29757
  },
29758
+ "streamEvict": {
29759
+ "type": [
29760
+ "string",
29761
+ "boolean"
29762
+ ],
29763
+ "description": "Eviction policy applied by pushData() once the sample count exceeds streamWindow. Currently only drop-oldest (remove the oldest samples first) is supported",
29764
+ "default": "drop-oldest",
29765
+ "enum": [
29766
+ "drop-oldest",
29767
+ false
29768
+ ],
29769
+ "x-cx-false-disables": true,
29770
+ "x-cx-category": "Plot Performance",
29771
+ "x-cx-nl": "Set the stream evict to {_option_}"
29772
+ },
29773
+ "streamWindow": {
29774
+ "type": [
29775
+ "integer",
29776
+ "boolean"
29777
+ ],
29778
+ "description": "Maximum number of samples to retain when live-streaming via pushData(). When set, each pushData() call appends the incoming samples and evicts the oldest ones beyond this window so the matrix stays bounded for real-time updates. Null keeps every sample (no eviction)",
29779
+ "default": null,
29780
+ "x-cx-false-disables": true,
29781
+ "x-cx-category": "Plot Performance",
29782
+ "x-cx-nl": "Set the stream window to {_integer_}"
29783
+ },
29648
29784
  "stringEdgeAttributes": {
29649
29785
  "type": [
29650
29786
  "array",