-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
140 lines (132 loc) · 4.43 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>D3 shape filler chart by Vizir</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.9/d3.min.js" type="text/javascript"></script>
<script src="d3_shape_filler_chart.js" type="text/javascript"></script>
<link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css?family=Open+Sans:400,700'>
<link rel="stylesheet" type="text/css" href="http://vizir.github.io/d3_shape_filler_chart/stylesheets/normalize.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://vizir.github.io/d3_shape_filler_chart/stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://vizir.github.io/d3_shape_filler_chart/stylesheets/github-light.css" media="screen">
<link rel="stylesheet" type="text/css" href="d3_shape_filler_chart.css">
</head>
<body>
<section class="page-header">
<h1 class="project-name">D3 shape filler chart</h1>
<h2 class="project-tagline">D3 Shape Filler Chart, a very simple chart created with a single stacked bar chart inside a Shape Filler body</h2>
<a href="https://github.com/Vizir/d3_shape_filler_chart" class="btn">View on GitHub</a>
<a href="https://github.com/Vizir/d3_shape_filler_chart/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/Vizir/d3_shape_filler_chart/tarball/master" class="btn">Download .tar.gz</a>
</section>
<section class="main-content">
<h1>
<a id="d3-shape-filler-chart" class="anchor" href="#d3-shape-filler-chart" aria-hidden="true"><span class="octicon octicon-link"></span></a>D3 Shape Filler Chart</h1>
<p>D3 Shape Filler Chart is a very simple chart created with a single stacked bar chart inside a Shape Filler body.</p>
<h2>
<a id="sample" class="anchor" href="#sample" aria-hidden="true"><span class="octicon octicon-link"></span></a> Usage / Samples</h2>
<h3> Custom shape </h3>
<div id="shape-filler-chart-container1"></div>
<script language="javascript">
(function() {
startShapeFillerChart("#shape-filler-chart-container1", [
{
value: 0.33,
label: "Javascript",
color: "#F7DF1E"
},
{
value: 0.22,
label: "Java",
color: "#E11F22"
},
{
value: 0.16,
label: "Python",
color: "#3572A1"
},
{
value: 0.14,
label: "PHP",
color: "#6B7EB9"
},
{
value: 0.13,
label: "Ruby",
color: "#AE1000"
},
], {
height: 300,
width: 300,
mouseoverColor: "#6B486B",
maskSvg: "github-icon.svg"
});
})();
</script>
<h3> Default shape 1 </h3>
<div id="shape-filler-chart-container2"></div>
<script language="javascript">
(function() {
startShapeFillerChart("#shape-filler-chart-container2", [
{
value: 0.51,
label: "diesel",
color: "#83ba43"
},
{
value: 0.21,
label: "gasoline",
color: "#4370ba"
},
{
value: 0.28,
label: "ethanol",
color: "#fbac1c"
},
], {
height: 300,
width: 200,
mouseoverColor: "#6B486B"
});
})();
</script>
<h3> Default shape 2 </h3>
<div id="shape-filler-chart-container3"></div>
<script language="javascript">
(function() {
startShapeFillerChart("#shape-filler-chart-container3", [
{
value: 0.39,
label: "water",
color: "#999999"
},
{
value: 0.21,
label: "oil",
color: "#666666"
},
{
value: 0.28,
label: "vaseline",
color: "#333333"
},
{
value: 0.12,
label: "grease",
color: "#000000"
},
], {
height: 300,
width: 200,
mouseoverColor: "#cccccc"
});
})();
</script>
<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/Vizir/d3_shape_filler_chart">D3 shape filler chart</a> is maintained by <a href="https://github.com/Vizir">Vizir</a>.</span>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>
</section>
</body>
</html>