@record-evolution/widget-gauge 1.7.33 → 1.7.34
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/dist/widget-gauge.js +2 -2
- package/package.json +1 -1
- package/src/definition-schema.json +15 -0
package/dist/widget-gauge.js
CHANGED
|
@@ -553,7 +553,7 @@ var Qt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, v = (s, t,
|
|
|
553
553
|
G.use([vt, bt, At]);
|
|
554
554
|
let $ = class extends M {
|
|
555
555
|
constructor() {
|
|
556
|
-
super(), this.dataSets = [], this.canvasList = /* @__PURE__ */ new Map(), this.origWidth = 600, this.origHeight = 350, this.textContainerHeight = 36, this.modifier = 1, this.version = "1.7.
|
|
556
|
+
super(), this.dataSets = [], this.canvasList = /* @__PURE__ */ new Map(), this.origWidth = 600, this.origHeight = 350, this.textContainerHeight = 36, this.modifier = 1, this.version = "1.7.34", this.resizeObserver = new ResizeObserver(() => {
|
|
557
557
|
this.adjustSizes(), this.applyData();
|
|
558
558
|
}), this.template = {
|
|
559
559
|
series: [
|
|
@@ -908,7 +908,7 @@ v([
|
|
|
908
908
|
_t(".wrapper")
|
|
909
909
|
], $.prototype, "wrapper", 2);
|
|
910
910
|
$ = v([
|
|
911
|
-
Kt("widget-gauge-1.7.
|
|
911
|
+
Kt("widget-gauge-1.7.34")
|
|
912
912
|
], $);
|
|
913
913
|
export {
|
|
914
914
|
$ as WidgetGauge
|
package/package.json
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Gauge-chart Configuration",
|
|
3
3
|
"description": "A circular gauge widget for displaying single numeric values within a defined range. Use this widget to show KPIs, sensor readings, progress indicators, or any metric that benefits from a visual representation against minimum and maximum boundaries. Supports color-coded sections to indicate value zones (e.g., normal/warning/critical), multiple gauges in one widget, and automatic pivot-based generation from data columns. Ideal for real-time monitoring dashboards showing temperature, speed, utilization, or similar bounded metrics.",
|
|
4
|
+
"aiSelection": {
|
|
5
|
+
"dataShape": "One number per gauge together with the bounds it is read against: dataseries[].data[].value, with sections.gaugeMinValue and sections.sectionLimits[] defining the coloured zones. Optionally a timestamp for freshness and a pivot column producing one gauge per distinct value.",
|
|
6
|
+
"useWhen": [
|
|
7
|
+
"A current measurement is only meaningful against a range — a tank at 60% of capacity, a temperature inside or outside its safe band, utilisation against 100%.",
|
|
8
|
+
"Zones matter: normal, warning and critical should be visible as colour without reading the number.",
|
|
9
|
+
"One gauge per machine or site should be generated from one column (bind it to data[].pivot)."
|
|
10
|
+
],
|
|
11
|
+
"notFor": [
|
|
12
|
+
"A number with no natural minimum and maximum — a total, a count, a price. Use widget-value; an invented range makes the dial meaningless.",
|
|
13
|
+
"How the value got here or where it is heading — a gauge shows only the latest point. Use widget-linechart.",
|
|
14
|
+
"A share of a total — use widget-doughnut.",
|
|
15
|
+
"A tank, pump, valve or other industrial asset that should be drawn as itself rather than as a dial — use widget-scada.",
|
|
16
|
+
"A binary condition — use widget-signal, or widget-switch when it must also be controllable."
|
|
17
|
+
]
|
|
18
|
+
},
|
|
4
19
|
"type": "object",
|
|
5
20
|
"properties": {
|
|
6
21
|
"title": {
|