You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/definition-schema.d.ts
+37-10Lines changed: 37 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,39 +5,48 @@
5
5
* and run json-schema-to-typescript to regenerate this file.
6
6
*/
7
7
8
+
/**
9
+
* The main heading displayed above the value displays. Use to identify the metric group (e.g., 'Temperature Readings', 'Production Counts').
10
+
*/
8
11
exporttypeTitle=string;
12
+
/**
13
+
* Secondary text displayed below the title. Use for additional context like location, time period, or data source.
14
+
*/
9
15
exporttypeSubtitle=string;
10
16
/**
11
-
* The label for the value.
17
+
* Display text identifying this value. Should clearly describe what the number represents (e.g., 'Current Temperature', 'Total Orders', 'CPU Usage').
12
18
*/
13
19
exporttypeLabel=string;
14
20
/**
15
-
* The unit of the value. e.g. °C or km/h
21
+
* The measurement unit displayed after the value. Examples: '°C', 'km/h', '%', 'kWh', 'pcs'. Can be bound to data for dynamic units.
16
22
*/
17
23
exporttypeUnit=string;
18
24
/**
19
-
* Number of digits after the decimal point. (Default 0)
25
+
* Number of decimal places to display. Default is 0 (whole numbers). Set to 1-3 for measurements requiring decimal precision (e.g., temperature: 2, percentages: 1).
20
26
*/
21
27
exporttypeDecimals=number;
22
28
/**
23
-
* The value of the gauge
29
+
* The numeric value to display. Bind to a data source column containing the metric. Only shown when Multi Chart mode is disabled.
24
30
*/
25
31
exporttypeValue=number;
26
32
/**
27
-
* Draw multiple Charts based on the split column of a data table.
33
+
* Enable to automatically create one value display per distinct pivot value in the data. When enabled, use the data array with pivot column instead of a single value.
28
34
*/
29
35
exporttypeMultiChart=boolean;
30
36
/**
31
-
* This should be an ISO String date like 2023-11-04T22:47:52.351152+00:00. Will only be used to detect data age of data.
37
+
* ISO 8601 timestamp string (e.g., '2023-11-04T22:47:52.351152+00:00'). Used with Maximum Latency setting to validate data freshness - stale data can be hidden or marked.
32
38
*/
33
39
exporttypeTimestamp=string;
40
+
/**
41
+
* The numeric value from this data row. In Multi Chart mode, the latest value per pivot group is displayed.
42
+
*/
34
43
exporttypeValue1=number;
35
44
/**
36
-
* You can specify a column in the input data to autogenerate dataseries for each distinct entry in this column. E.g. if you have a table with columns [city, timestamp, temperature] and specify 'city' as split column, then you will get a value field for each city.
45
+
* Column used to group data into separate value displays. Each unique value creates its own display. Example: with columns [city, timestamp, temperature], setting pivot to 'city' shows one temperature value per city.
37
46
*/
38
47
exporttypeSplitDataBy=string;
39
48
/**
40
-
* The data used to draw this data series.
49
+
* Data array for Multi Chart mode. Each row should contain a value and optionally a timestamp and pivot column for splitting into multiple displays.
41
50
*/
42
51
exporttypeData={
43
52
tsp?: Timestamp;
@@ -46,13 +55,16 @@ export type Data = {
46
55
[k: string]: unknown;
47
56
}[];
48
57
/**
49
-
* Calculate the average over the given number of newest values. (If you use "Split data by", then per each of the pivot dataseries.) If not specified then the latest valueis shown without modification.
58
+
* Calculate and display the average of the N most recent values instead of just the latest. Useful for smoothing noisy sensor data. Leave empty to show the raw latest value. When using pivot/split, averaging is applied per group.
50
59
*/
51
60
exporttypeAverageLatestValues=number;
52
61
/**
53
-
* If you provide timestamp data, the delivered value is only shown in the gauge when the age of the data is not older than the given maximum Latency in seconds.
62
+
* Maximum acceptable age of data in seconds. If the timestamp indicates data older than this threshold, the value may be hidden or marked as stale. Requires timestamp data to be provided. Useful for real-time monitoring where outdated values are misleading.
54
63
*/
55
64
exporttypeMaximumLatency=number;
65
+
/**
66
+
* Array of value display configurations. Each entry creates a labeled numeric display with optional unit and styling. Add multiple entries to show several related metrics together.
67
+
*/
56
68
exporttypeValueDisplays={
57
69
label?: Label;
58
70
unit?: Unit;
@@ -65,23 +77,38 @@ export type ValueDisplays = {
65
77
[k: string]: unknown;
66
78
}[];
67
79
80
+
/**
81
+
* A simple numeric value display widget for showing key metrics with labels and units. Use this widget to prominently display important numbers like sensor readings, KPIs, counts, or any scalar values. Supports multiple value displays in one widget, each with its own label, unit, and formatting. Features include decimal precision control, data freshness validation via timestamps, averaging over recent values, and automatic pivot/split functionality for showing one value per distinct category. Ideal for dashboard KPI tiles, sensor readouts, counters, or any scenario requiring clean numeric value presentation.
82
+
*/
68
83
exportinterfaceInputData{
69
84
title?: Title;
70
85
subTitle?: Subtitle;
71
86
dataseries?: ValueDisplays;
72
87
[k: string]: unknown;
73
88
}
89
+
/**
90
+
* Visual styling options for the label and value text colors.
91
+
*/
74
92
exportinterfaceStyling{
75
93
labelColor?: LabelColor;
76
94
valueColor?: ValueColor;
77
95
[k: string]: unknown;
78
96
}
97
+
/**
98
+
* Color of the label text above or beside the value.
99
+
*/
79
100
exportinterfaceLabelColor{
80
101
[k: string]: unknown;
81
102
}
103
+
/**
104
+
* Color of the numeric value and unit text.
105
+
*/
82
106
exportinterfaceValueColor{
83
107
[k: string]: unknown;
84
108
}
109
+
/**
110
+
* Advanced data processing options for averaging and freshness validation.
0 commit comments