ml-time-graph 1.24.0 → 1.26.0

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.
@@ -0,0 +1,2931 @@
1
+ {
2
+ "$defs": {
3
+ "AggregatedPoint": {
4
+ "additionalProperties": false,
5
+ "description": "Represents a pre-aggregated slot (min/max/avg/count) at a given timestamp. Used by AggregatedSeries for band / min-max-avg visualisations.",
6
+ "properties": {
7
+ "avg": {
8
+ "description": "The arithmetic mean of all readings in this slot. nil means unknown.",
9
+ "type": [
10
+ "number",
11
+ "null"
12
+ ]
13
+ },
14
+ "count": {
15
+ "description": "The number of raw readings aggregated into this slot.",
16
+ "type": "integer"
17
+ },
18
+ "max": {
19
+ "description": "The maximum value in this time slot. nil means unknown.",
20
+ "type": [
21
+ "number",
22
+ "null"
23
+ ]
24
+ },
25
+ "min": {
26
+ "description": "The minimum value in this time slot. nil means unknown.",
27
+ "type": [
28
+ "number",
29
+ "null"
30
+ ]
31
+ },
32
+ "time": {
33
+ "description": "The Unix epoch timestamp in milliseconds (required).",
34
+ "type": "integer"
35
+ }
36
+ },
37
+ "required": [
38
+ "time"
39
+ ],
40
+ "type": "object"
41
+ },
42
+ "AggregatedSeries": {
43
+ "additionalProperties": false,
44
+ "description": "Represents a series of min/max/avg slots (e.g. hourly aggregates). Use ShowAs to pick the visual representation: \"band\" for a filled min-max envelope, \"minmaxavg\" for three separate boundary lines with an optional average line.",
45
+ "properties": {
46
+ "avgColor": {
47
+ "description": "Overrides the average line colour.",
48
+ "type": "string"
49
+ },
50
+ "avgDashed": {
51
+ "description": "Makes the average line dashed.",
52
+ "type": [
53
+ "boolean",
54
+ "null"
55
+ ]
56
+ },
57
+ "avgLine": {
58
+ "description": "Toggles the average overlay line (default follows theme).",
59
+ "type": [
60
+ "boolean",
61
+ "null"
62
+ ]
63
+ },
64
+ "countOpacity": {
65
+ "description": "Makes the band fill opacity proportional to the number of readings in each slot.",
66
+ "type": [
67
+ "boolean",
68
+ "null"
69
+ ]
70
+ },
71
+ "data": {
72
+ "description": "The sequence of aggregated points (required).",
73
+ "items": {
74
+ "$ref": "#/$defs/AggregatedPoint"
75
+ },
76
+ "type": "array"
77
+ },
78
+ "fillToMax": {
79
+ "description": "Sets the fill colour between the series and the maximum boundary.",
80
+ "type": "string"
81
+ },
82
+ "fillToMaxHatch": {
83
+ "description": "Sets a hatch pattern for the fill-to-max region.",
84
+ "enum": [
85
+ "none",
86
+ "classic-diagonal",
87
+ "dense-steep",
88
+ "crosshatch",
89
+ "dots",
90
+ "waves",
91
+ "dashed",
92
+ "herringbone",
93
+ "brick",
94
+ "double-stripe",
95
+ "honeycomb"
96
+ ],
97
+ "type": "string"
98
+ },
99
+ "fillToMin": {
100
+ "description": "Sets the fill colour between the series and the minimum boundary.",
101
+ "type": "string"
102
+ },
103
+ "fillToMinHatch": {
104
+ "description": "Sets a hatch pattern for the fill-to-min region.",
105
+ "enum": [
106
+ "none",
107
+ "classic-diagonal",
108
+ "dense-steep",
109
+ "crosshatch",
110
+ "dots",
111
+ "waves",
112
+ "dashed",
113
+ "herringbone",
114
+ "brick",
115
+ "double-stripe",
116
+ "honeycomb"
117
+ ],
118
+ "type": "string"
119
+ },
120
+ "id": {
121
+ "description": "An optional element identifier.",
122
+ "type": "string"
123
+ },
124
+ "legend": {
125
+ "anyOf": [
126
+ {
127
+ "$ref": "#/$defs/SeriesLegend"
128
+ },
129
+ {
130
+ "type": "null"
131
+ }
132
+ ],
133
+ "description": "How the legend shows this series, as for a time series."
134
+ },
135
+ "maxColor": {
136
+ "description": "Overrides the max-boundary colour.",
137
+ "type": "string"
138
+ },
139
+ "minColor": {
140
+ "description": "Overrides the min-boundary colour.",
141
+ "type": "string"
142
+ },
143
+ "name": {
144
+ "description": "The human-readable label (required).",
145
+ "type": "string"
146
+ },
147
+ "showAs": {
148
+ "description": "Determines the visual representation: \"band\" or \"minmaxavg\" (required).",
149
+ "enum": [
150
+ "band",
151
+ "minmaxavg"
152
+ ],
153
+ "type": "string"
154
+ },
155
+ "style": {
156
+ "anyOf": [
157
+ {
158
+ "$ref": "#/$defs/SeriesStyle"
159
+ },
160
+ {
161
+ "type": "null"
162
+ }
163
+ ],
164
+ "description": "Optional visual styling applied to the band / minmaxavg rendering."
165
+ },
166
+ "yAxisIndex": {
167
+ "description": "Selects the vertical axis: 0 (left, default) or 1 (right).",
168
+ "type": "integer"
169
+ }
170
+ },
171
+ "required": [
172
+ "data",
173
+ "name",
174
+ "showAs"
175
+ ],
176
+ "type": "object"
177
+ },
178
+ "Annotation": {
179
+ "additionalProperties": false,
180
+ "description": "Represents a free-form decoration drawn on data-space coordinates. Supported types: \"line\", \"arrow\", \"rect\", \"point\", \"label\". Coordinates are given via From/To (for lines/arrows/rects) or At (for points/labels).",
181
+ "properties": {
182
+ "anchor": {
183
+ "description": "The text anchor: \"start\", \"middle\", or \"end\".",
184
+ "enum": [
185
+ "start",
186
+ "middle",
187
+ "end"
188
+ ],
189
+ "type": "string"
190
+ },
191
+ "at": {
192
+ "anyOf": [
193
+ {
194
+ "$ref": "#/$defs/DataPointRef"
195
+ },
196
+ {
197
+ "type": "null"
198
+ }
199
+ ],
200
+ "description": "The single coordinate for point/label annotations."
201
+ },
202
+ "color": {
203
+ "description": "The primary colour (stroke for lines, fill for points).",
204
+ "type": "string"
205
+ },
206
+ "dash": {
207
+ "description": "Selects a dash variant for lines: \"dashed\" or \"dotted\". Not a raw SVG pattern -- the TypeScript type is `dash?: \"dashed\" | \"dotted\"`, and a raw \"5,5\" draws a solid line in both libraries rather than the pattern it looks like.",
208
+ "enum": [
209
+ "dashed",
210
+ "dotted"
211
+ ],
212
+ "type": "string"
213
+ },
214
+ "dx": {
215
+ "description": "The horizontal offset from the anchor point in pixels.",
216
+ "type": [
217
+ "number",
218
+ "null"
219
+ ]
220
+ },
221
+ "dy": {
222
+ "description": "The vertical offset from the anchor point in pixels.",
223
+ "type": [
224
+ "number",
225
+ "null"
226
+ ]
227
+ },
228
+ "fill": {
229
+ "description": "The fill colour for rect annotations.",
230
+ "type": "string"
231
+ },
232
+ "from": {
233
+ "anyOf": [
234
+ {
235
+ "$ref": "#/$defs/DataPointRef"
236
+ },
237
+ {
238
+ "type": "null"
239
+ }
240
+ ],
241
+ "description": "The starting coordinate for line/arrow/rect annotations."
242
+ },
243
+ "hatch": {
244
+ "description": "Applies a hatch pattern to filled shapes.",
245
+ "enum": [
246
+ "none",
247
+ "classic-diagonal",
248
+ "dense-steep",
249
+ "crosshatch",
250
+ "dots",
251
+ "waves",
252
+ "dashed",
253
+ "herringbone",
254
+ "brick",
255
+ "double-stripe",
256
+ "honeycomb"
257
+ ],
258
+ "type": "string"
259
+ },
260
+ "headSize": {
261
+ "description": "The arrowhead size in pixels (for \"arrow\" type).",
262
+ "type": [
263
+ "number",
264
+ "null"
265
+ ]
266
+ },
267
+ "id": {
268
+ "description": "A unique identifier that enables group class tagging.",
269
+ "type": "string"
270
+ },
271
+ "opacity": {
272
+ "description": "The transparency factor (0.0–1.0).",
273
+ "type": [
274
+ "number",
275
+ "null"
276
+ ]
277
+ },
278
+ "radius": {
279
+ "description": "The point or shape radius in pixels.",
280
+ "type": [
281
+ "number",
282
+ "null"
283
+ ]
284
+ },
285
+ "rotate": {
286
+ "description": "Tilts the annotation or its label in degrees.",
287
+ "type": [
288
+ "number",
289
+ "null"
290
+ ]
291
+ },
292
+ "shape": {
293
+ "description": "Controls the point marker shape: \"circle\", \"square\", or \"cross\".",
294
+ "enum": [
295
+ "circle",
296
+ "square",
297
+ "cross"
298
+ ],
299
+ "type": "string"
300
+ },
301
+ "stroke": {
302
+ "description": "The outline colour for shapes.",
303
+ "type": "string"
304
+ },
305
+ "text": {
306
+ "description": "The label content for \"label\" annotations.",
307
+ "type": "string"
308
+ },
309
+ "title": {
310
+ "description": "A human-readable description (not rendered on the chart).",
311
+ "type": "string"
312
+ },
313
+ "to": {
314
+ "anyOf": [
315
+ {
316
+ "$ref": "#/$defs/DataPointRef"
317
+ },
318
+ {
319
+ "type": "null"
320
+ }
321
+ ],
322
+ "description": "The ending coordinate for line/arrow/rect annotations."
323
+ },
324
+ "type": {
325
+ "description": "The annotation type: \"line\", \"arrow\", \"rect\", \"point\", or \"label\" (required).",
326
+ "enum": [
327
+ "line",
328
+ "arrow",
329
+ "rect",
330
+ "point",
331
+ "label"
332
+ ],
333
+ "type": "string"
334
+ },
335
+ "width": {
336
+ "description": "The stroke width for lines and shapes.",
337
+ "type": [
338
+ "number",
339
+ "null"
340
+ ]
341
+ }
342
+ },
343
+ "required": [
344
+ "type"
345
+ ],
346
+ "type": "object"
347
+ },
348
+ "AnnotationBandConfig": {
349
+ "additionalProperties": false,
350
+ "description": "Defines a horizontal event strip rendered below the chart's time axis. Bands are useful for showing device states (heating on/off, door open/closed) that correspond to measured values but live in a separate visual layer.",
351
+ "properties": {
352
+ "background": {
353
+ "description": "A subtle background colour for the entire band rectangle.",
354
+ "type": "string"
355
+ },
356
+ "hatch": {
357
+ "description": "The default hatch pattern applied to all items in this band unless overridden.",
358
+ "enum": [
359
+ "none",
360
+ "classic-diagonal",
361
+ "dense-steep",
362
+ "crosshatch",
363
+ "dots",
364
+ "waves",
365
+ "dashed",
366
+ "herringbone",
367
+ "brick",
368
+ "double-stripe",
369
+ "honeycomb"
370
+ ],
371
+ "type": "string"
372
+ },
373
+ "height": {
374
+ "description": "The band height in pixels. Defaults to 12.",
375
+ "type": [
376
+ "number",
377
+ "null"
378
+ ]
379
+ },
380
+ "items": {
381
+ "description": "The time-ranged event segments within this band (required).",
382
+ "items": {
383
+ "$ref": "#/$defs/AnnotationBandItem"
384
+ },
385
+ "type": "array"
386
+ },
387
+ "labels": {
388
+ "anyOf": [
389
+ {
390
+ "$ref": "#/$defs/BandLabels"
391
+ },
392
+ {
393
+ "type": "null"
394
+ }
395
+ ],
396
+ "description": "Decides which item labels are drawn: \"all\" (default) or \"fit\" -- only those that fit side by side, measured against the real plot width. JSON: \"all\", \"fit\" or { \"mode\": \"fit\", \"keep\": \"last\" | \"first\" }. Gegenstueck: labels in packages/ml-time-graph/src/data/types.ts."
397
+ },
398
+ "minItemWidth": {
399
+ "description": "The smallest width in pixels an item is drawn with. A narrower item is widened around its centre, so it claims no duration, only \"here was something\". Items may overlap then. Values up to the default of 1 change nothing.",
400
+ "type": [
401
+ "number",
402
+ "null"
403
+ ]
404
+ },
405
+ "name": {
406
+ "description": "The band label (required).",
407
+ "type": "string"
408
+ },
409
+ "showAxis": {
410
+ "description": "Draws a miniature time axis underneath the band.",
411
+ "type": [
412
+ "boolean",
413
+ "null"
414
+ ]
415
+ },
416
+ "showInLegend": {
417
+ "description": "Lists the band in the chart legend when true: its Name beside a swatch in the colour of its first item. Defaults to false. The legend itself still needs Legend.Show.",
418
+ "type": [
419
+ "boolean",
420
+ "null"
421
+ ]
422
+ },
423
+ "spacing": {
424
+ "description": "The gap in pixels between this band and the next one.",
425
+ "type": [
426
+ "number",
427
+ "null"
428
+ ]
429
+ }
430
+ },
431
+ "required": [
432
+ "items",
433
+ "name"
434
+ ],
435
+ "type": "object"
436
+ },
437
+ "AnnotationBandItem": {
438
+ "additionalProperties": false,
439
+ "description": "Holds a single time-ranged event segment inside an annotation band.",
440
+ "properties": {
441
+ "endTime": {
442
+ "description": "The end of the event in Unix milliseconds.",
443
+ "type": "integer"
444
+ },
445
+ "fill": {
446
+ "description": "The segment fill colour.",
447
+ "type": "string"
448
+ },
449
+ "hatch": {
450
+ "description": "Applies a hatch pattern overlay.",
451
+ "enum": [
452
+ "none",
453
+ "classic-diagonal",
454
+ "dense-steep",
455
+ "crosshatch",
456
+ "dots",
457
+ "waves",
458
+ "dashed",
459
+ "herringbone",
460
+ "brick",
461
+ "double-stripe",
462
+ "honeycomb"
463
+ ],
464
+ "type": "string"
465
+ },
466
+ "label": {
467
+ "description": "The text displayed on the segment.",
468
+ "type": "string"
469
+ },
470
+ "labelBaseline": {
471
+ "description": "Controls text alignment: \"top\", \"middle\", or \"bottom\".",
472
+ "enum": [
473
+ "top",
474
+ "middle",
475
+ "bottom"
476
+ ],
477
+ "type": "string"
478
+ },
479
+ "labelFill": {
480
+ "description": "The label text colour.",
481
+ "type": "string"
482
+ },
483
+ "labelFontSize": {
484
+ "description": "The font size for the label in pixels.",
485
+ "type": [
486
+ "number",
487
+ "null"
488
+ ]
489
+ },
490
+ "startTime": {
491
+ "description": "The beginning of the event in Unix milliseconds.",
492
+ "type": "integer"
493
+ },
494
+ "stroke": {
495
+ "description": "The border colour.",
496
+ "type": "string"
497
+ },
498
+ "strokeWidth": {
499
+ "description": "The border width in pixels.",
500
+ "type": [
501
+ "number",
502
+ "null"
503
+ ]
504
+ },
505
+ "title": {
506
+ "description": "The hover tooltip of the segment (SVG \u003ctitle\u003e). Use it for the detail that does not fit as a printed label — the full event id, exact times, a duration. It is INTERACTIVE ONLY: print and raster output drop it, so never put there what the reader must see.",
507
+ "type": "string"
508
+ }
509
+ },
510
+ "type": "object"
511
+ },
512
+ "AnySeries": {
513
+ "description": "Wraps either a TimeSeries or an AggregatedSeries. Use IsAggregated() to distinguish, GetName() for the label regardless of type.",
514
+ "else": {
515
+ "$ref": "#/$defs/TimeSeries"
516
+ },
517
+ "if": {
518
+ "required": [
519
+ "showAs"
520
+ ],
521
+ "type": "object"
522
+ },
523
+ "then": {
524
+ "$ref": "#/$defs/AggregatedSeries"
525
+ }
526
+ },
527
+ "AxesConfig": {
528
+ "additionalProperties": false,
529
+ "description": "Holds configuration for the X (time) axis and both Y (value) axes.",
530
+ "properties": {
531
+ "left": {
532
+ "anyOf": [
533
+ {
534
+ "$ref": "#/$defs/YAxisConfig"
535
+ },
536
+ {
537
+ "type": "null"
538
+ }
539
+ ],
540
+ "description": "Configures the primary (left) Y axis."
541
+ },
542
+ "right": {
543
+ "anyOf": [
544
+ {
545
+ "$ref": "#/$defs/YAxisConfig"
546
+ },
547
+ {
548
+ "type": "null"
549
+ }
550
+ ],
551
+ "description": "Configures the secondary (right) Y axis."
552
+ },
553
+ "x": {
554
+ "anyOf": [
555
+ {
556
+ "$ref": "#/$defs/XAxisConfig"
557
+ },
558
+ {
559
+ "type": "null"
560
+ }
561
+ ],
562
+ "description": "Configures the horizontal time axis."
563
+ },
564
+ "y": {
565
+ "description": "Specifies an arbitrary number of vertical axes, each mapped by its slice index.",
566
+ "items": {
567
+ "$ref": "#/$defs/YAxisConfig"
568
+ },
569
+ "type": "array"
570
+ }
571
+ },
572
+ "type": "object"
573
+ },
574
+ "AxisDomain": {
575
+ "anyOf": [
576
+ {
577
+ "const": "auto"
578
+ },
579
+ {
580
+ "maxItems": 2,
581
+ "minItems": 2,
582
+ "prefixItems": [
583
+ {
584
+ "type": "number"
585
+ },
586
+ {
587
+ "type": "number"
588
+ }
589
+ ],
590
+ "type": "array"
591
+ }
592
+ ],
593
+ "description": "Represents manual min/max bounds for an axis, or \"auto\" for automatic range detection."
594
+ },
595
+ "AxisLabelsStyle": {
596
+ "additionalProperties": false,
597
+ "description": "Styles the font rendering of axis tick labels.",
598
+ "properties": {
599
+ "color": {
600
+ "description": "The tick label text colour.",
601
+ "type": "string"
602
+ },
603
+ "fontSize": {
604
+ "description": "The tick label font size in pixels.",
605
+ "type": [
606
+ "number",
607
+ "null"
608
+ ]
609
+ }
610
+ },
611
+ "type": "object"
612
+ },
613
+ "AxisPadding": {
614
+ "anyOf": [
615
+ {
616
+ "type": "number"
617
+ },
618
+ {
619
+ "additionalProperties": false,
620
+ "properties": {
621
+ "bottom": {
622
+ "type": "number"
623
+ },
624
+ "top": {
625
+ "type": "number"
626
+ }
627
+ },
628
+ "type": "object"
629
+ }
630
+ ],
631
+ "description": "Space above and below the data, in pixels: one number for both sides, or {\"top\": n, \"bottom\": n}."
632
+ },
633
+ "AxisStyle": {
634
+ "additionalProperties": false,
635
+ "description": "Styles the axis baseline line and tick marks.",
636
+ "properties": {
637
+ "color": {
638
+ "description": "The axis line and tick colour.",
639
+ "type": "string"
640
+ },
641
+ "width": {
642
+ "description": "The axis line thickness in pixels.",
643
+ "type": [
644
+ "number",
645
+ "null"
646
+ ]
647
+ }
648
+ },
649
+ "type": "object"
650
+ },
651
+ "BandLabels": {
652
+ "anyOf": [
653
+ {
654
+ "examples": [
655
+ "all",
656
+ "fit"
657
+ ],
658
+ "type": "string"
659
+ },
660
+ {
661
+ "additionalProperties": false,
662
+ "properties": {
663
+ "keep": {
664
+ "examples": [
665
+ "last",
666
+ "first"
667
+ ],
668
+ "type": "string"
669
+ },
670
+ "mode": {
671
+ "examples": [
672
+ "all",
673
+ "fit"
674
+ ],
675
+ "type": "string"
676
+ }
677
+ },
678
+ "type": "object"
679
+ }
680
+ ],
681
+ "description": "Which item labels a band draws: \"all\", \"fit\" (only those that fit without overlapping), or {\"mode\": \"fit\", \"keep\": \"last\" | \"first\"}."
682
+ },
683
+ "BridgeLineStyle": {
684
+ "additionalProperties": false,
685
+ "description": "Specifies line attributes for the \"bridge_line\" gap rendering mode. In bridge_line mode, a dashed line connects the two ends of the gap instead of leaving it blank.",
686
+ "properties": {
687
+ "color": {
688
+ "description": "The bridge line colour.",
689
+ "type": "string"
690
+ },
691
+ "style": {
692
+ "description": "The dash pattern: \"solid\", \"dotted\", or \"dashed\".",
693
+ "enum": [
694
+ "solid",
695
+ "dashed",
696
+ "dotted"
697
+ ],
698
+ "type": "string"
699
+ },
700
+ "width": {
701
+ "description": "The line width in pixels.",
702
+ "type": [
703
+ "number",
704
+ "null"
705
+ ]
706
+ }
707
+ },
708
+ "type": "object"
709
+ },
710
+ "DataPoint": {
711
+ "additionalProperties": false,
712
+ "description": "Represents a single measurement reading at a given timestamp. Time is always in Unix milliseconds; Value is a pointer to support JSON null. A DataPoint with Value == nil signals a gap (sensor offline, missing data).",
713
+ "properties": {
714
+ "annotation": {
715
+ "description": "An optional free-text note attached to this point.",
716
+ "type": "string"
717
+ },
718
+ "synthetic": {
719
+ "description": "Marks points that were algorithmically generated (e.g. via interpolation at threshold crossings).",
720
+ "type": "boolean"
721
+ },
722
+ "time": {
723
+ "description": "The Unix epoch timestamp in milliseconds (required).",
724
+ "type": "integer"
725
+ },
726
+ "value": {
727
+ "description": "The measured value. nil means this point is a gap marker.",
728
+ "type": [
729
+ "number",
730
+ "null"
731
+ ]
732
+ }
733
+ },
734
+ "required": [
735
+ "time"
736
+ ],
737
+ "type": "object"
738
+ },
739
+ "DataPointRef": {
740
+ "additionalProperties": false,
741
+ "description": "Links a timestamp to a value on a specific axis. Used by annotations to reference data-space coordinates.",
742
+ "properties": {
743
+ "axis": {
744
+ "description": "The Y-axis index (0 = left, default; 1 = right).",
745
+ "type": "integer"
746
+ },
747
+ "time": {
748
+ "description": "The Unix epoch timestamp in milliseconds.",
749
+ "type": "integer"
750
+ },
751
+ "value": {
752
+ "description": "The Y-axis value.",
753
+ "type": "number"
754
+ }
755
+ },
756
+ "type": "object"
757
+ },
758
+ "FillBound": {
759
+ "anyOf": [
760
+ {
761
+ "type": "string"
762
+ },
763
+ {
764
+ "additionalProperties": false,
765
+ "properties": {
766
+ "series": {
767
+ "type": "string"
768
+ },
769
+ "threshold": {
770
+ "type": "string"
771
+ },
772
+ "type": {
773
+ "type": "string"
774
+ },
775
+ "value": {
776
+ "type": "number"
777
+ }
778
+ },
779
+ "type": "object"
780
+ }
781
+ ],
782
+ "description": "Defines the boundary for a fill region. It can be \"series\" (follow the data line), \"chartTop\", \"chartBottom\", or a custom threshold reference (`{threshold: \"warn\"}`) or fixed value (`{value: 25}`)."
783
+ },
784
+ "FillRegion": {
785
+ "additionalProperties": false,
786
+ "description": "Defines a fill bound mapping and style — one region between two FillBounds. Use FillSpec.Regions for complex multi-zone fills (e.g. \"OK corridor\" between two thresholds).",
787
+ "properties": {
788
+ "fill": {
789
+ "$ref": "#/$defs/FillStyle",
790
+ "description": "The FillStyle for this region (colour + optional hatch)."
791
+ },
792
+ "from": {
793
+ "anyOf": [
794
+ {
795
+ "$ref": "#/$defs/FillBound"
796
+ },
797
+ {
798
+ "type": "null"
799
+ }
800
+ ],
801
+ "description": "The inner boundary (e.g. \"series\" to follow the data line)."
802
+ },
803
+ "outer": {
804
+ "anyOf": [
805
+ {
806
+ "$ref": "#/$defs/FillBound"
807
+ },
808
+ {
809
+ "type": "null"
810
+ }
811
+ ],
812
+ "description": "An additional gating bound for classified zones — the region renders only where the series value is between the inner bound and this outer limit."
813
+ },
814
+ "side": {
815
+ "description": "Restricts rendering to \"above\" or \"below\" the fixed bound.",
816
+ "enum": [
817
+ "above",
818
+ "below"
819
+ ],
820
+ "type": "string"
821
+ },
822
+ "to": {
823
+ "anyOf": [
824
+ {
825
+ "$ref": "#/$defs/FillBound"
826
+ },
827
+ {
828
+ "type": "null"
829
+ }
830
+ ],
831
+ "description": "The outer boundary (e.g. a threshold or fixed value)."
832
+ },
833
+ "where": {
834
+ "anyOf": [
835
+ {
836
+ "$ref": "#/$defs/FillWhere"
837
+ },
838
+ {
839
+ "type": "null"
840
+ }
841
+ ],
842
+ "description": "Fill only where the two edges are further apart than `exceeds`."
843
+ }
844
+ },
845
+ "type": "object"
846
+ },
847
+ "FillSpec": {
848
+ "anyOf": [
849
+ {
850
+ "type": "string"
851
+ },
852
+ {
853
+ "additionalProperties": false,
854
+ "properties": {
855
+ "color": {
856
+ "description": "The base fill colour.",
857
+ "type": "string"
858
+ },
859
+ "hatch": {
860
+ "description": "An optional hatch pattern: \"classic-diagonal\", \"dots\", \"crosshatch\", etc.",
861
+ "enum": [
862
+ "none",
863
+ "classic-diagonal",
864
+ "dense-steep",
865
+ "crosshatch",
866
+ "dots",
867
+ "waves",
868
+ "dashed",
869
+ "herringbone",
870
+ "brick",
871
+ "double-stripe",
872
+ "honeycomb"
873
+ ],
874
+ "type": "string"
875
+ },
876
+ "regions": {
877
+ "description": "An array of FillRegion definitions for complex fills (e.g. zone corridors).",
878
+ "items": {
879
+ "$ref": "#/$defs/FillRegion"
880
+ },
881
+ "type": "array"
882
+ },
883
+ "style": {
884
+ "anyOf": [
885
+ {
886
+ "$ref": "#/$defs/FillStyle"
887
+ },
888
+ {
889
+ "type": "null"
890
+ }
891
+ ],
892
+ "description": "A single FillStyle (shorthand: one fill from chartBottom to the series line)."
893
+ }
894
+ },
895
+ "type": "object"
896
+ }
897
+ ],
898
+ "description": "Specifies the overall fill format for a series. It can be a single FillStyle (shorthand) or a {regions: [...]} array for complex multi-zone fills."
899
+ },
900
+ "FillStyle": {
901
+ "anyOf": [
902
+ {
903
+ "type": "string"
904
+ },
905
+ {
906
+ "additionalProperties": false,
907
+ "properties": {
908
+ "color": {
909
+ "description": "The base fill colour.",
910
+ "type": "string"
911
+ },
912
+ "hatch": {
913
+ "description": "An optional hatch pattern: \"classic-diagonal\", \"dots\", \"crosshatch\", etc.",
914
+ "enum": [
915
+ "none",
916
+ "classic-diagonal",
917
+ "dense-steep",
918
+ "crosshatch",
919
+ "dots",
920
+ "waves",
921
+ "dashed",
922
+ "herringbone",
923
+ "brick",
924
+ "double-stripe",
925
+ "honeycomb"
926
+ ],
927
+ "type": "string"
928
+ }
929
+ },
930
+ "type": "object"
931
+ }
932
+ ],
933
+ "description": "Polymorphic — it can be a plain colour string or a full style object with hatch patterns. Unmarshal accepts both `\"#ef4444\"` and `{\"color\": \"#ef4444\", \"hatch\": \"dots\"}`."
934
+ },
935
+ "FillWhere": {
936
+ "additionalProperties": false,
937
+ "description": "Condition on a fill region, decided on the readings and drawn between the drawn curves.",
938
+ "properties": {
939
+ "exceeds": {
940
+ "description": "Distance in the series' unit; the region is filled where the edges differ by strictly more.",
941
+ "type": "number"
942
+ },
943
+ "maxAgeMs": {
944
+ "description": "When the last reading of an edge is older than this, nothing is filled there. Unset: no limit.",
945
+ "type": [
946
+ "integer",
947
+ "null"
948
+ ]
949
+ },
950
+ "side": {
951
+ "description": "\"both\" (default: the edges differ by more than exceeds), \"above\" (to lies more than exceeds above from) or \"below\" (more than exceeds below).",
952
+ "enum": [
953
+ "both",
954
+ "above",
955
+ "below"
956
+ ],
957
+ "type": "string"
958
+ }
959
+ },
960
+ "type": "object"
961
+ },
962
+ "Gap": {
963
+ "additionalProperties": false,
964
+ "description": "Represents a manually-defined data gap region rendered as a styled rectangle on the chart. Gaps visually highlight periods where no sensor data is available. Use Style to control appearance (\"empty\", \"dashed_border\", \"filled\").",
965
+ "properties": {
966
+ "endTime": {
967
+ "description": "The end of the gap in Unix milliseconds.",
968
+ "type": "integer"
969
+ },
970
+ "fill": {
971
+ "description": "The background colour of the gap rectangle.",
972
+ "type": "string"
973
+ },
974
+ "fillOpacity": {
975
+ "description": "Overrides the fill transparency (0.0–1.0).",
976
+ "type": [
977
+ "number",
978
+ "null"
979
+ ]
980
+ },
981
+ "hatch": {
982
+ "description": "Applies a hatch pattern to the gap fill (e.g. \"dots\", \"classic-diagonal\").",
983
+ "enum": [
984
+ "none",
985
+ "classic-diagonal",
986
+ "dense-steep",
987
+ "crosshatch",
988
+ "dots",
989
+ "waves",
990
+ "dashed",
991
+ "herringbone",
992
+ "brick",
993
+ "double-stripe",
994
+ "honeycomb"
995
+ ],
996
+ "type": "string"
997
+ },
998
+ "label": {
999
+ "description": "An optional text displayed on the gap region.",
1000
+ "type": "string"
1001
+ },
1002
+ "labelBaseline": {
1003
+ "description": "Controls label text alignment within the gap: \"above\", \"middle\", or \"below\".",
1004
+ "enum": [
1005
+ "top",
1006
+ "center",
1007
+ "middle",
1008
+ "bottom",
1009
+ "above",
1010
+ "below"
1011
+ ],
1012
+ "type": "string"
1013
+ },
1014
+ "rotate": {
1015
+ "anyOf": [
1016
+ {
1017
+ "$ref": "#/$defs/Rotation"
1018
+ },
1019
+ {
1020
+ "type": "null"
1021
+ }
1022
+ ],
1023
+ "description": "Rotates the label text in degrees (e.g. -90 for vertical), or \"auto\" to rotate it only when it does not fit between the gap's edges."
1024
+ },
1025
+ "startTime": {
1026
+ "description": "The beginning of the gap in Unix milliseconds.",
1027
+ "type": "integer"
1028
+ },
1029
+ "style": {
1030
+ "description": "Controls the gap rendering mode: \"empty\", \"dashed_border\" or \"filled\". \"bridge_line\" belongs to gaps.style.display. \"label\" was removed (B-20261006-01): it draws like \"empty\", use that with Label. Warnings() reports it.",
1031
+ "enum": [
1032
+ "dashed_border",
1033
+ "empty",
1034
+ "filled"
1035
+ ],
1036
+ "type": "string"
1037
+ }
1038
+ },
1039
+ "type": "object"
1040
+ },
1041
+ "GapBand": {
1042
+ "additionalProperties": false,
1043
+ "description": "A strip at the bottom of the plot area marking the gap.",
1044
+ "properties": {
1045
+ "fill": {
1046
+ "description": "Colour (default: the gap's edge colour).",
1047
+ "type": "string"
1048
+ },
1049
+ "height": {
1050
+ "description": "In px (default 6).",
1051
+ "type": [
1052
+ "number",
1053
+ "null"
1054
+ ]
1055
+ },
1056
+ "offset": {
1057
+ "description": "Pushes the strip down in px (default 0). With 0 it sits INSIDE the plot area on the baseline; a positive value moves it into the bottom margin, which margin.bottom then has to provide.",
1058
+ "type": [
1059
+ "number",
1060
+ "null"
1061
+ ]
1062
+ },
1063
+ "opacity": {
1064
+ "description": "(default 0.75).",
1065
+ "type": [
1066
+ "number",
1067
+ "null"
1068
+ ]
1069
+ }
1070
+ },
1071
+ "type": "object"
1072
+ },
1073
+ "GapLabel": {
1074
+ "additionalProperties": false,
1075
+ "description": "Contains styling options for text labels rendered inside data gaps.",
1076
+ "properties": {
1077
+ "baseline": {
1078
+ "description": "Controls text vertical alignment: \"above\", \"middle\", or \"below\".",
1079
+ "enum": [
1080
+ "top",
1081
+ "center",
1082
+ "middle",
1083
+ "bottom",
1084
+ "above",
1085
+ "below"
1086
+ ],
1087
+ "type": "string"
1088
+ },
1089
+ "color": {
1090
+ "description": "The label text colour.",
1091
+ "type": "string"
1092
+ },
1093
+ "fontSize": {
1094
+ "description": "The label font size in pixels.",
1095
+ "type": [
1096
+ "number",
1097
+ "null"
1098
+ ]
1099
+ },
1100
+ "rotate": {
1101
+ "anyOf": [
1102
+ {
1103
+ "$ref": "#/$defs/Rotation"
1104
+ },
1105
+ {
1106
+ "type": "null"
1107
+ }
1108
+ ],
1109
+ "description": "Tilts the label in degrees, or \"auto\" to tilt it only when the text does not fit between the region's edges."
1110
+ }
1111
+ },
1112
+ "type": "object"
1113
+ },
1114
+ "GapRegion": {
1115
+ "additionalProperties": false,
1116
+ "description": "Defines a manual gap span with optional per-gap styling.",
1117
+ "properties": {
1118
+ "endTime": {
1119
+ "description": "The end of the gap in Unix milliseconds.",
1120
+ "type": "integer"
1121
+ },
1122
+ "label": {
1123
+ "description": "The text displayed on the gap.",
1124
+ "type": "string"
1125
+ },
1126
+ "startTime": {
1127
+ "description": "The beginning of the gap in Unix milliseconds.",
1128
+ "type": "integer"
1129
+ },
1130
+ "style": {
1131
+ "anyOf": [
1132
+ {
1133
+ "$ref": "#/$defs/GapStyle"
1134
+ },
1135
+ {
1136
+ "type": "null"
1137
+ }
1138
+ ],
1139
+ "description": "Per-gap visual styling. Inherits from series gap style if nil."
1140
+ }
1141
+ },
1142
+ "type": "object"
1143
+ },
1144
+ "GapStyle": {
1145
+ "additionalProperties": false,
1146
+ "description": "Defines how data gaps are visualized at the series level.",
1147
+ "properties": {
1148
+ "band": {
1149
+ "anyOf": [
1150
+ {
1151
+ "$ref": "#/$defs/GapBand"
1152
+ },
1153
+ {
1154
+ "type": "null"
1155
+ }
1156
+ ],
1157
+ "description": "Draws a strip at the bottom of the plot area marking the gap. Nothing is drawn without it."
1158
+ },
1159
+ "bridge": {
1160
+ "anyOf": [
1161
+ {
1162
+ "$ref": "#/$defs/BridgeLineStyle"
1163
+ },
1164
+ {
1165
+ "type": "null"
1166
+ }
1167
+ ],
1168
+ "description": "The line style for \"bridge_line\" gaps."
1169
+ },
1170
+ "display": {
1171
+ "description": "The gap rendering mode: \"empty\", \"dashed_border\", \"filled\", or \"bridge_line\".",
1172
+ "enum": [
1173
+ "empty",
1174
+ "dashed_border",
1175
+ "filled",
1176
+ "bridge_line"
1177
+ ],
1178
+ "type": "string"
1179
+ },
1180
+ "fill": {
1181
+ "anyOf": [
1182
+ {
1183
+ "$ref": "#/$defs/FillStyle"
1184
+ },
1185
+ {
1186
+ "type": "null"
1187
+ }
1188
+ ],
1189
+ "description": "The fill style for the gap region."
1190
+ },
1191
+ "label": {
1192
+ "anyOf": [
1193
+ {
1194
+ "$ref": "#/$defs/GapLabel"
1195
+ },
1196
+ {
1197
+ "type": "null"
1198
+ }
1199
+ ],
1200
+ "description": "The text label configuration for gaps."
1201
+ },
1202
+ "opacity": {
1203
+ "description": "The fill transparency (0.0–1.0).",
1204
+ "type": [
1205
+ "number",
1206
+ "null"
1207
+ ]
1208
+ }
1209
+ },
1210
+ "type": "object"
1211
+ },
1212
+ "GapsAtEnd": {
1213
+ "additionalProperties": false,
1214
+ "description": "Shows a data outage at the end: when a series' last reading lies more than `afterMs` before `now`, a gap region is drawn from that reading to `now`.",
1215
+ "properties": {
1216
+ "afterMs": {
1217
+ "description": "How long without a reading counts as an outage, in milliseconds (strictly more).",
1218
+ "type": "integer"
1219
+ },
1220
+ "label": {
1221
+ "description": "Label text with the placeholders {since} and {duration}. Empty: no label.",
1222
+ "type": "string"
1223
+ },
1224
+ "now": {
1225
+ "description": "\"Now\" as a timestamp in milliseconds. Unset: the end of the time axis. The library reads no clock, so screen, PDF and tests show the same.",
1226
+ "type": [
1227
+ "integer",
1228
+ "null"
1229
+ ]
1230
+ },
1231
+ "style": {
1232
+ "anyOf": [
1233
+ {
1234
+ "$ref": "#/$defs/GapStyle"
1235
+ },
1236
+ {
1237
+ "type": "null"
1238
+ }
1239
+ ],
1240
+ "description": "Appearance of this region; gaps.style does not apply here."
1241
+ }
1242
+ },
1243
+ "type": "object"
1244
+ },
1245
+ "GapsSpec": {
1246
+ "anyOf": [
1247
+ {
1248
+ "items": {
1249
+ "$ref": "#/$defs/Gap"
1250
+ },
1251
+ "type": "array"
1252
+ },
1253
+ {
1254
+ "additionalProperties": false,
1255
+ "properties": {
1256
+ "atEnd": {
1257
+ "anyOf": [
1258
+ {
1259
+ "$ref": "#/$defs/GapsAtEnd"
1260
+ },
1261
+ {
1262
+ "type": "null"
1263
+ }
1264
+ ],
1265
+ "description": "Macht einen Datenausfall am Ende sichtbar (I-20261007-05)."
1266
+ },
1267
+ "autoDetect": {
1268
+ "description": "Enables automatic gap detection.",
1269
+ "type": [
1270
+ "boolean",
1271
+ "null"
1272
+ ]
1273
+ },
1274
+ "minGapMs": {
1275
+ "description": "The minimum time gap (in milliseconds) to trigger a break when AutoDetect is true.",
1276
+ "type": [
1277
+ "integer",
1278
+ "null"
1279
+ ]
1280
+ },
1281
+ "regions": {
1282
+ "description": "Manually defined gap spans.",
1283
+ "items": {
1284
+ "$ref": "#/$defs/GapRegion"
1285
+ },
1286
+ "type": "array"
1287
+ },
1288
+ "style": {
1289
+ "anyOf": [
1290
+ {
1291
+ "$ref": "#/$defs/GapStyle"
1292
+ },
1293
+ {
1294
+ "type": "null"
1295
+ }
1296
+ ],
1297
+ "description": "The default visual style applied to all gaps (auto-detected and manual)."
1298
+ }
1299
+ },
1300
+ "type": "object"
1301
+ }
1302
+ ],
1303
+ "description": "Supports polymorphic gaps format: either Gap[] or GapsConfig object. When JSON input is an array, it is treated as a list of manual Gap regions. When it is an object, it is parsed as a GapsConfig with auto-detection settings."
1304
+ },
1305
+ "GridLineStyle": {
1306
+ "anyOf": [
1307
+ {
1308
+ "type": "boolean"
1309
+ },
1310
+ {
1311
+ "additionalProperties": false,
1312
+ "properties": {
1313
+ "color": {
1314
+ "description": "The grid line colour.",
1315
+ "type": "string"
1316
+ },
1317
+ "opacity": {
1318
+ "description": "The grid line transparency (0.0–1.0).",
1319
+ "type": [
1320
+ "number",
1321
+ "null"
1322
+ ]
1323
+ },
1324
+ "style": {
1325
+ "description": "The dash pattern: \"solid\", \"dashed\", \"dotted\".",
1326
+ "examples": [
1327
+ "solid",
1328
+ "dotted",
1329
+ "sparse-dots",
1330
+ "dashed",
1331
+ "long-dash",
1332
+ "dense-dash",
1333
+ "dash-dot",
1334
+ "dash-dot-dot",
1335
+ "loose-dash"
1336
+ ],
1337
+ "type": "string"
1338
+ },
1339
+ "width": {
1340
+ "description": "The grid line thickness in pixels.",
1341
+ "type": [
1342
+ "number",
1343
+ "null"
1344
+ ]
1345
+ }
1346
+ },
1347
+ "type": "object"
1348
+ }
1349
+ ],
1350
+ "description": "Styles the grid lines on an axis."
1351
+ },
1352
+ "GridStyle": {
1353
+ "anyOf": [
1354
+ {
1355
+ "type": "boolean"
1356
+ },
1357
+ {
1358
+ "additionalProperties": false,
1359
+ "properties": {
1360
+ "layer": {
1361
+ "description": "Decides WHEN the grid is drawn: \"front\" (the default) after the series, so a filled area does not hide it and its lines stay visible over the curve; \"back\" first of all, before highlights and thresholds, for when an opaque fill is MEANT to swallow it. Markers, annotations and labels stay on top either way. As with the style, axes.x wins over axes.left.",
1362
+ "enum": [
1363
+ "back",
1364
+ "front"
1365
+ ],
1366
+ "type": "string"
1367
+ },
1368
+ "major": {
1369
+ "anyOf": [
1370
+ {
1371
+ "$ref": "#/$defs/GridLineStyle"
1372
+ },
1373
+ {
1374
+ "type": "null"
1375
+ }
1376
+ ],
1377
+ "description": "The style for major grid lines."
1378
+ },
1379
+ "minor": {
1380
+ "anyOf": [
1381
+ {
1382
+ "$ref": "#/$defs/GridLineStyle"
1383
+ },
1384
+ {
1385
+ "type": "null"
1386
+ }
1387
+ ],
1388
+ "description": "The style for minor grid line subdivisions."
1389
+ }
1390
+ },
1391
+ "type": "object"
1392
+ }
1393
+ ],
1394
+ "description": "Defines major and minor grid line settings for an axis."
1395
+ },
1396
+ "Highlight": {
1397
+ "additionalProperties": false,
1398
+ "description": "Represents a shaded vertical time band to mark event periods. Highlights span the full height of the plot area between StartTime and EndTime.",
1399
+ "properties": {
1400
+ "color": {
1401
+ "description": "The background fill colour. Defaults to theme.HighlightColor.",
1402
+ "type": "string"
1403
+ },
1404
+ "endTime": {
1405
+ "description": "The end of the highlight in Unix milliseconds (required).",
1406
+ "type": "integer"
1407
+ },
1408
+ "label": {
1409
+ "description": "An optional text label displayed on the highlight band.",
1410
+ "type": "string"
1411
+ },
1412
+ "labelPosition": {
1413
+ "description": "Controls label alignment: \"top\", \"center\", \"bottom\", \"above\", or \"below\".",
1414
+ "enum": [
1415
+ "top",
1416
+ "center",
1417
+ "middle",
1418
+ "bottom",
1419
+ "above",
1420
+ "below"
1421
+ ],
1422
+ "type": "string"
1423
+ },
1424
+ "opacity": {
1425
+ "description": "The transparency factor (0.0–1.0). Defaults to theme.HighlightOpacity.",
1426
+ "type": [
1427
+ "number",
1428
+ "null"
1429
+ ]
1430
+ },
1431
+ "rotate": {
1432
+ "anyOf": [
1433
+ {
1434
+ "$ref": "#/$defs/Rotation"
1435
+ },
1436
+ {
1437
+ "type": "null"
1438
+ }
1439
+ ],
1440
+ "description": "Tilts the label text in degrees. Rotate tilts the label in degrees, or \"auto\" to tilt it only when the text does not fit between the range's edges."
1441
+ },
1442
+ "startTime": {
1443
+ "description": "The beginning of the highlight in Unix milliseconds (required).",
1444
+ "type": "integer"
1445
+ }
1446
+ },
1447
+ "required": [
1448
+ "endTime",
1449
+ "startTime"
1450
+ ],
1451
+ "type": "object"
1452
+ },
1453
+ "HoldToEnd": {
1454
+ "anyOf": [
1455
+ {
1456
+ "type": "boolean"
1457
+ },
1458
+ {
1459
+ "additionalProperties": false,
1460
+ "properties": {
1461
+ "maxAgeMs": {
1462
+ "type": "integer"
1463
+ }
1464
+ },
1465
+ "type": "object"
1466
+ }
1467
+ ],
1468
+ "description": "true, false, or {\"maxAgeMs\": n} to hold the last value for at most that long."
1469
+ },
1470
+ "LegendBox": {
1471
+ "additionalProperties": false,
1472
+ "description": "A panel behind the legend: background and border.",
1473
+ "properties": {
1474
+ "fill": {
1475
+ "description": "The panel colour (default \"#ffffff\").",
1476
+ "type": "string"
1477
+ },
1478
+ "opacity": {
1479
+ "description": "Of the panel (default 0.85). Not 1: under a legend inside the plot there are data, and they may show through. Set 1 to hide them.",
1480
+ "type": [
1481
+ "number",
1482
+ "null"
1483
+ ]
1484
+ },
1485
+ "padding": {
1486
+ "description": "The gap between panel edge and entries in px (default 6).",
1487
+ "type": [
1488
+ "number",
1489
+ "null"
1490
+ ]
1491
+ },
1492
+ "stroke": {
1493
+ "description": "The border colour (default \"#cccccc\"); \"none\" omits the border.",
1494
+ "type": "string"
1495
+ },
1496
+ "strokeWidth": {
1497
+ "description": "The border width in px (default 1).",
1498
+ "type": [
1499
+ "number",
1500
+ "null"
1501
+ ]
1502
+ }
1503
+ },
1504
+ "type": "object"
1505
+ },
1506
+ "LegendOptions": {
1507
+ "additionalProperties": false,
1508
+ "description": "Defines the integrated chart legend configuration. The legend is automatically populated from the series list.",
1509
+ "properties": {
1510
+ "box": {
1511
+ "anyOf": [
1512
+ {
1513
+ "$ref": "#/$defs/LegendBox"
1514
+ },
1515
+ {
1516
+ "type": "null"
1517
+ }
1518
+ ],
1519
+ "description": "Draws a background panel with a border behind the legend. Nothing is drawn without it -- that is how every legend looked before 1.11.0."
1520
+ },
1521
+ "itemClass": {
1522
+ "description": "Adds a CSS class to EVERY legend entry -- the hook for the caller's own behaviour. Each entry sits in its own group anyway (.legend-item, .legend-item--\u003cid\u003e, #legend-\u003cid\u003e); this adds one more.",
1523
+ "type": "string"
1524
+ },
1525
+ "orientation": {
1526
+ "description": "Controls the layout direction: \"vertical\" (default) or \"horizontal\".",
1527
+ "enum": [
1528
+ "vertical",
1529
+ "horizontal"
1530
+ ],
1531
+ "type": "string"
1532
+ },
1533
+ "position": {
1534
+ "description": "Controls legend placement:",
1535
+ "enum": [
1536
+ "inside-right",
1537
+ "inside-left",
1538
+ "outside-right",
1539
+ "outside-left",
1540
+ "above",
1541
+ "below",
1542
+ "separate"
1543
+ ],
1544
+ "type": "string"
1545
+ },
1546
+ "show": {
1547
+ "description": "Enables or disables the legend (default false).",
1548
+ "type": "boolean"
1549
+ }
1550
+ },
1551
+ "type": "object"
1552
+ },
1553
+ "LineStyle": {
1554
+ "additionalProperties": false,
1555
+ "description": "Defines how series lines are rendered (colour, width, dash pattern, smoothing). Multiple LineStyles can be applied to the same series for layered rendering (e.g. a step outline + a smoothed coloured line).",
1556
+ "properties": {
1557
+ "color": {
1558
+ "description": "The stroke colour (hex, rgb, named).",
1559
+ "type": "string"
1560
+ },
1561
+ "gapThreshold": {
1562
+ "description": "The maximum gap in milliseconds before the line breaks.",
1563
+ "type": [
1564
+ "number",
1565
+ "null"
1566
+ ]
1567
+ },
1568
+ "opacity": {
1569
+ "description": "The line transparency (0.0–1.0).",
1570
+ "type": [
1571
+ "number",
1572
+ "null"
1573
+ ]
1574
+ },
1575
+ "shape": {
1576
+ "description": "Controls line interpolation: \"line\" (default, straight segments) or \"step\" (orthogonal steps).",
1577
+ "enum": [
1578
+ "line",
1579
+ "step"
1580
+ ],
1581
+ "type": "string"
1582
+ },
1583
+ "smoothing": {
1584
+ "description": "Enables spline interpolation for curved lines.",
1585
+ "type": [
1586
+ "boolean",
1587
+ "null"
1588
+ ]
1589
+ },
1590
+ "smoothingType": {
1591
+ "description": "Picks the spline. \"catmull-rom\" is the default: soft, but it overshoots. \"monotone\" (Fritsch-Carlson) never leaves the span between two readings -- for anything with a ceiling, such as humidity at 100 %. \"akima\" stays flat ahead of an edge instead of swinging up to meet it.",
1592
+ "enum": [
1593
+ "catmull-rom",
1594
+ "monotone",
1595
+ "akima"
1596
+ ],
1597
+ "type": "string"
1598
+ },
1599
+ "style": {
1600
+ "description": "The dash pattern: \"solid\", \"dashed\", \"dotted\", \"sparse-dots\", \"long-dash\", \"dense-dash\", \"dash-dot\", \"dash-dot-dot\", \"loose-dash\", or \"none\" (no line; markers stay).",
1601
+ "examples": [
1602
+ "solid",
1603
+ "dotted",
1604
+ "sparse-dots",
1605
+ "dashed",
1606
+ "long-dash",
1607
+ "dense-dash",
1608
+ "dash-dot",
1609
+ "dash-dot-dot",
1610
+ "loose-dash",
1611
+ "none"
1612
+ ],
1613
+ "type": "string"
1614
+ },
1615
+ "width": {
1616
+ "description": "The line width in pixels. 0 draws no line; markers stay.",
1617
+ "type": [
1618
+ "number",
1619
+ "null"
1620
+ ]
1621
+ }
1622
+ },
1623
+ "type": "object"
1624
+ },
1625
+ "LineStyleSpec": {
1626
+ "anyOf": [
1627
+ {
1628
+ "type": "boolean"
1629
+ },
1630
+ {
1631
+ "$ref": "#/$defs/LineStyle"
1632
+ },
1633
+ {
1634
+ "items": {
1635
+ "$ref": "#/$defs/LineStyle"
1636
+ },
1637
+ "type": "array"
1638
+ }
1639
+ ],
1640
+ "description": "Holds the representation of LineStyle, LineStyle[] or false (disabled). JSON input can be: a boolean false (line disabled), a single LineStyle object, or an array of LineStyles."
1641
+ },
1642
+ "MLTimeGraphOptions": {
1643
+ "additionalProperties": false,
1644
+ "description": "The root configuration structure for the time-series chart. It can be constructed manually, unmarshalled from JSON, or built via the GraphBuilder fluent API.",
1645
+ "properties": {
1646
+ "$schema": {
1647
+ "description": "URL of this schema, for editors.",
1648
+ "type": "string"
1649
+ },
1650
+ "annotationBands": {
1651
+ "description": "Horizontal event strips below the time axis.",
1652
+ "items": {
1653
+ "$ref": "#/$defs/AnnotationBandConfig"
1654
+ },
1655
+ "type": "array"
1656
+ },
1657
+ "annotations": {
1658
+ "description": "Free-form decorations (arrows, lines, rectangles, labels) on data-space coordinates.",
1659
+ "items": {
1660
+ "$ref": "#/$defs/Annotation"
1661
+ },
1662
+ "type": "array"
1663
+ },
1664
+ "axes": {
1665
+ "anyOf": [
1666
+ {
1667
+ "$ref": "#/$defs/AxesConfig"
1668
+ },
1669
+ {
1670
+ "type": "null"
1671
+ }
1672
+ ],
1673
+ "description": "Configures axis labels, tick density, grid lines, and styling."
1674
+ },
1675
+ "classPrefix": {
1676
+ "description": "Prefix for every CSS class of the chart (\"mltg\" gives \"mltg-series\"), against a host stylesheet that uses the same words. legend.itemClass stays as written.",
1677
+ "type": "string"
1678
+ },
1679
+ "clipSeries": {
1680
+ "description": "Clip the series to the plot area (default: true).",
1681
+ "type": [
1682
+ "boolean",
1683
+ "null"
1684
+ ]
1685
+ },
1686
+ "fontFamily": {
1687
+ "description": "Font of every text, written as font-family into the SVG. Empty: the theme's default stack.",
1688
+ "type": "string"
1689
+ },
1690
+ "gaps": {
1691
+ "anyOf": [
1692
+ {
1693
+ "$ref": "#/$defs/GapsSpec"
1694
+ },
1695
+ {
1696
+ "type": "null"
1697
+ }
1698
+ ],
1699
+ "description": "Configures how data gaps are rendered (auto-detect, manual regions, styling)."
1700
+ },
1701
+ "height": {
1702
+ "description": "The SVG canvas height in pixels. Default: 400.",
1703
+ "type": [
1704
+ "number",
1705
+ "null"
1706
+ ]
1707
+ },
1708
+ "highlights": {
1709
+ "description": "Shaded vertical time bands to mark event periods.",
1710
+ "items": {
1711
+ "$ref": "#/$defs/Highlight"
1712
+ },
1713
+ "type": "array"
1714
+ },
1715
+ "idPrefix": {
1716
+ "description": "Prefix for every id in the SVG (\"top\" gives \"top-series-pump\"), so several charts on one page do not produce duplicate ids. Classes stay as they are.",
1717
+ "type": "string"
1718
+ },
1719
+ "legend": {
1720
+ "anyOf": [
1721
+ {
1722
+ "$ref": "#/$defs/LegendOptions"
1723
+ },
1724
+ {
1725
+ "type": "null"
1726
+ }
1727
+ ],
1728
+ "description": "Configures the chart legend."
1729
+ },
1730
+ "locale": {
1731
+ "description": "The i18n locale tag for time formatting (e.g. \"de-DE\", \"en-US\").",
1732
+ "type": "string"
1733
+ },
1734
+ "margin": {
1735
+ "anyOf": [
1736
+ {
1737
+ "$ref": "#/$defs/Margin"
1738
+ },
1739
+ {
1740
+ "type": "null"
1741
+ }
1742
+ ],
1743
+ "description": "Defines the padding around the plot area. Falls back to {20, 20, 40, 60}."
1744
+ },
1745
+ "markers": {
1746
+ "description": "Vertical/point annotations at specific timestamps.",
1747
+ "items": {
1748
+ "$ref": "#/$defs/Marker"
1749
+ },
1750
+ "type": "array"
1751
+ },
1752
+ "series": {
1753
+ "description": "The list of time series to render (TimeSeries or AggregatedSeries). At least one is required.",
1754
+ "items": {
1755
+ "$ref": "#/$defs/AnySeries"
1756
+ },
1757
+ "type": "array"
1758
+ },
1759
+ "theme": {
1760
+ "$ref": "#/$defs/Theme",
1761
+ "description": "Colours and sizes of this chart, laid over the default theme; only the fields given count. Browser-only fields (tooltip*, minimap*) are ignored by go-time-graph."
1762
+ },
1763
+ "thresholds": {
1764
+ "description": "Horizontal boundary lines with optional fill zones.",
1765
+ "items": {
1766
+ "$ref": "#/$defs/Threshold"
1767
+ },
1768
+ "type": "array"
1769
+ },
1770
+ "timeZone": {
1771
+ "description": "IANA time zone of the time axis, e.g. \"Europe/Berlin\" or \"UTC\".",
1772
+ "type": "string"
1773
+ },
1774
+ "width": {
1775
+ "description": "The SVG canvas width in pixels. Default: 800.",
1776
+ "type": [
1777
+ "number",
1778
+ "null"
1779
+ ]
1780
+ }
1781
+ },
1782
+ "type": "object"
1783
+ },
1784
+ "Margin": {
1785
+ "anyOf": [
1786
+ {
1787
+ "const": "auto"
1788
+ },
1789
+ {
1790
+ "additionalProperties": false,
1791
+ "properties": {
1792
+ "bottom": {
1793
+ "description": "The margin below the chart, including the time axis (default 40).",
1794
+ "type": "number"
1795
+ },
1796
+ "left": {
1797
+ "description": "The margin to the left of the chart, including the value axis (default 60).",
1798
+ "type": "number"
1799
+ },
1800
+ "right": {
1801
+ "description": "The margin to the right of the chart (default 20).",
1802
+ "type": "number"
1803
+ },
1804
+ "top": {
1805
+ "description": "The margin above the chart (default 20).",
1806
+ "type": "number"
1807
+ }
1808
+ },
1809
+ "type": "object"
1810
+ }
1811
+ ],
1812
+ "description": "Represents pixel margins around the chart plot area. These margins define the space between the SVG canvas edge and the actual chart drawing area."
1813
+ },
1814
+ "Marker": {
1815
+ "additionalProperties": false,
1816
+ "description": "Represents a vertical or point annotation at a specific timestamp on the chart. Markers draw a vertical line (full, to-value, or to-top) and an optional point indicator with a label. When Value is nil, the marker draws a full vertical event line. When Value is set, the marker interpolates to that exact position on the Y axis (or uses SeriesIndex to target a specific series for auto-interpolation).",
1817
+ "properties": {
1818
+ "color": {
1819
+ "description": "The marker line and point colour. Defaults to theme.MarkerColor.",
1820
+ "type": "string"
1821
+ },
1822
+ "label": {
1823
+ "description": "The text displayed on the marker.",
1824
+ "type": "string"
1825
+ },
1826
+ "lineStyle": {
1827
+ "description": "Controls the vertical projection line: \"full\", \"to-value\", \"to-top\", or \"none\".",
1828
+ "enum": [
1829
+ "full",
1830
+ "to-value",
1831
+ "to-top",
1832
+ "none"
1833
+ ],
1834
+ "type": "string"
1835
+ },
1836
+ "pointStyle": {
1837
+ "description": "Controls the marker point shape: \"circle\", \"square\", \"cross\", \"diamond\", \"triangle\", \"star\", \"arrow\", or \"none\". Auto-defaults to \"circle\" when Value is set.",
1838
+ "enum": [
1839
+ "none",
1840
+ "circle",
1841
+ "cross",
1842
+ "square",
1843
+ "diamond",
1844
+ "triangle",
1845
+ "star",
1846
+ "arrow",
1847
+ "plus",
1848
+ "triangle-down",
1849
+ "hexagon",
1850
+ "hourglass",
1851
+ "line-horizontal"
1852
+ ],
1853
+ "type": "string"
1854
+ },
1855
+ "seriesIndex": {
1856
+ "description": "Targets a specific series by index for automatic value interpolation. When set, the marker value is interpolated from the data series at the marker's timestamp.",
1857
+ "type": [
1858
+ "integer",
1859
+ "null"
1860
+ ]
1861
+ },
1862
+ "time": {
1863
+ "description": "The Unix epoch timestamp in milliseconds (required).",
1864
+ "type": "integer"
1865
+ },
1866
+ "value": {
1867
+ "description": "The Y-axis position. nil draws a full vertical line; a value draws a point marker at that position with a partial projection line.",
1868
+ "type": [
1869
+ "number",
1870
+ "null"
1871
+ ]
1872
+ }
1873
+ },
1874
+ "required": [
1875
+ "time"
1876
+ ],
1877
+ "type": "object"
1878
+ },
1879
+ "MarkerStyle": {
1880
+ "additionalProperties": false,
1881
+ "description": "Defines point indicator styling on data points. Controls appearance of markers drawn at each data point (or a sampled subset).",
1882
+ "properties": {
1883
+ "fill": {
1884
+ "description": "The marker interior colour.",
1885
+ "type": "string"
1886
+ },
1887
+ "size": {
1888
+ "description": "The marker diameter in pixels.",
1889
+ "type": [
1890
+ "number",
1891
+ "null"
1892
+ ]
1893
+ },
1894
+ "stroke": {
1895
+ "description": "The marker outline colour.",
1896
+ "type": "string"
1897
+ },
1898
+ "strokeWidth": {
1899
+ "description": "The marker outline width in pixels.",
1900
+ "type": [
1901
+ "number",
1902
+ "null"
1903
+ ]
1904
+ },
1905
+ "threshold": {
1906
+ "description": "Limits markers to at most one every N data points (down-sampling for dense series).",
1907
+ "type": [
1908
+ "integer",
1909
+ "null"
1910
+ ]
1911
+ },
1912
+ "type": {
1913
+ "description": "The marker shape: \"none\", \"circle\", \"square\", \"cross\", \"diamond\", \"triangle\", \"star\", \"arrow\", \"plus\", \"triangle-down\", \"hexagon\", \"hourglass\" or \"line-horizontal\".",
1914
+ "enum": [
1915
+ "none",
1916
+ "circle",
1917
+ "cross",
1918
+ "square",
1919
+ "diamond",
1920
+ "triangle",
1921
+ "star",
1922
+ "arrow",
1923
+ "plus",
1924
+ "triangle-down",
1925
+ "hexagon",
1926
+ "hourglass",
1927
+ "line-horizontal"
1928
+ ],
1929
+ "type": "string"
1930
+ }
1931
+ },
1932
+ "type": "object"
1933
+ },
1934
+ "Rotation": {
1935
+ "anyOf": [
1936
+ {
1937
+ "type": "number"
1938
+ },
1939
+ {
1940
+ "const": "auto"
1941
+ }
1942
+ ],
1943
+ "description": "Rotation in degrees, or \"auto\"."
1944
+ },
1945
+ "SeriesGapAtEnd": {
1946
+ "anyOf": [
1947
+ {
1948
+ "type": "boolean"
1949
+ },
1950
+ {
1951
+ "additionalProperties": false,
1952
+ "properties": {
1953
+ "afterMs": {
1954
+ "type": "integer"
1955
+ }
1956
+ },
1957
+ "type": "object"
1958
+ }
1959
+ ],
1960
+ "description": "false, or {\"afterMs\": n}."
1961
+ },
1962
+ "SeriesGaps": {
1963
+ "additionalProperties": false,
1964
+ "description": "Gap settings for one series (series.gaps).",
1965
+ "properties": {
1966
+ "atEnd": {
1967
+ "anyOf": [
1968
+ {
1969
+ "$ref": "#/$defs/SeriesGapAtEnd"
1970
+ },
1971
+ {
1972
+ "type": "null"
1973
+ }
1974
+ ],
1975
+ "description": "false turns the outage region at the end off for this series (a sensor that is silent on purpose); {afterMs} overrides the chart's threshold."
1976
+ }
1977
+ },
1978
+ "type": "object"
1979
+ },
1980
+ "SeriesLegend": {
1981
+ "additionalProperties": false,
1982
+ "description": "How the legend shows a series.",
1983
+ "properties": {
1984
+ "colors": {
1985
+ "description": "Draw the legend swatch in several sections side by side, left to right in this order, e.g. the zone colours of a colorByThresholds line. Without it, or with one colour, the swatch is one colour.",
1986
+ "items": {
1987
+ "type": "string"
1988
+ },
1989
+ "type": "array"
1990
+ }
1991
+ },
1992
+ "type": "object"
1993
+ },
1994
+ "SeriesOverlay": {
1995
+ "additionalProperties": false,
1996
+ "description": "A statistic computed from the series' readings and drawn over it; `kind` selects which.",
1997
+ "properties": {
1998
+ "activationEnergy": {
1999
+ "description": "movingMkt only: activation energy in J/mol; 0 takes USP \u003c1079.2\u003e (83144 J/mol).",
2000
+ "type": "number"
2001
+ },
2002
+ "high": {
2003
+ "description": "limits only: upper limit.",
2004
+ "type": [
2005
+ "number",
2006
+ "null"
2007
+ ]
2008
+ },
2009
+ "kind": {
2010
+ "description": "Which statistic to draw (required).",
2011
+ "enum": [
2012
+ "movingAverage",
2013
+ "movingMkt",
2014
+ "stdDevBand",
2015
+ "limits"
2016
+ ],
2017
+ "type": "string"
2018
+ },
2019
+ "low": {
2020
+ "description": "limits only: lower limit.",
2021
+ "type": [
2022
+ "number",
2023
+ "null"
2024
+ ]
2025
+ },
2026
+ "multiplier": {
2027
+ "description": "stdDevBand only: number of standard deviations; 0 takes 1.",
2028
+ "type": [
2029
+ "number",
2030
+ "null"
2031
+ ]
2032
+ },
2033
+ "style": {
2034
+ "anyOf": [
2035
+ {
2036
+ "$ref": "#/$defs/SeriesStyle"
2037
+ },
2038
+ {
2039
+ "type": "null"
2040
+ }
2041
+ ],
2042
+ "description": "Style of the overlay itself."
2043
+ },
2044
+ "type": {
2045
+ "description": "movingAverage only: \"simple\" (default) or \"exponential\".",
2046
+ "enum": [
2047
+ "simple",
2048
+ "exponential"
2049
+ ],
2050
+ "type": "string"
2051
+ },
2052
+ "window": {
2053
+ "description": "Window length in milliseconds.",
2054
+ "type": "integer"
2055
+ }
2056
+ },
2057
+ "required": [
2058
+ "kind"
2059
+ ],
2060
+ "type": "object"
2061
+ },
2062
+ "SeriesStyle": {
2063
+ "additionalProperties": false,
2064
+ "description": "Represents a complete series visual design encompassing line, fill, markers, shadow, and gap configuration. Any combination is allowed: set Line for a line, add Fill for an area underneath, add Markers for points, set Line to false for points-only rendering.",
2065
+ "properties": {
2066
+ "fill": {
2067
+ "anyOf": [
2068
+ {
2069
+ "$ref": "#/$defs/FillSpec"
2070
+ },
2071
+ {
2072
+ "type": "null"
2073
+ }
2074
+ ],
2075
+ "description": "The area fill configuration beneath the line (FillSpec for single/region fills)."
2076
+ },
2077
+ "gap": {
2078
+ "anyOf": [
2079
+ {
2080
+ "$ref": "#/$defs/GapStyle"
2081
+ },
2082
+ {
2083
+ "type": "null"
2084
+ }
2085
+ ],
2086
+ "deprecated": true,
2087
+ "description": "Controls how data gaps are rendered for this series."
2088
+ },
2089
+ "id": {
2090
+ "description": "An optional element identifier for CSS/Styler targeting.",
2091
+ "type": "string"
2092
+ },
2093
+ "line": {
2094
+ "anyOf": [
2095
+ {
2096
+ "$ref": "#/$defs/LineStyleSpec"
2097
+ },
2098
+ {
2099
+ "type": "null"
2100
+ }
2101
+ ],
2102
+ "description": "The line style configuration (LineStyleSpec for single/multi-line, or boolean false to disable lines)."
2103
+ },
2104
+ "markers": {
2105
+ "anyOf": [
2106
+ {
2107
+ "$ref": "#/$defs/MarkerStyle"
2108
+ },
2109
+ {
2110
+ "type": "null"
2111
+ }
2112
+ ],
2113
+ "description": "Controls point markers on data points."
2114
+ },
2115
+ "shadow": {
2116
+ "anyOf": [
2117
+ {
2118
+ "$ref": "#/$defs/ShadowStyle"
2119
+ },
2120
+ {
2121
+ "type": "null"
2122
+ }
2123
+ ],
2124
+ "description": "A drop-shadow effect applied to the series line."
2125
+ }
2126
+ },
2127
+ "type": "object"
2128
+ },
2129
+ "ShadowStyle": {
2130
+ "additionalProperties": false,
2131
+ "description": "Defines drop-shadow configurations for series lines.",
2132
+ "properties": {
2133
+ "blur": {
2134
+ "description": "The Gaussian blur radius.",
2135
+ "type": [
2136
+ "number",
2137
+ "null"
2138
+ ]
2139
+ },
2140
+ "color": {
2141
+ "description": "The shadow colour.",
2142
+ "type": "string"
2143
+ },
2144
+ "offsetX": {
2145
+ "description": "The horizontal shadow offset.",
2146
+ "type": [
2147
+ "number",
2148
+ "null"
2149
+ ]
2150
+ },
2151
+ "offsetY": {
2152
+ "description": "The vertical shadow offset.",
2153
+ "type": [
2154
+ "number",
2155
+ "null"
2156
+ ]
2157
+ }
2158
+ },
2159
+ "type": "object"
2160
+ },
2161
+ "Theme": {
2162
+ "additionalProperties": false,
2163
+ "description": "Holds visual style defaults that the renderer falls back to when a property is not explicitly set on a series, threshold, axis, or annotation.",
2164
+ "properties": {
2165
+ "annotationColor": {
2166
+ "description": "The default annotation colour.",
2167
+ "type": "string"
2168
+ },
2169
+ "annotationFontSize": {
2170
+ "description": "The default annotation label font size in pixels.",
2171
+ "type": "number"
2172
+ },
2173
+ "annotationHead": {
2174
+ "description": "The default arrow head size in pixels.",
2175
+ "type": "number"
2176
+ },
2177
+ "annotationRadius": {
2178
+ "description": "The default annotation point radius in pixels.",
2179
+ "type": "number"
2180
+ },
2181
+ "annotationWidth": {
2182
+ "description": "The default annotation line width in pixels.",
2183
+ "type": "number"
2184
+ },
2185
+ "areaFillAlpha": {
2186
+ "description": "The default alpha channel for area fills.",
2187
+ "type": "string"
2188
+ },
2189
+ "avgColor": {
2190
+ "description": "The default colour for the average line in aggregated series.",
2191
+ "type": "string"
2192
+ },
2193
+ "axisColor": {
2194
+ "description": "The default axis baseline colour.",
2195
+ "type": "string"
2196
+ },
2197
+ "axisLabelColor": {
2198
+ "description": "The default axis title colour.",
2199
+ "type": "string"
2200
+ },
2201
+ "axisLabelSize": {
2202
+ "description": "The default axis title font size in pixels.",
2203
+ "type": "number"
2204
+ },
2205
+ "bandAvgLine": {
2206
+ "description": "The default colour for the average line in band series.",
2207
+ "type": "string"
2208
+ },
2209
+ "bandFill": {
2210
+ "description": "The default fill colour for aggregated band series.",
2211
+ "type": "string"
2212
+ },
2213
+ "bandOpacity": {
2214
+ "description": "The default opacity for band fills.",
2215
+ "type": "number"
2216
+ },
2217
+ "fill": {
2218
+ "description": "The default series area fill (\"none\" means no fill).",
2219
+ "type": "string"
2220
+ },
2221
+ "fontFamily": {
2222
+ "description": "Font stack of every text. Liberation Sans has the same advance widths as Arial.",
2223
+ "type": "string"
2224
+ },
2225
+ "gapFill": {
2226
+ "description": "The default gap region fill colour.",
2227
+ "type": "string"
2228
+ },
2229
+ "gapFillOpacity": {
2230
+ "description": "The default gap region fill opacity.",
2231
+ "type": "number"
2232
+ },
2233
+ "gapFontColor": {
2234
+ "description": "The default gap label text colour.",
2235
+ "type": "string"
2236
+ },
2237
+ "gapFontSize": {
2238
+ "description": "The default gap label font size in pixels.",
2239
+ "type": "number"
2240
+ },
2241
+ "gapStroke": {
2242
+ "description": "The default gap border colour.",
2243
+ "type": "string"
2244
+ },
2245
+ "gapStrokeWidth": {
2246
+ "description": "The default gap border width.",
2247
+ "type": "number"
2248
+ },
2249
+ "gapThreshold": {
2250
+ "description": "The default maximum time gap (in ms) before the line breaks.",
2251
+ "type": "integer"
2252
+ },
2253
+ "gridOpacity": {
2254
+ "description": "The default grid line transparency.",
2255
+ "type": "number"
2256
+ },
2257
+ "gridStroke": {
2258
+ "description": "The default grid line colour.",
2259
+ "type": "string"
2260
+ },
2261
+ "gridStrokeWidth": {
2262
+ "description": "The default grid line width in pixels.",
2263
+ "type": "number"
2264
+ },
2265
+ "hatch": {
2266
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2267
+ },
2268
+ "highlightColor": {
2269
+ "description": "The default highlight background colour.",
2270
+ "type": "string"
2271
+ },
2272
+ "highlightLabelColor": {
2273
+ "description": "The default highlight label colour.",
2274
+ "type": "string"
2275
+ },
2276
+ "highlightOpacity": {
2277
+ "description": "The default highlight transparency.",
2278
+ "type": "number"
2279
+ },
2280
+ "legendFont": {
2281
+ "description": "The legend font size in pixels.",
2282
+ "type": "number"
2283
+ },
2284
+ "legendStroke": {
2285
+ "description": "The legend swatch border colour.",
2286
+ "type": "string"
2287
+ },
2288
+ "legendText": {
2289
+ "description": "The legend text colour.",
2290
+ "type": "string"
2291
+ },
2292
+ "markerColor": {
2293
+ "description": "The default marker colour.",
2294
+ "type": "string"
2295
+ },
2296
+ "markerFontSize": {
2297
+ "description": "Font size of marker labels.",
2298
+ "type": "number"
2299
+ },
2300
+ "markerSize": {
2301
+ "description": "The default marker size in pixels.",
2302
+ "type": "number"
2303
+ },
2304
+ "maxColor": {
2305
+ "description": "The default colour for the max boundary in aggregated series.",
2306
+ "type": "string"
2307
+ },
2308
+ "minColor": {
2309
+ "description": "The default colour for the min boundary in aggregated series.",
2310
+ "type": "string"
2311
+ },
2312
+ "minimapBg": {
2313
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2314
+ },
2315
+ "minimapBrush": {
2316
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2317
+ },
2318
+ "minimapStroke": {
2319
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2320
+ },
2321
+ "palette": {
2322
+ "description": "The colour palette used for series that do not specify an explicit colour. The palette cycles through colours when there are more series than custom colours.",
2323
+ "items": {
2324
+ "type": "string"
2325
+ },
2326
+ "type": "array"
2327
+ },
2328
+ "pointSize": {
2329
+ "description": "The default point marker diameter in pixels.",
2330
+ "type": "number"
2331
+ },
2332
+ "pointThreshold": {
2333
+ "description": "The maximum number of data points before marker down-sampling kicks in.",
2334
+ "type": "integer"
2335
+ },
2336
+ "statFontSize": {
2337
+ "description": "Font size of the labels on statistic overlays.",
2338
+ "type": "number"
2339
+ },
2340
+ "statsLabelColor": {
2341
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2342
+ },
2343
+ "statsLineColor": {
2344
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2345
+ },
2346
+ "stroke": {
2347
+ "description": "The default series line colour.",
2348
+ "type": "string"
2349
+ },
2350
+ "strokeWidth": {
2351
+ "description": "The default series line width in pixels.",
2352
+ "type": "number"
2353
+ },
2354
+ "textColor": {
2355
+ "description": "The default tick label colour.",
2356
+ "type": "string"
2357
+ },
2358
+ "textSize": {
2359
+ "description": "The default tick label font size in pixels.",
2360
+ "type": "number"
2361
+ },
2362
+ "thresholdColor": {
2363
+ "description": "The default threshold line colour.",
2364
+ "type": "string"
2365
+ },
2366
+ "thresholdFillOpacity": {
2367
+ "description": "The default threshold fill transparency.",
2368
+ "type": "number"
2369
+ },
2370
+ "thresholdFontSize": {
2371
+ "description": "The default threshold label font size in pixels.",
2372
+ "type": "number"
2373
+ },
2374
+ "thresholdLine": {
2375
+ "description": "The default threshold line style (\"dashed\").",
2376
+ "type": "string"
2377
+ },
2378
+ "tickColor": {
2379
+ "description": "The default tick mark colour.",
2380
+ "type": "string"
2381
+ },
2382
+ "tooltipBg": {
2383
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2384
+ },
2385
+ "tooltipBorder": {
2386
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2387
+ },
2388
+ "tooltipCrosshair": {
2389
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2390
+ },
2391
+ "tooltipSnapRadius": {
2392
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2393
+ },
2394
+ "tooltipText": {
2395
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2396
+ },
2397
+ "tooltipTimeFontSize": {
2398
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2399
+ },
2400
+ "tooltipValue": {
2401
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2402
+ },
2403
+ "tooltipValueFontSize": {
2404
+ "description": "Read by ml-time-graph (TypeScript) only; go-time-graph accepts and ignores it."
2405
+ }
2406
+ },
2407
+ "type": "object"
2408
+ },
2409
+ "Threshold": {
2410
+ "additionalProperties": false,
2411
+ "description": "Represents a horizontal value boundary line with optional fill zones. Thresholds are used for incident analysis — they highlight regions where sensor values exceed safety limits or enter warning zones.",
2412
+ "properties": {
2413
+ "axisIndex": {
2414
+ "description": "Selects the Y axis for placement: 0 (left, default) or 1 (right).",
2415
+ "type": "integer"
2416
+ },
2417
+ "color": {
2418
+ "description": "The threshold line and fill colour. Defaults to theme.ThresholdColor.",
2419
+ "type": "string"
2420
+ },
2421
+ "fill": {
2422
+ "description": "Enables a half-plane fill: \"above\" or \"below\" the threshold line to the chart edge.",
2423
+ "enum": [
2424
+ "above",
2425
+ "below",
2426
+ "none"
2427
+ ],
2428
+ "type": "string"
2429
+ },
2430
+ "fillHatch": {
2431
+ "description": "Applies a hatch pattern to the fill zone.",
2432
+ "enum": [
2433
+ "none",
2434
+ "classic-diagonal",
2435
+ "dense-steep",
2436
+ "crosshatch",
2437
+ "dots",
2438
+ "waves",
2439
+ "dashed",
2440
+ "herringbone",
2441
+ "brick",
2442
+ "double-stripe",
2443
+ "honeycomb"
2444
+ ],
2445
+ "type": "string"
2446
+ },
2447
+ "fillOpacity": {
2448
+ "description": "Overrides the fill transparency (0.0–1.0).",
2449
+ "type": [
2450
+ "number",
2451
+ "null"
2452
+ ]
2453
+ },
2454
+ "id": {
2455
+ "description": "An optional element identifier for CSS/Styler targeting.",
2456
+ "type": "string"
2457
+ },
2458
+ "label": {
2459
+ "anyOf": [
2460
+ {
2461
+ "$ref": "#/$defs/ThresholdLabel"
2462
+ },
2463
+ {
2464
+ "type": "null"
2465
+ }
2466
+ ],
2467
+ "description": "Displays a text label on the threshold line. It can be false (disabled), a string, or a ThresholdLabelConfig object."
2468
+ },
2469
+ "line": {
2470
+ "description": "The line style: \"solid\", \"dashed\", \"dotted\", or \"none\". Defaults to \"dashed\".",
2471
+ "enum": [
2472
+ "solid",
2473
+ "dashed",
2474
+ "dotted",
2475
+ "none"
2476
+ ],
2477
+ "type": "string"
2478
+ },
2479
+ "name": {
2480
+ "description": "The human-readable label (required).",
2481
+ "type": "string"
2482
+ },
2483
+ "shadowBlur": {
2484
+ "description": "The Gaussian blur radius for the shadow.",
2485
+ "type": [
2486
+ "number",
2487
+ "null"
2488
+ ]
2489
+ },
2490
+ "shadowColor": {
2491
+ "description": "Adds a drop shadow to the threshold line.",
2492
+ "type": "string"
2493
+ },
2494
+ "shadowOffsetX": {
2495
+ "description": "The horizontal shadow offset.",
2496
+ "type": [
2497
+ "number",
2498
+ "null"
2499
+ ]
2500
+ },
2501
+ "shadowOffsetY": {
2502
+ "description": "The vertical shadow offset.",
2503
+ "type": [
2504
+ "number",
2505
+ "null"
2506
+ ]
2507
+ },
2508
+ "value": {
2509
+ "description": "The Y-axis value where the threshold line appears (required).",
2510
+ "type": "number"
2511
+ }
2512
+ },
2513
+ "required": [
2514
+ "name",
2515
+ "value"
2516
+ ],
2517
+ "type": "object"
2518
+ },
2519
+ "ThresholdLabel": {
2520
+ "anyOf": [
2521
+ {
2522
+ "type": "boolean"
2523
+ },
2524
+ {
2525
+ "type": "string"
2526
+ },
2527
+ {
2528
+ "$ref": "#/$defs/ThresholdLabelConfig"
2529
+ }
2530
+ ],
2531
+ "description": "A polymorphic JSON type for threshold labels. Accepts boolean false (disabled), a plain string (simple label), or a ThresholdLabelConfig object."
2532
+ },
2533
+ "ThresholdLabelConfig": {
2534
+ "additionalProperties": false,
2535
+ "description": "Configures precise label placement for a threshold line. This is the object form of ThresholdLabel — use it when you need control over position, rotation, and text baseline independently.",
2536
+ "properties": {
2537
+ "position": {
2538
+ "description": "Controls label placement: \"left\", \"right\", \"above\", \"below\", \"center\", \"outside-left\", or \"outside-right\". \"outside-*\" places the label outside the plot area.",
2539
+ "enum": [
2540
+ "left",
2541
+ "right",
2542
+ "above",
2543
+ "below",
2544
+ "center",
2545
+ "outside-left",
2546
+ "outside-right"
2547
+ ],
2548
+ "type": "string"
2549
+ },
2550
+ "rotate": {
2551
+ "description": "Tilts the label text in degrees.",
2552
+ "type": [
2553
+ "number",
2554
+ "null"
2555
+ ]
2556
+ },
2557
+ "text": {
2558
+ "description": "The label content. Falls back to threshold Name if empty.",
2559
+ "type": "string"
2560
+ },
2561
+ "textBaseline": {
2562
+ "description": "Controls vertical text alignment: \"top\", \"middle\", or \"bottom\".",
2563
+ "enum": [
2564
+ "top",
2565
+ "middle",
2566
+ "bottom"
2567
+ ],
2568
+ "type": "string"
2569
+ }
2570
+ },
2571
+ "type": "object"
2572
+ },
2573
+ "TickConfig": {
2574
+ "additionalProperties": false,
2575
+ "description": "Defines axis tick marker properties (major/minor tick count and size).",
2576
+ "properties": {
2577
+ "major": {
2578
+ "description": "The desired number of major ticks.",
2579
+ "type": [
2580
+ "integer",
2581
+ "null"
2582
+ ]
2583
+ },
2584
+ "minor": {
2585
+ "description": "The desired number of minor tick subdivisions.",
2586
+ "type": [
2587
+ "integer",
2588
+ "null"
2589
+ ]
2590
+ },
2591
+ "size": {
2592
+ "description": "The tick mark length in pixels.",
2593
+ "type": [
2594
+ "number",
2595
+ "null"
2596
+ ]
2597
+ }
2598
+ },
2599
+ "type": "object"
2600
+ },
2601
+ "TickFormat": {
2602
+ "additionalProperties": false,
2603
+ "description": "The declarative tick label format of a value axis (see YAxisConfig.TickFormat).",
2604
+ "properties": {
2605
+ "decimals": {
2606
+ "description": "The decimal places, 0-6. Default 1.",
2607
+ "type": [
2608
+ "integer",
2609
+ "null"
2610
+ ]
2611
+ },
2612
+ "unit": {
2613
+ "description": "Appended after a space, e.g. \"°C\" -\u003e \"4,5 °C\".",
2614
+ "type": "string"
2615
+ }
2616
+ },
2617
+ "type": "object"
2618
+ },
2619
+ "TimeSeries": {
2620
+ "additionalProperties": false,
2621
+ "description": "Represents a raw time series with named data points. This is the most common series type — a sequence of {time, value} pairs rendered as lines, steps, or dots. Set SeriesType to \"step\" for orthogonal step transitions instead of continuous lines. Use ColorByThresholds to colour the line segments by zone.",
2622
+ "properties": {
2623
+ "colorByThresholds": {
2624
+ "description": "Splits the series line by value zones. When set, each segment above a threshold boundary takes that threshold's colour. Threshold names are sorted ascending.",
2625
+ "items": {
2626
+ "type": "string"
2627
+ },
2628
+ "type": "array"
2629
+ },
2630
+ "data": {
2631
+ "description": "The sequence of data points (required).",
2632
+ "items": {
2633
+ "$ref": "#/$defs/DataPoint"
2634
+ },
2635
+ "type": "array"
2636
+ },
2637
+ "enumMap": {
2638
+ "additionalProperties": {
2639
+ "type": "string"
2640
+ },
2641
+ "description": "Maps integer sensor codes to human-readable labels (for enum series).",
2642
+ "propertyNames": {
2643
+ "pattern": "^-?[0-9]+$"
2644
+ },
2645
+ "type": "object"
2646
+ },
2647
+ "gaps": {
2648
+ "anyOf": [
2649
+ {
2650
+ "$ref": "#/$defs/SeriesGaps"
2651
+ },
2652
+ {
2653
+ "type": "null"
2654
+ }
2655
+ ],
2656
+ "description": "Gap settings for this series, e.g. atEnd: false for a sensor that is silent on purpose."
2657
+ },
2658
+ "holdToEnd": {
2659
+ "anyOf": [
2660
+ {
2661
+ "$ref": "#/$defs/HoldToEnd"
2662
+ },
2663
+ {
2664
+ "type": "null"
2665
+ }
2666
+ ],
2667
+ "description": "Holds the last value until the end of the time axis (or gaps.atEnd.now): for a sensor that reports only on change. Only line and fill are extended; markers, PointsAt and the value axis keep the real readings, and the series gets no gaps.atEnd region. JSON: true or { \"maxAgeMs\": ... }. Gegenstueck: holdToEnd in packages/ml-time-graph/src/data/types.ts."
2668
+ },
2669
+ "id": {
2670
+ "description": "An optional element identifier for CSS/Styler targeting.",
2671
+ "type": "string"
2672
+ },
2673
+ "legend": {
2674
+ "anyOf": [
2675
+ {
2676
+ "$ref": "#/$defs/SeriesLegend"
2677
+ },
2678
+ {
2679
+ "type": "null"
2680
+ }
2681
+ ],
2682
+ "description": "How the legend shows this series, e.g. several colours for a line coloured by thresholds."
2683
+ },
2684
+ "name": {
2685
+ "description": "The human-readable label (required).",
2686
+ "type": "string"
2687
+ },
2688
+ "overlays": {
2689
+ "description": "Statistics computed from this series and drawn over it.",
2690
+ "items": {
2691
+ "$ref": "#/$defs/SeriesOverlay"
2692
+ },
2693
+ "type": "array"
2694
+ },
2695
+ "sensorType": {
2696
+ "deprecated": true,
2697
+ "description": "An optional semantic tag (e.g. \"temperature\", \"humidity\").",
2698
+ "type": "string"
2699
+ },
2700
+ "seriesType": {
2701
+ "description": "Controls the rendering mode. \"\" or \"line\" = continuous line; \"step\" = orthogonal steps.",
2702
+ "enum": [
2703
+ "line",
2704
+ "area",
2705
+ "step"
2706
+ ],
2707
+ "type": "string"
2708
+ },
2709
+ "style": {
2710
+ "anyOf": [
2711
+ {
2712
+ "$ref": "#/$defs/SeriesStyle"
2713
+ },
2714
+ {
2715
+ "type": "null"
2716
+ }
2717
+ ],
2718
+ "description": "Optional visual styling (line, fill, markers, shadow, gap)."
2719
+ },
2720
+ "yAxisIndex": {
2721
+ "description": "Selects the vertical axis: 0 (left, default) or 1 (right).",
2722
+ "type": "integer"
2723
+ }
2724
+ },
2725
+ "required": [
2726
+ "data",
2727
+ "name"
2728
+ ],
2729
+ "type": "object"
2730
+ },
2731
+ "XAxisConfig": {
2732
+ "additionalProperties": false,
2733
+ "description": "Configures the horizontal time axis.",
2734
+ "properties": {
2735
+ "axis": {
2736
+ "anyOf": [
2737
+ {
2738
+ "$ref": "#/$defs/AxisStyle"
2739
+ },
2740
+ {
2741
+ "type": "null"
2742
+ }
2743
+ ],
2744
+ "description": "The baseline and tick mark styling."
2745
+ },
2746
+ "domain": {
2747
+ "anyOf": [
2748
+ {
2749
+ "$ref": "#/$defs/AxisDomain"
2750
+ },
2751
+ {
2752
+ "type": "null"
2753
+ }
2754
+ ],
2755
+ "description": "The time range: \"auto\" or [minMs, maxMs]."
2756
+ },
2757
+ "grid": {
2758
+ "anyOf": [
2759
+ {
2760
+ "$ref": "#/$defs/GridStyle"
2761
+ },
2762
+ {
2763
+ "type": "null"
2764
+ }
2765
+ ],
2766
+ "description": "The grid line style."
2767
+ },
2768
+ "label": {
2769
+ "description": "The human-readable axis title.",
2770
+ "type": "string"
2771
+ },
2772
+ "labels": {
2773
+ "anyOf": [
2774
+ {
2775
+ "$ref": "#/$defs/AxisLabelsStyle"
2776
+ },
2777
+ {
2778
+ "type": "null"
2779
+ }
2780
+ ],
2781
+ "description": "Configures tick label text colour and font size."
2782
+ },
2783
+ "ticks": {
2784
+ "anyOf": [
2785
+ {
2786
+ "$ref": "#/$defs/TickConfig"
2787
+ },
2788
+ {
2789
+ "type": "null"
2790
+ }
2791
+ ],
2792
+ "description": "Controls tick density."
2793
+ }
2794
+ },
2795
+ "type": "object"
2796
+ },
2797
+ "YAxisConfig": {
2798
+ "additionalProperties": false,
2799
+ "description": "Configures a vertical (left or right) axis — label, domain, ticks, grid, and styling.",
2800
+ "properties": {
2801
+ "axis": {
2802
+ "anyOf": [
2803
+ {
2804
+ "$ref": "#/$defs/AxisStyle"
2805
+ },
2806
+ {
2807
+ "type": "null"
2808
+ }
2809
+ ],
2810
+ "description": "The baseline and tick mark styling."
2811
+ },
2812
+ "domain": {
2813
+ "anyOf": [
2814
+ {
2815
+ "$ref": "#/$defs/AxisDomain"
2816
+ },
2817
+ {
2818
+ "type": "null"
2819
+ }
2820
+ ],
2821
+ "description": "The value range: \"auto\" or [min, max]."
2822
+ },
2823
+ "grid": {
2824
+ "anyOf": [
2825
+ {
2826
+ "$ref": "#/$defs/GridStyle"
2827
+ },
2828
+ {
2829
+ "type": "null"
2830
+ }
2831
+ ],
2832
+ "description": "The grid line style."
2833
+ },
2834
+ "includeThresholds": {
2835
+ "description": "Widens an automatic domain to the thresholds drawn on this axis (Line other than \"none\"), so a limit line shows even when no reading comes near it. Same option as `includeThresholds` in TS.",
2836
+ "type": "boolean"
2837
+ },
2838
+ "label": {
2839
+ "description": "The human-readable axis title.",
2840
+ "type": "string"
2841
+ },
2842
+ "labelOffset": {
2843
+ "description": "The distance in px from the axis line outwards to the centre of the rotated title. Set, it replaces the automatic placement (no lane search, no fallback lane); other titles on the same side avoid it. Gegenstueck: labelOffset in packages/ml-time-graph/src/style/axes.ts.",
2844
+ "type": [
2845
+ "number",
2846
+ "null"
2847
+ ]
2848
+ },
2849
+ "labels": {
2850
+ "anyOf": [
2851
+ {
2852
+ "$ref": "#/$defs/AxisLabelsStyle"
2853
+ },
2854
+ {
2855
+ "type": "null"
2856
+ }
2857
+ ],
2858
+ "description": "Configures tick label text colour and font size."
2859
+ },
2860
+ "min": {
2861
+ "description": "Lower edge of a logarithmic axis (scale \"log\"), above 0. Readings below it -- including 0 and negative ones -- are drawn ON this edge, and warnings() reports how many. Ignored on a linear axis, and when domain is set to fixed bounds (their lower one is the edge).",
2862
+ "type": [
2863
+ "number",
2864
+ "null"
2865
+ ]
2866
+ },
2867
+ "offset": {
2868
+ "description": "An optional explicit horizontal pixel offset from chart edge (defaults to index * 50px).",
2869
+ "type": [
2870
+ "number",
2871
+ "null"
2872
+ ]
2873
+ },
2874
+ "padding": {
2875
+ "anyOf": [
2876
+ {
2877
+ "$ref": "#/$defs/AxisPadding"
2878
+ },
2879
+ {
2880
+ "type": "null"
2881
+ }
2882
+ ],
2883
+ "description": "Leaves extra room above and below the data, in PIXELS. Ignored when Domain is set explicitly."
2884
+ },
2885
+ "position": {
2886
+ "description": "\"left\" or \"right\" to determine placement side. Defaults to \"left\".",
2887
+ "enum": [
2888
+ "left",
2889
+ "right"
2890
+ ],
2891
+ "type": "string"
2892
+ },
2893
+ "scale": {
2894
+ "description": "How the axis divides its range. \"linear\" (default): equal distance for equal differences. \"log\": equal distance for equal ratios -- every power of ten gets the same height. For readings that span several orders of magnitude: illuminance, particle counts, vacuum pressure. A logarithmic axis has no zero and needs a lower edge: set min, or a fixed domain whose lower bound is above 0. Without one the axis stays linear and warnings() says so. Only the picture changes; computed overlays still work on the readings. An axis whose series carry an enumMap ignores it.",
2895
+ "enum": [
2896
+ "linear",
2897
+ "log"
2898
+ ],
2899
+ "type": "string"
2900
+ },
2901
+ "tickFormat": {
2902
+ "anyOf": [
2903
+ {
2904
+ "$ref": "#/$defs/TickFormat"
2905
+ },
2906
+ {
2907
+ "type": "null"
2908
+ }
2909
+ ],
2910
+ "description": "Labels ticks WITHOUT a callback: unit suffix and decimal places, decimal separator from Locale (\"de-DE\" -\u003e \"4,5 °C\"). Unlike Format it survives JSON, so options built here render the same in the browser. Format wins over it; an axis with enumMap series keeps its state names. Gegenstueck: tickFormat in packages/ml-time-graph/src/style/axes.ts."
2911
+ },
2912
+ "ticks": {
2913
+ "anyOf": [
2914
+ {
2915
+ "$ref": "#/$defs/TickConfig"
2916
+ },
2917
+ {
2918
+ "type": "null"
2919
+ }
2920
+ ],
2921
+ "description": "Controls tick count and size."
2922
+ }
2923
+ },
2924
+ "type": "object"
2925
+ }
2926
+ },
2927
+ "$ref": "#/$defs/MLTimeGraphOptions",
2928
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2929
+ "description": "Options for one chart -- the same JSON for ml-time-graph (TypeScript) and go-time-graph (Go).",
2930
+ "title": "MLTimeGraph chart options"
2931
+ }