Skip to content

Commit 2a74b68

Browse files
committed
Update on Readme
1 parent c0924ce commit 2a74b68

File tree

2 files changed

+27
-16
lines changed

2 files changed

+27
-16
lines changed

README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ HTML area chart element done with ApexChart
1515

1616
```js
1717
// Example
18-
X_axis: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
18+
X_axis: [["2024-04-30 09:28:41", "2024-04-30 09:35:42", "2024-04-30 09:36:43", "2024-04-30 09:37:44", "2024-04-30 09:38:45", "2024-04-30 09:38:55"]]
1919
```
2020

21-
- **Y_axis** : String in array format of numbers to draw the seires of the chart
21+
- **Y_axis** : Array of element to draw the Y axis of the chart
2222

2323
```js
2424
// Example
25-
Y_axis: "[[18, 21, 22, 16, 19, 21, 21, 21],[7, 9, 11, 11, 9, 12, 11, 11]]"
25+
Y_axis: [["390.00", "375.00", "380.00", "385.00", "390.00", "395.00"]]
2626
```
2727

2828
- **DataName** : Array of strings with the name for each series
2929

3030
```js
3131
// Example
32-
DataName: ["Max °C", "Min °C"]
32+
DataName: ["Max °C"]
3333
```
3434

3535
- **X_axisname** : Name of the X axis (i.e. "Days")
@@ -45,7 +45,13 @@ HTML area chart element done with ApexChart
4545

4646
- **SeriesLabels** : Flag to hide or show (False / True) the labels on the series (i.e. true)
4747

48+
- **ShowLine** : Flag to hide or show (False / True) the line on the series (i.e. true)
49+
4850
- **LineType** : Draw smooth lines or straight lines (i.e. "Smooth")
51+
52+
- **XAxisType** : Type of data to show on the X axis (Category / Datetime / Numeric) (i.e. "Datetime")
53+
54+
- **ChartType** : Type of chart to draw (Line / Area / Bar) (i.e. "Area")
4955
### **3. EVENTS**
5056

5157
- **//**
@@ -60,14 +66,18 @@ HTML area chart element done with ApexChart
6066
var production = false;
6167
//...
6268
WebCC.Properties = {
63-
X_axis: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
64-
Y_axis: "[[18, 21, 22, 16, 19, 21, 21, 21],[7, 9, 11, 11, 9, 12, 11, 11]]",
65-
SeriesColor: ["#ee730d","#1183e8"],
66-
DataName: ["Max °C", "Min °C"],
67-
X_axisname: 'Days',
68-
Y_axisname: 'Temperatures',
69-
SeriesLabels: true,
70-
LineType: 'smooth'
69+
X_axis: [["2024-04-30 09:28:41", "2024-04-30 09:35:42", "2024-04-30 09:36:43", "2024-04-30 09:37:44", "2024-04-30 09:38:45", "2024-04-30 09:38:55"],
70+
["2024-04-30 09:28:41", "2024-04-30 09:32:42", "2024-04-30 09:36:43", "2024-04-30 09:37:44", "2024-04-30 09:38:45", "2024-04-30 09:38:55"]],
71+
Y_axis: [["390.00", "375.00", "380.00", "385.00", "390.00", "395.00"],["160.00", "255.00", "530.00", "415.00", "290.00", "295.00"]],
72+
DataName: ["Temperature 1", "Temperature 2"],
73+
X_axisname: 'Time',
74+
Y_axisname: 'Kw',
75+
SeriesColor: ["#EE730D", "#0DCFEE"],
76+
SeriesLabels: false,
77+
ShowLine: false,
78+
LineType: 'Straight',
79+
XAxisType: 'DateTime',
80+
ChartType: 'Area'
7181
};
7282
```
7383

{4703190B-4D05-4F16-B52C-B4E3B46092C2}/control/index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
if (!production) {
3232

3333
WebCC.Properties = {
34-
X_axis: [["2024-04-30 09:28:41", "2024-04-30 09:35:42", "2024-04-30 09:36:43", "2024-04-30 09:37:44", "2024-04-30 09:38:45", "2024-04-30 09:38:55"]],
35-
Y_axis: [["390.00", "375.00", "380.00", "385.00", "390.00", "395.00"]],
36-
SeriesColor: ["#EE730D"],
37-
DataName: ["Temperature"],
34+
X_axis: [["2024-04-30 09:28:41", "2024-04-30 09:35:42", "2024-04-30 09:36:43", "2024-04-30 09:37:44", "2024-04-30 09:38:45", "2024-04-30 09:38:55"],
35+
["2024-04-30 09:28:41", "2024-04-30 09:32:42", "2024-04-30 09:36:43", "2024-04-30 09:37:44", "2024-04-30 09:38:45", "2024-04-30 09:38:55"]],
36+
Y_axis: [["390.00", "375.00", "380.00", "385.00", "390.00", "395.00"],["160.00", "255.00", "530.00", "415.00", "290.00", "295.00"]],
37+
DataName: ["Temperature 1", "Temperature 2"],
3838
X_axisname: 'Time',
3939
Y_axisname: 'Kw',
40+
SeriesColor: ["#EE730D", "#0DCFEE"],
4041
SeriesLabels: false,
4142
ShowLine: false,
4243
LineType: 'Straight',

0 commit comments

Comments
 (0)