From 913ee573a8ff02c2b1ea2763d536c4b86a1cdcb9 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Tue, 24 Sep 2024 21:05:10 +0100 Subject: [PATCH] fix built-in examples --- examples/bar-chart.json | 40 +++++++++++++++++++++++++++++++-- examples/line-chart.json | 40 +++++++++++++++++++++++++++++++-- examples/scatter-chart.json | 44 +++++++++++++++++++++++++++++++++---- 3 files changed, 116 insertions(+), 8 deletions(-) diff --git a/examples/bar-chart.json b/examples/bar-chart.json index 631bc4519..67d4de3c4 100644 --- a/examples/bar-chart.json +++ b/examples/bar-chart.json @@ -6,17 +6,23 @@ "group": "", "name": "", "label": "Sales in Million", - "order": 9007199254740991, + "order": 3, "chartType": "bar", "category": "location", "categoryType": "property", + "xAxisLabel": "", "xAxisProperty": "", - "xAxisPropertyType": "msg", + "xAxisPropertyType": "str", "xAxisType": "category", + "xAxisFormat": "", + "xAxisFormatType": "auto", + "yAxisLabel": "", "yAxisProperty": "sales_millions", + "yAxisPropertyType": "property", "ymin": "", "ymax": "", "action": "append", + "stackSeries": false, "pointShape": "circle", "pointRadius": 4, "showLegend": false, @@ -71,5 +77,35 @@ "2a23595f05d3331e" ] ] + }, + { + "id": "f4c5f4c74fbd2db2", + "type": "inject", + "z": "0758321f1687e812", + "name": "Clear", + "props": [ + { + "p": "payload" + }, + { + "p": "action", + "v": "replace", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "[]", + "payloadType": "json", + "x": 210, + "y": 800, + "wires": [ + [ + "2a23595f05d3331e" + ] + ] } ] \ No newline at end of file diff --git a/examples/line-chart.json b/examples/line-chart.json index 4bc12b67e..89cd16150 100644 --- a/examples/line-chart.json +++ b/examples/line-chart.json @@ -4,19 +4,25 @@ "type": "ui-chart", "z": "0758321f1687e812", "group": "", - "name": "", + "name": "Line Chart", "label": "chart", "order": 9007199254740991, "chartType": "line", "category": "location", "categoryType": "property", + "xAxisLabel": "", "xAxisProperty": "datestamp", - "xAxisPropertyType": "msg", + "xAxisPropertyType": "property", "xAxisType": "time", + "xAxisFormat": "", + "xAxisFormatType": "auto", + "yAxisLabel": "", "yAxisProperty": "temp", + "yAxisPropertyType": "property", "ymin": "", "ymax": "", "action": "append", + "stackSeries": false, "pointShape": "circle", "pointRadius": 4, "showLegend": true, @@ -71,5 +77,35 @@ "efccfdf502300871" ] ] + }, + { + "id": "33ee5762cce0ee32", + "type": "inject", + "z": "862ec766f2af6f61", + "name": "Clear", + "props": [ + { + "p": "payload" + }, + { + "p": "action", + "v": "replace", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "[]", + "payloadType": "json", + "x": 290, + "y": 1100, + "wires": [ + [ + "efccfdf502300871" + ] + ] } ] \ No newline at end of file diff --git a/examples/scatter-chart.json b/examples/scatter-chart.json index 8ebd76eae..ab8cd47f5 100644 --- a/examples/scatter-chart.json +++ b/examples/scatter-chart.json @@ -4,19 +4,25 @@ "type": "ui-chart", "z": "0758321f1687e812", "group": "", - "name": "", + "name": "Scatter Chart", "label": "chart", - "order": 9007199254740991, + "order": 4, "chartType": "scatter", "category": "", "categoryType": "str", + "xAxisLabel": "", "xAxisProperty": "x", - "xAxisPropertyType": "msg", + "xAxisPropertyType": "property", "xAxisType": "linear", + "xAxisFormat": "", + "xAxisFormatType": "auto", + "yAxisLabel": "", "yAxisProperty": "y", + "yAxisPropertyType": "property", "ymin": "", "ymax": "", "action": "replace", + "stackSeries": false, "pointShape": "circle", "pointRadius": 4, "showLegend": true, @@ -47,7 +53,7 @@ "id": "937b42a40fdcf424", "type": "inject", "z": "0758321f1687e812", - "name": "", + "name": "Arc data", "props": [ { "p": "payload" @@ -71,5 +77,35 @@ "91ced026339a3eeb" ] ] + }, + { + "id": "60e4dfb81bdbcb03", + "type": "inject", + "z": "0758321f1687e812", + "name": "Clear", + "props": [ + { + "p": "payload" + }, + { + "p": "action", + "v": "replace", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "[]", + "payloadType": "json", + "x": 250, + "y": 860, + "wires": [ + [ + "91ced026339a3eeb" + ] + ] } ] \ No newline at end of file