-
Notifications
You must be signed in to change notification settings - Fork 0
/
charts.html
83 lines (76 loc) · 3.07 KB
/
charts.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="pl">
<head>
<meta name="description"
content="Prosta strona internetowa używająca Chart.js do przedstawienia wygenerowanych danych w JS na podstawie paru zasad" />
<meta name="keywords" content="dane prezentacja analiza" />
<meta name="author" content="Adam" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link type="text/css" rel="stylesheet" href="css/index.css" />
<link type="text/css" rel="stylesheet" href="css/charts.css" />
<link href="https://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script>
let tab2 = [];
</script>
<title>TI-frontend</title>
</head>
<body>
<div id="top-pers">
<nav class="mynav" id="mynavb">
<a href="index.html">Strona główna</a>
<a href="data.html">Generowanie danych</a>
<a href="charts.html" class="active">Charts</a>
<a href="chartsjs.html">ChartJS</a>
<a href="kontakt.html">Kontakt</a>
<a href="javascript:void(0);" class="icon">
<i class="fa fa-bars"></i>
</a>
</nav>
</div>
<div class="Vignette mainPosition">
<div class="chart-main">
<div class="form-input">
<label for="p">Szansa: </label><input id="p" name="p" type="number" value="0.02" step="0.01" /><br />
<label for="reset">Reset: </label><input id="reset" name="reset" type="number" value="0.5" min="0.01"
max="0.99" step="0.01" /><br />
<button id="submit" onclick="
if(validateNumbers()){
tab2 = simulate();
draw();
}
">
Generuj
</button>
</div>
<div class="canvas-container" id="bar-chart">
<canvas id="myChart"></canvas>
</div>
<div class="canvas-container" id="bar-chart-small">
<canvas id="myChartSmall"></canvas>
</div>
</div>
</div>
<div class="footer Vignette">
<div class="footer-content">
<h3>Kontakt</h3>
<p><strong>Adres email</strong>: <a href="mailto:adam@awaclawczyk.xyz">A. Wacławczyk</a>
</p>
<p><strong>Github</strong>: <a href="https://github.com/varmeusz">Varmeusz</a></p>
</div>
<div class="logo-container"><a id="chartjslogo" href="https://www.chartjs.org/">
<figure><img src="images/chartjs-logo.svg" alt="logo-chartjs">
<figcaption style="text-align: center;">ChartJS</figcaption>
</figure>
</a></div>
<div class="copyright-me">© A. Wacławczyk</div>
</div>
</div>
<script src="js/skrypt1.js"></script>
<script src="js/genData.js"></script>
<script src="js/validate.js"></script>
</body>
</html>