forked from trumant/AwesomeChartJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathline.html
More file actions
73 lines (58 loc) · 2.09 KB
/
line.html
File metadata and controls
73 lines (58 loc) · 2.09 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
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
<!DOCTYPE html>
<html>
<head>
<title>AwesomeChartJS demo</title>
<style>
body{
background: #fff;
color: #333;
}
a, a:visited, a:link, a:active{
color: #333;
}
a:hover{
color: #00f;
}
.charts_container{
width: 900px;
height: 420px;
margin: 10px auto;
}
.chart_container_centered{
text-align: center;
width: 900px;
height: 420px;
margin: 10px auto;
}
.chart_container{
width: 400px;
height: 400px;
margin: 0px 25px;
float: left;
}
.footer{
font-size: small;
text-align: right;
}
</style>
<script type="application/javascript" src="awesomechart.js"> </script>
</head>
<body>
<div class="chart_container_centered">
<canvas id="chartCanvas1" width="600" height="400">
Your web-browser does not support the HTML 5 canvas element.
</canvas>
</div>
<p class="footer">Data source: <a href="http://gs.statcounter.com/#browser-ww-monthly-200912-201012-bar" target="_blank">StatCounter</a></p>
<script type="application/javascript">
var chart1 = new AwesomeChart('chartCanvas1');
chart1.title = "Worldwide browser market share: December 2010";
chart1.data = [51.62,31.3,10.06,4.27,1.96,0.78];
chart1.labels = ['IE','Firefox','Chrome','Safari','Opera','Other'];
chart1.colors = ['#006CFF', '#FF6600', '#34A038', '#945D59', '#93BBF4', '#F493B8'];
chart1.randomColors = true;
chart1.chartType = 'line';
chart1.draw();
</script>
</body>
</html>