isite 2024.8.3 → 2024.8.6
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/LICENSE +21 -21
- package/README.md +1384 -1387
- package/apps/charts/site_files/html/PieChart.html +35 -35
- package/apps/charts/site_files/html/PieChart2.html +35 -35
- package/apps/charts/site_files/html/XYChart.html +42 -42
- package/apps/charts/site_files/html/column.html +60 -60
- package/apps/charts/site_files/html/gauge.html +44 -44
- package/apps/charts/site_files/html/index.html +92 -92
- package/apps/charts/site_files/html/line-graph.html +42 -42
- package/apps/charts/site_files/html/pie-chart-rounded-corners.html +38 -38
- package/apps/charts/site_files/html/simple-3D-pie-chart.html +43 -43
- package/apps/charts/site_files/js/chart-animated.js +2 -2
- package/apps/charts/site_files/json/PieChart.json +41 -41
- package/apps/charts/site_files/json/PieChart2.json +23 -23
- package/apps/charts/site_files/json/XYChart.json +74 -74
- package/apps/charts/site_files/json/bar-chart.json +99 -99
- package/apps/charts/site_files/json/column-chart.json +80 -80
- package/apps/charts/site_files/json/gauge.json +36 -36
- package/apps/charts/site_files/json/line-graph.json +1867 -1867
- package/apps/charts/site_files/json/pie-chart-rounded-corners.json +42 -42
- package/apps/charts/site_files/json/simple-3D-pie-chart.json +50 -50
- package/apps/client-side/package-lock.json +5 -5
- package/apps/client-side/package.json +21 -21
- package/apps/client-side/site_files/css/bootstrap3.css +5 -5
- package/apps/client-side/site_files/css/bootstrap4.css +6 -6
- package/apps/client-side/site_files/css/bootstrap5.css +6 -6
- package/apps/client-side/site_files/css/checkbox.css +125 -125
- package/apps/client-side/site_files/css/font-awesome.css +4616 -4616
- package/apps/client-side/site_files/css/font-awesome.min.css +4 -4
- package/apps/client-side/site_files/css/fonts.css +85 -85
- package/apps/client-side/site_files/css/help.css +51 -51
- package/apps/client-side/site_files/css/main-menu.css +66 -66
- package/apps/client-side/site_files/css/print.css +144 -144
- package/apps/client-side/site_files/css/prism.css +139 -139
- package/apps/client-side/site_files/css/progress.css +7 -7
- package/apps/client-side/site_files/css/radio.css +103 -103
- package/apps/client-side/site_files/css/scrollbar.css +13 -13
- package/apps/client-side/site_files/css/semantic.css +363 -363
- package/apps/client-side/site_files/css/table.css +87 -87
- package/apps/client-side/site_files/css/treeview.css +84 -84
- package/apps/client-side/site_files/css/ui.css +28 -28
- package/apps/client-side/site_files/css/video-js.min.css +1 -0
- package/apps/client-side/site_files/fonts/fontawesome-webfont.svg +2671 -2671
- package/apps/client-side/site_files/fonts/glyphicons-halflings-regular.svg +287 -287
- package/apps/client-side/site_files/fonts/icons.svg +684 -684
- package/apps/client-side/site_files/js/Youtube.min.js +1 -0
- package/apps/client-side/site_files/js/angular-animate.js +4179 -4179
- package/apps/client-side/site_files/js/angular.js +36599 -36599
- package/apps/client-side/site_files/js/angular.min.js +351 -351
- package/apps/client-side/site_files/js/angular.min.js.map +8 -8
- package/apps/client-side/site_files/js/barcode.js +1 -1
- package/apps/client-side/site_files/js/base64.js +319 -319
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +1456 -1456
- package/apps/client-side/site_files/js/bootstrap3.js +6 -6
- package/apps/client-side/site_files/js/bootstrap4.js +6 -6
- package/apps/client-side/site_files/js/bootstrap5.js +6 -6
- package/apps/client-side/site_files/js/custom.js +149 -149
- package/apps/client-side/site_files/js/directive.min.js +1 -1
- package/apps/client-side/site_files/js/hijri.js +965 -965
- package/apps/client-side/site_files/js/jquery.js +2 -2
- package/apps/client-side/site_files/js/moment.js +4511 -4511
- package/apps/client-side/site_files/js/prism.js +6 -6
- package/apps/client-side/site_files/js/qrcode.js +1398 -1398
- package/apps/client-side/site_files/js/semantic.js +10 -10
- package/apps/client-side/site_files/js/video.min.js +53 -0
- package/apps/client-side/site_files/js/xlsx.js +23 -23
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/brand-icons.svg +1008 -1008
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/icons.svg +1518 -1518
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/outline-icons.svg +366 -366
- package/apps/client-side/site_files/webfonts/fa-brands-400.svg +3717 -3717
- package/apps/client-side/site_files/webfonts/fa-regular-400.svg +801 -801
- package/apps/client-side/site_files/webfonts/fa-solid-900.svg +5034 -5034
- package/apps/security/README.md +12 -12
- package/apps/security/app.js +288 -288
- package/apps/security/libs/notifications.js +89 -89
- package/apps/security/site_files/html/add_modal.html +36 -36
- package/apps/security/site_files/html/content.html +36 -36
- package/apps/security/site_files/html/delete_modal.html +31 -31
- package/apps/security/site_files/html/head.html +7 -7
- package/apps/security/site_files/html/index.html +80 -80
- package/apps/security/site_files/html/login_modal.html +24 -24
- package/apps/security/site_files/html/logout_modal.html +21 -21
- package/apps/security/site_files/html/navbar.html +8 -8
- package/apps/security/site_files/html/register_modal.html +32 -32
- package/apps/security/site_files/html/update_modal.html +28 -28
- package/apps/security/site_files/html/view.html +74 -74
- package/apps/security/site_files/html/view_modal.html +32 -32
- package/apps/security/site_files/js/app.js +1 -1
- package/apps/security/site_files/js/index.js +278 -278
- package/apps/security/site_files/js/login.js +35 -35
- package/apps/security/site_files/js/logout.js +22 -22
- package/apps/security/site_files/js/navbar.js +26 -26
- package/apps/security/site_files/js/register.js +30 -30
- package/apps/security/site_files/json/permissions.json +7 -7
- package/apps/security/site_files/json/roles.json +33 -33
- package/apps/security/site_files/json/words.json +28 -28
- package/gulpfile.js +17 -17
- package/index.js +1 -1
- package/isite.postman_collection.json +7 -7
- package/isite_files/css/bootstrap.css +5 -5
- package/isite_files/css/font-awesome.css +4 -4
- package/isite_files/css/prism.css +139 -139
- package/isite_files/fonts/fontawesome-webfont.svg +2671 -2671
- package/isite_files/fonts/glyphicons-halflings-regular.svg +287 -287
- package/isite_files/html/files.html +9 -9
- package/isite_files/html/head.html +12 -12
- package/isite_files/html/index.html +30 -30
- package/isite_files/html/installing.html +27 -27
- package/isite_files/html/navbar.html +51 -51
- package/isite_files/html/routes.html +13 -13
- package/isite_files/html/sessions.html +13 -13
- package/isite_files/html/vars.html +9 -9
- package/isite_files/js/angular.js +334 -334
- package/isite_files/js/bootstrap.js +6 -6
- package/isite_files/js/custom.js +149 -149
- package/isite_files/js/jquery.js +4 -4
- package/isite_files/js/prism.js +6 -6
- package/lib/README.md +1 -1
- package/lib/collection.js +111 -17
- package/lib/cookie.js +81 -81
- package/lib/dashboard.js +189 -189
- package/lib/eval.js +48 -0
- package/lib/mongodb.js +819 -686
- package/lib/parser.js +910 -910
- package/lib/security.js +61 -61
- package/lib/session.js +153 -158
- package/lib/sessions.js +14 -30
- package/lib/ws.js +2 -2
- package/object-options/index.js +3 -3
- package/object-options/lib/fn.js +1 -1
- package/object-options/lib/isite.code-workspace +10 -10
- package/package.json +58 -55
- package/ssl/create_ssl.sh +3 -3
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>
|
|
8
|
-
Object In Array (PieSeries)
|
|
9
|
-
</title>
|
|
10
|
-
<link rel="stylesheet" href="css/style.css">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<div id="chartdiv" ></div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<script src="./js/chart-core.js"></script>
|
|
23
|
-
<script src="./js/charts.js"></script>
|
|
24
|
-
<script src="./js/chart-animated.js"></script>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
am4core.useTheme(am4themes_animated);
|
|
29
|
-
|
|
30
|
-
fetch('./json/PieChart.json').then(res => res.json()).then(obj=>{
|
|
31
|
-
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.PieChart);
|
|
32
|
-
})
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<title>
|
|
8
|
+
Object In Array (PieSeries)
|
|
9
|
+
</title>
|
|
10
|
+
<link rel="stylesheet" href="css/style.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<div id="chartdiv" ></div>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<script src="./js/chart-core.js"></script>
|
|
23
|
+
<script src="./js/charts.js"></script>
|
|
24
|
+
<script src="./js/chart-animated.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
am4core.useTheme(am4themes_animated);
|
|
29
|
+
|
|
30
|
+
fetch('./json/PieChart.json').then(res => res.json()).then(obj=>{
|
|
31
|
+
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.PieChart);
|
|
32
|
+
})
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
</body>
|
|
36
36
|
</html>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>
|
|
8
|
-
Object In Array (PieSeries)
|
|
9
|
-
</title>
|
|
10
|
-
<link rel="stylesheet" href="css/style.css">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<div id="chartdiv" ></div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<script src="./js/chart-core.js"></script>
|
|
23
|
-
<script src="./js/charts.js"></script>
|
|
24
|
-
<script src="./js/chart-animated.js"></script>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
am4core.useTheme(am4themes_animated);
|
|
29
|
-
|
|
30
|
-
fetch('./json/PieChart2.json').then(res => res.json()).then(obj=>{
|
|
31
|
-
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.PieChart);
|
|
32
|
-
})
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<title>
|
|
8
|
+
Object In Array (PieSeries)
|
|
9
|
+
</title>
|
|
10
|
+
<link rel="stylesheet" href="css/style.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<div id="chartdiv" ></div>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<script src="./js/chart-core.js"></script>
|
|
23
|
+
<script src="./js/charts.js"></script>
|
|
24
|
+
<script src="./js/chart-animated.js"></script>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
am4core.useTheme(am4themes_animated);
|
|
29
|
+
|
|
30
|
+
fetch('./json/PieChart2.json').then(res => res.json()).then(obj=>{
|
|
31
|
+
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.PieChart);
|
|
32
|
+
})
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
</body>
|
|
36
36
|
</html>
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
-
<title>
|
|
8
|
-
Object In Array (PieSeries)
|
|
9
|
-
</title>
|
|
10
|
-
<link rel="stylesheet" href="css/style.css">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<div id="chartdiv" ></div>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<script src="./js/chart-core.js"></script>
|
|
22
|
-
<script src="./js/charts.js"></script>
|
|
23
|
-
<script src="./js/chart-animated.js"></script>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<!-- Chart code -->
|
|
30
|
-
<script>
|
|
31
|
-
|
|
32
|
-
am4core.useTheme(am4themes_animated);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
fetch('./json/XYChart.json').then(res => res.json()).then(obj=>{
|
|
36
|
-
// console.log(obj);
|
|
37
|
-
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.XYChart);
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
7
|
+
<title>
|
|
8
|
+
Object In Array (PieSeries)
|
|
9
|
+
</title>
|
|
10
|
+
<link rel="stylesheet" href="css/style.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<div id="chartdiv" ></div>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<script src="./js/chart-core.js"></script>
|
|
22
|
+
<script src="./js/charts.js"></script>
|
|
23
|
+
<script src="./js/chart-animated.js"></script>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<!-- Chart code -->
|
|
30
|
+
<script>
|
|
31
|
+
|
|
32
|
+
am4core.useTheme(am4themes_animated);
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
fetch('./json/XYChart.json').then(res => res.json()).then(obj=>{
|
|
36
|
+
// console.log(obj);
|
|
37
|
+
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.XYChart);
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
</body>
|
|
43
43
|
</html>
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
-
<title>
|
|
9
|
-
Object In Array (PieSeries)
|
|
10
|
-
</title>
|
|
11
|
-
<style>
|
|
12
|
-
#chartdiv {
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 800px;
|
|
15
|
-
margin: auto;
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
g[transform="translate(0,779)"] {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
g[aria-labelledby="id-47-title"]{
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
</style>
|
|
26
|
-
</head>
|
|
27
|
-
|
|
28
|
-
<body>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<div id="chartdiv"></div>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<script src="/js/chart.js"></script>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
|
|
42
|
-
fetch('./json/column-chart.json').then(res => res.json()).then(obj=>{
|
|
43
|
-
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.XYChart);
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
site.create_chart({
|
|
48
|
-
type : 'xy',
|
|
49
|
-
x : 'count',
|
|
50
|
-
y : 'application',
|
|
51
|
-
data : data,
|
|
52
|
-
selector_id : 'chartdiv'
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</body>
|
|
60
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
+
<title>
|
|
9
|
+
Object In Array (PieSeries)
|
|
10
|
+
</title>
|
|
11
|
+
<style>
|
|
12
|
+
#chartdiv {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 800px;
|
|
15
|
+
margin: auto;
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
g[transform="translate(0,779)"] {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
g[aria-labelledby="id-47-title"]{
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
</head>
|
|
27
|
+
|
|
28
|
+
<body>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<div id="chartdiv"></div>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
<script src="/js/chart.js"></script>
|
|
39
|
+
|
|
40
|
+
<script>
|
|
41
|
+
|
|
42
|
+
fetch('./json/column-chart.json').then(res => res.json()).then(obj=>{
|
|
43
|
+
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.XYChart);
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
site.create_chart({
|
|
48
|
+
type : 'xy',
|
|
49
|
+
x : 'count',
|
|
50
|
+
y : 'application',
|
|
51
|
+
data : data,
|
|
52
|
+
selector_id : 'chartdiv'
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</body>
|
|
60
|
+
|
|
61
61
|
</html>
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
-
<title>
|
|
9
|
-
Object In Array (PieSeries)
|
|
10
|
-
</title>
|
|
11
|
-
<link rel="stylesheet" href="css/style.css">
|
|
12
|
-
</head>
|
|
13
|
-
|
|
14
|
-
<body>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<div id="chartdiv"></div>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<script src="./js/chart-core.js"></script>
|
|
25
|
-
<script src="./js/charts.js"></script>
|
|
26
|
-
<script src="./js/chart-animated.js"></script>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<script>
|
|
30
|
-
// Set theme
|
|
31
|
-
am4core.useTheme(am4themes_animated);
|
|
32
|
-
|
|
33
|
-
// Create chart
|
|
34
|
-
fetch('./json/gauge.json').then(res => res.json()).then(obj => {
|
|
35
|
-
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.GaugeChart);
|
|
36
|
-
setInterval(function () {
|
|
37
|
-
var hand = chart.hands.getIndex(0);
|
|
38
|
-
hand.showValue(Math.random() * 100, 1000, am4core.ease.cubicOut);
|
|
39
|
-
}, 2000);
|
|
40
|
-
})
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
</body>
|
|
44
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
+
<title>
|
|
9
|
+
Object In Array (PieSeries)
|
|
10
|
+
</title>
|
|
11
|
+
<link rel="stylesheet" href="css/style.css">
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
<body>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<div id="chartdiv"></div>
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script src="./js/chart-core.js"></script>
|
|
25
|
+
<script src="./js/charts.js"></script>
|
|
26
|
+
<script src="./js/chart-animated.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
// Set theme
|
|
31
|
+
am4core.useTheme(am4themes_animated);
|
|
32
|
+
|
|
33
|
+
// Create chart
|
|
34
|
+
fetch('./json/gauge.json').then(res => res.json()).then(obj => {
|
|
35
|
+
var chart = am4core.createFromConfig(obj, "chartdiv", am4charts.GaugeChart);
|
|
36
|
+
setInterval(function () {
|
|
37
|
+
var hand = chart.hands.getIndex(0);
|
|
38
|
+
hand.showValue(Math.random() * 100, 1000, am4core.ease.cubicOut);
|
|
39
|
+
}, 2000);
|
|
40
|
+
})
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
</body>
|
|
44
|
+
|
|
45
45
|
</html>
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
-
<link rel="stylesheet" href="/x-css/site.css">
|
|
9
|
-
<link rel="stylesheet" href="/x-css/theme_paper.css">
|
|
10
|
-
<title>
|
|
11
|
-
Object In Array (PieSeries)
|
|
12
|
-
</title>
|
|
13
|
-
<style>
|
|
14
|
-
#chart1 {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 500px;
|
|
17
|
-
}
|
|
18
|
-
#chart2 {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 500px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
g[aria-labelledby="id-47-title"]{
|
|
25
|
-
display: none;
|
|
26
|
-
}
|
|
27
|
-
g[aria-labelledby="id-176-title"]{
|
|
28
|
-
display: none;
|
|
29
|
-
}
|
|
30
|
-
</style>
|
|
31
|
-
</head>
|
|
32
|
-
|
|
33
|
-
<body>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<div class="row">
|
|
37
|
-
<div class="col6"><div id="chart1"></div></div>
|
|
38
|
-
<div class="col6"> <div id="chart2"></div></div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<script src="/x-js/charts.js"></script>
|
|
48
|
-
|
|
49
|
-
<script>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var data =[{
|
|
53
|
-
"item": "item 1",
|
|
54
|
-
"count": 500
|
|
55
|
-
}, {
|
|
56
|
-
"item": "item 2",
|
|
57
|
-
"count": 200
|
|
58
|
-
}, {
|
|
59
|
-
"item": "item 3",
|
|
60
|
-
"count": 700
|
|
61
|
-
}, {
|
|
62
|
-
"item": "item 4",
|
|
63
|
-
"count": 300
|
|
64
|
-
}, {
|
|
65
|
-
"item": "item 5",
|
|
66
|
-
"count": 800
|
|
67
|
-
}, {
|
|
68
|
-
"item": "item 6",
|
|
69
|
-
"count": 60
|
|
70
|
-
}]
|
|
71
|
-
|
|
72
|
-
site.create_chart({
|
|
73
|
-
type : 'xy',
|
|
74
|
-
x : 'item',
|
|
75
|
-
y : 'count',
|
|
76
|
-
data : data,
|
|
77
|
-
selector : '#chart1'
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
site.create_chart({
|
|
81
|
-
type : 'yx',
|
|
82
|
-
y : 'item',
|
|
83
|
-
x : 'count',
|
|
84
|
-
data : data,
|
|
85
|
-
selector : '#chart2'
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</script>
|
|
90
|
-
|
|
91
|
-
</body>
|
|
92
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
8
|
+
<link rel="stylesheet" href="/x-css/site.css">
|
|
9
|
+
<link rel="stylesheet" href="/x-css/theme_paper.css">
|
|
10
|
+
<title>
|
|
11
|
+
Object In Array (PieSeries)
|
|
12
|
+
</title>
|
|
13
|
+
<style>
|
|
14
|
+
#chart1 {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 500px;
|
|
17
|
+
}
|
|
18
|
+
#chart2 {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 500px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
g[aria-labelledby="id-47-title"]{
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
g[aria-labelledby="id-176-title"]{
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
31
|
+
</head>
|
|
32
|
+
|
|
33
|
+
<body>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<div class="row">
|
|
37
|
+
<div class="col6"><div id="chart1"></div></div>
|
|
38
|
+
<div class="col6"> <div id="chart2"></div></div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
<script src="/x-js/charts.js"></script>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var data =[{
|
|
53
|
+
"item": "item 1",
|
|
54
|
+
"count": 500
|
|
55
|
+
}, {
|
|
56
|
+
"item": "item 2",
|
|
57
|
+
"count": 200
|
|
58
|
+
}, {
|
|
59
|
+
"item": "item 3",
|
|
60
|
+
"count": 700
|
|
61
|
+
}, {
|
|
62
|
+
"item": "item 4",
|
|
63
|
+
"count": 300
|
|
64
|
+
}, {
|
|
65
|
+
"item": "item 5",
|
|
66
|
+
"count": 800
|
|
67
|
+
}, {
|
|
68
|
+
"item": "item 6",
|
|
69
|
+
"count": 60
|
|
70
|
+
}]
|
|
71
|
+
|
|
72
|
+
site.create_chart({
|
|
73
|
+
type : 'xy',
|
|
74
|
+
x : 'item',
|
|
75
|
+
y : 'count',
|
|
76
|
+
data : data,
|
|
77
|
+
selector : '#chart1'
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
site.create_chart({
|
|
81
|
+
type : 'yx',
|
|
82
|
+
y : 'item',
|
|
83
|
+
x : 'count',
|
|
84
|
+
data : data,
|
|
85
|
+
selector : '#chart2'
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</script>
|
|
90
|
+
|
|
91
|
+
</body>
|
|
92
|
+
|
|
93
93
|
</html>
|