@operato/scene-scichart 7.0.7 → 7.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +9 -0
- package/db.sqlite +0 -0
- package/dist/charts/axis-synchronizer.d.ts +10 -0
- package/dist/charts/axis-synchronizer.js +32 -0
- package/dist/charts/axis-synchronizer.js.map +1 -0
- package/dist/charts/ox-scichart-multiple.d.ts +40 -0
- package/dist/charts/ox-scichart-multiple.js +272 -0
- package/dist/charts/ox-scichart-multiple.js.map +1 -0
- package/dist/charts/ox-scichart.d.ts +1 -1
- package/dist/charts/ox-scichart.js.map +1 -1
- package/dist/charts/scichart-builder.d.ts +10 -1
- package/dist/charts/scichart-builder.js +80 -8
- package/dist/charts/scichart-builder.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/scichart-multiple-timeseries.d.ts +14 -0
- package/dist/scichart-multiple-timeseries.js +60 -0
- package/dist/scichart-multiple-timeseries.js.map +1 -0
- package/dist/scichart-timeseries.d.ts +2 -11
- package/dist/scichart-timeseries.js +2 -42
- package/dist/scichart-timeseries.js.map +1 -1
- package/dist/templates/index.js +2 -1
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/scichart-multiple-timeseries.d.ts +53 -0
- package/dist/templates/scichart-multiple-timeseries.js +81 -0
- package/dist/templates/scichart-multiple-timeseries.js.map +1 -0
- package/helps/scene/component/scichart-multiple-timeseries.md +23 -0
- package/helps/scene/component/scichart-timeseries.md +18 -0
- package/icons/scichart-multiple-timeseries.png +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +11 -6
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +18 -23
- package/logs/{application-2024-07-13-21.log → application-2024-07-28-03.log} +8 -8
- package/logs/{application-2024-07-13-20.log → application-2024-07-28-17.log} +32 -36
- package/logs/application-2024-07-28-18.log +210 -0
- package/logs/connections-2024-07-23-14.log +50 -0
- package/logs/connections-2024-07-25-23.log +50 -0
- package/logs/connections-2024-07-26-18.log +50 -0
- package/logs/connections-2024-07-28-03.log +50 -0
- package/logs/connections-2024-07-28-17.log +200 -0
- package/logs/connections-2024-07-28-18.log +100 -0
- package/package.json +2 -2
- package/schema.graphql +112 -0
- package/src/charts/axis-synchronizer.ts +37 -0
- package/src/charts/ox-scichart-multiple.ts +334 -0
- package/src/charts/ox-scichart.ts +1 -1
- package/src/charts/scichart-builder.ts +109 -8
- package/src/index.ts +1 -0
- package/src/scichart-multiple-timeseries.ts +74 -0
- package/src/scichart-timeseries.ts +3 -54
- package/src/templates/index.ts +2 -1
- package/src/templates/scichart-multiple-timeseries.ts +87 -0
- package/things-scene.config.js +0 -2
- package/translations/en.json +3 -1
- package/translations/ja.json +3 -1
- package/translations/ko.json +3 -1
- package/translations/ms.json +3 -1
- package/translations/zh.json +3 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/cache/translations/system/en.json +0 -1
- package/cache/translations/system/ko.json +0 -1
- package/logs/connections-2024-07-08-22.log +0 -50
- package/logs/connections-2024-07-08-23.log +0 -100
- package/logs/connections-2024-07-09-15.log +0 -100
- package/logs/connections-2024-07-10-00.log +0 -50
- package/logs/connections-2024-07-10-10.log +0 -50
- package/logs/connections-2024-07-13-20.log +0 -200
- package/logs/connections-2024-07-13-21.log +0 -50
@@ -0,0 +1,87 @@
|
|
1
|
+
const icon = new URL('../../icons/scichart-multiple-timeseries.png', import.meta.url).href
|
2
|
+
|
3
|
+
function getRandomInRange(min: number, max: number) {
|
4
|
+
return Math.floor(Math.random() * (max - min + 1)) + min
|
5
|
+
}
|
6
|
+
|
7
|
+
// 랜덤 데이터를 생성하는 함수
|
8
|
+
function generateRandomData(count: number) {
|
9
|
+
const randomData = []
|
10
|
+
const startTimestamp = Math.floor(Date.now()) // 현재 시간을 Unix 타임스탬프로 설정
|
11
|
+
|
12
|
+
for (let i = 0; i < count; i++) {
|
13
|
+
const timestamp = startTimestamp + i * 360 * 30 * 1000 // 3초씩 증가하는 타임스탬프 설정
|
14
|
+
const randomCount = getRandomInRange(5, 35) // count 값을 5에서 35 사이로 랜덤 생성
|
15
|
+
const randomAverage = getRandomInRange(50, 150) // average 값을 50에서 150 사이로 랜덤 생성
|
16
|
+
|
17
|
+
randomData.push({
|
18
|
+
timestamp: timestamp,
|
19
|
+
count: randomCount,
|
20
|
+
average: randomAverage
|
21
|
+
})
|
22
|
+
}
|
23
|
+
|
24
|
+
return randomData
|
25
|
+
}
|
26
|
+
|
27
|
+
// 100개의 랜덤 데이터를 생성
|
28
|
+
const data = generateRandomData(100)
|
29
|
+
|
30
|
+
export default {
|
31
|
+
type: 'scichart-multiple-timeseries',
|
32
|
+
description: 'scichart-multiple-timeseries',
|
33
|
+
/* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
|
34
|
+
group: 'chartAndGauge',
|
35
|
+
icon,
|
36
|
+
model: {
|
37
|
+
type: 'scichart-multiple-timeseries',
|
38
|
+
left: 10,
|
39
|
+
top: 10,
|
40
|
+
width: 600,
|
41
|
+
height: 60,
|
42
|
+
data,
|
43
|
+
chart: {
|
44
|
+
type: 'timeseries',
|
45
|
+
data: {
|
46
|
+
datasets: [
|
47
|
+
{
|
48
|
+
dataKey: 'count',
|
49
|
+
label: '',
|
50
|
+
type: 'line',
|
51
|
+
borderWidth: 1,
|
52
|
+
color: 'green'
|
53
|
+
},
|
54
|
+
{
|
55
|
+
dataKey: 'average',
|
56
|
+
label: '',
|
57
|
+
type: 'line',
|
58
|
+
borderWidth: 1,
|
59
|
+
color: 'red'
|
60
|
+
}
|
61
|
+
],
|
62
|
+
labelDataKey: 'timestamp'
|
63
|
+
},
|
64
|
+
options: {
|
65
|
+
scales: {
|
66
|
+
xAxes: [
|
67
|
+
{
|
68
|
+
ticks: { beginAtZero: true }
|
69
|
+
}
|
70
|
+
],
|
71
|
+
yAxes: [
|
72
|
+
{
|
73
|
+
ticks: { beginAtZero: true }
|
74
|
+
}
|
75
|
+
]
|
76
|
+
},
|
77
|
+
legend: {
|
78
|
+
display: false
|
79
|
+
},
|
80
|
+
annotations: [],
|
81
|
+
tooltip: true
|
82
|
+
}
|
83
|
+
},
|
84
|
+
showOverview: true,
|
85
|
+
visibleSeries: ['count', 'average']
|
86
|
+
}
|
87
|
+
}
|
package/things-scene.config.js
CHANGED
package/translations/en.json
CHANGED
package/translations/ja.json
CHANGED
package/translations/ko.json
CHANGED
package/translations/ms.json
CHANGED
package/translations/zh.json
CHANGED