smarter-charts 2.2.1 → 2.3.1
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/README.md +22 -24
- package/dist/{apexcharts.ssr.esm-fe46cd2d-C4I5ONZa.js → apexcharts.ssr.esm-fe46cd2d-BxO-IQ5_.js} +199 -203
- package/dist/smarter-charts.es.js +31893 -21016
- package/dist/smarter-charts.umd.js +957 -128
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -8,25 +8,6 @@ In this package are distributed the chart components developed for the precision
|
|
|
8
8
|
npm install smarter-charts
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
## Development Setup
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
# Install dependencies
|
|
15
|
-
npm install
|
|
16
|
-
|
|
17
|
-
# Start development server (http://localhost:5173)
|
|
18
|
-
npm run dev
|
|
19
|
-
|
|
20
|
-
# Build for production
|
|
21
|
-
npm run build
|
|
22
|
-
|
|
23
|
-
# Publish new version on npm
|
|
24
|
-
npm publish
|
|
25
|
-
|
|
26
|
-
# Windows utility script for cleaning the dependency and all the cached file, ensuring correct rebuild and pack for local usage in a .tgz archive
|
|
27
|
-
./clean.bat
|
|
28
|
-
```
|
|
29
|
-
|
|
30
11
|
## Usage
|
|
31
12
|
|
|
32
13
|
All components are exposed as Custom Elements defined by the `registerChartComponents()` function and can be used directly as HTML tags.
|
|
@@ -55,7 +36,7 @@ config: {
|
|
|
55
36
|
timeFilterFrom?: string, // ISO date string or timestamp (start of time range)
|
|
56
37
|
timeFilterTo?: string // ISO date string or timestamp (end of time range)
|
|
57
38
|
signalTypes?: string[], // String IDs of the possible signal type retrieved by SMARTER API (e.g. ['AIR_TEMP'])
|
|
58
|
-
|
|
39
|
+
aggregationType?: string // Type of aggregation to perform on data. Accepted type: (SUM, AVG, MIN, MAX, MED)
|
|
59
40
|
}
|
|
60
41
|
}
|
|
61
42
|
```
|
|
@@ -65,10 +46,6 @@ config: {
|
|
|
65
46
|
| Component Tag| Description| Props/Events|
|
|
66
47
|
|----------------------------------------------|-------------------------------------------------------------------------|---|
|
|
67
48
|
| `<optimal-distance-chart-smarter>` | Line chart showing humidity level in relation to optimal state ||
|
|
68
|
-
| `<airtemperature-chart-smarter>` | Line chart for air temperature trends |
|
|
69
|
-
| `<meancountor-chart-smarter>` | Heatmap of monitored soil portion for **mean** of matric potential in a given period|
|
|
70
|
-
| `<stdcountor-chart-smarter>` | Heatmap of monitored soil portion for **standard deviation** of matric potential in a given period |
|
|
71
|
-
| `<dripperandpluv-chart-smarter>` | Line chart showing irrigation and rainfall |
|
|
72
49
|
| `<signals-linechart-chart-smarter>` | Line chart for signals of requested type | `:hideOnMissingSignal` flag that indicates if the chart should be hidden when no signals are retrieved
|
|
73
50
|
| `<humiditymap-smarter>` | Heatmap of monitored soil portion showing the matric potential | `:selectedTimestamp` timestamp of image to show
|
|
74
51
|
| `<humiditymultiline-chart-smarter>` | Area chart of humidity levels over times | `@selectTimestamp` events emitted containing the timestamp clicked
|
|
@@ -76,7 +53,28 @@ config: {
|
|
|
76
53
|
| `<optimal-humidity-heatmap-smarter>` | Heatmaps of optimal soil state to obtain with cell weights | `:selectedTimestamp` timestamp of image to show <br>`:showDistance` flag that indicates if show the distance matrix
|
|
77
54
|
| `<calendar-smarter>` | Calendar with irrigation events | `:isEditable` flag that indicates if events can be edited
|
|
78
55
|
| `<water-aggregate-chart-smarter>` | Bar chart to summarize daily irrigation and rainfalls| `:extraParams` object with additional aggregation parameters|
|
|
56
|
+
| `<meancountor-chart-smarter>` | Heatmap of monitored soil portion for **mean** of matric potential in a given period|
|
|
57
|
+
| `<stdcountor-chart-smarter>` | Heatmap of monitored soil portion for **standard deviation** of matric potential in a given period |
|
|
58
|
+
| `<dripperandpluv-chart-smarter>` | Line chart showing irrigation and rainfall |
|
|
79
59
|
|
|
60
|
+
## Development Setup
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Install dependencies
|
|
64
|
+
npm install
|
|
65
|
+
|
|
66
|
+
# Start development server (http://localhost:5173)
|
|
67
|
+
npm run dev
|
|
68
|
+
|
|
69
|
+
# Build for production
|
|
70
|
+
npm run build
|
|
71
|
+
|
|
72
|
+
# Publish new version on npm
|
|
73
|
+
npm publish
|
|
74
|
+
|
|
75
|
+
# Windows utility script for cleaning the dependency and all the cached file, ensuring correct rebuild and pack for local usage in a .tgz archive
|
|
76
|
+
./clean.bat
|
|
77
|
+
```
|
|
80
78
|
|
|
81
79
|
## License
|
|
82
80
|
This project is maintained by the Business Intelligence Group at University of Bologna.
|