-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
58 lines (55 loc) · 1.12 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<svg id="SVGChart" xmlns="http://www.w3.org/2000/svg">
</svg>
<script src="dist/svg-progress-chart.js"></script>
<script>
var chart = new SVGProgressChart("SVGChart", {
width: window.document.body.clientWidth,
height: 70,
time: 450,
data: [{
type: "positive",
width: 10,
x:44
},
{
type: "neutral",
width: 10,
x:46
},
{
type: "negative",
width: 20,
x:48
}, {
type: "positive",
width: 5
}]
});
/*
setTimeout(function(){
chart.setData([{
width: 20,
x:89
}])
},5000)
setTimeout(function(){
chart.setData([{
width: 50,
type: "positive",
x:0
},{
width: 30,
x:70
}])
},10000)*/
</script>
</body>
</html>