-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwykresy.html
More file actions
44 lines (28 loc) · 1.35 KB
/
wykresy.html
File metadata and controls
44 lines (28 loc) · 1.35 KB
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
<head>
<script src="library/chart/chart.js/dist/Chart.js"></script>
<script src="networktables/networktables.js"></script>
<script src="chart.js"></script>
</head>
<body >
<div id="Div1" style="float:left; width: 500px; overflow:auto; border: 2px solid black;">
<canvas id="myChart1" width="500" height="250"></canvas>
</div>
<div id="Div2" style="float:left; width: 500px; overflow:auto; border: 2px solid black;">
<canvas id="myChart2" width="500" height="250"></canvas>
</div>
<div id="Div3" style="float:left; width: 500px; overflow:auto; border: 2px solid black;">
<canvas id="myChart3" width="500" height="250"></canvas>
</div>
<div id="Div4" style="float:left; width: 500px; overflow:auto; border: 2px solid black;">
<canvas id="myChart4" width="500" height="250"></canvas>
</div>
<button id="button1" onclick="addData(myPieChart,5,50)">przycisk</button>
<script>
var chart1 = createEmptyChart("myChart1","silnik 1",'rgba(5, 100, 200, 0.6)');
var chart2 = createEmptyChart("myChart2","silnik 2",'rgba(5, 100, 200, 1)');
var chart3 = createEmptyChart("myChart3","silnik 3",'rgba(5, 100, 200, 0.6)');
var chart4 = createEmptyChart("myChart4","silnik 4",'rgba(5, 100, 200, 1)');
</script>
</body>
<!-- <script src="library/networktables/networktables.js"></script> -->
<!-- <script src="ui.js"></script> -->