-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
172 lines (158 loc) · 5.37 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="stylesheets/borderchart.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="javascripts/jquery.borderchart.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Borderchart by danielsimons1</title>
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1>Borderchart</h1>
<h2>jQuery Charting Plugin. You supply the data and borderchart builds a chart in the form of a colored border around your html element. </h2>
</header>
<section id="downloads" class="clearfix">
<a href="https://github.com/danielsimons1/borderchart/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
<a href="https://github.com/danielsimons1/borderchart/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
<a href="https://github.com/danielsimons1/borderchart" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>
<hr>
<section id="main_content">
<h3>
<a name="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages"><span class="octicon octicon-link"></span></a>Get Started</h3>
<p>Invoke A Default border chart on an image element:</p>
<h4>HTML:</h4>
<pre><code><img class="borderchart" src="examples/profile.jpg" style="height:150px;width:220px">
</code></pre>
<h4>Javascript:</h4>
<pre><code>$(function() {
$('.borderchart').borderchart();
});</code></pre>
<p><img class="borderchart" src="examples/profile.jpg" style="height:150px;width:220px"></p>
<script type="text/javascript">
$(function() {
$('.borderchart').borderchart();
});
</script>
<p style="clear:both;margin-top:100px"></p>
<h3>
<a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>Data Labels</h3>
<div style="margin-bottom:20px"><div class="labeledborderchart"><div style="padding:10px">
<p>This border chart has labels that appear when you hover over them. The labels can be passed into borderchart via the dataset option</p>
<p>Note: The content within the border chart can be any html that you'd like</p>
</div></div>
<p style="clear:both;margin-top:100px"></p>
<p>Instantiation of this chart is as follows:</p>
<pre><code>$('.labeledborderchart').borderchart({
dataset: [{
data: 10,
color: '#2c3969',
label: 'Dark Blue'
}, {
data: 10,
color: '#415989',
label: 'Blue'
}, {
data: 10,
color: '#a4bfd2',
label: 'Light Blue'
}, {
data: 10,
color: '#a4c892',
label: 'Olive'
}, {
data: 10,
color: '#bce0ae',
label: 'Light Green'
}, {
data: 10,
color: '#ffac29',
label: 'Orange'
}, {
data: 10,
color: '#edf0f2',
label: 'White'
}, {
data: 10,
color: '#f2e8da',
label: 'Tan'
}, {
data: 10,
color: '#c6beb4',
label: 'Gray'
}, {
data: 10,
color: '#e74e34',
label: 'Red'
}],
strokewidth:25
});</code></pre>
</div>
<script type="text/javascript">
$(function() {
$('.labeledborderchart').borderchart({
strokewidth: 55,
dataset: [{
data: 10,
color: '#2c3969',
label: 'Dark Blue'
}, {
data: 10,
color: '#415989',
label: 'Blue'
}, {
data: 10,
color: '#a4bfd2',
label: 'Light Blue'
}, {
data: 10,
color: '#a4c892',
label: 'Olive'
}, {
data: 10,
color: '#bce0ae',
label: 'Light Green'
}, {
data: 10,
color: '#ffac29',
label: 'Orange'
}, {
data: 10,
color: '#edf0f2',
label: 'White'
}, {
data: 10,
color: '#f2e8da',
label: 'Tan'
}, {
data: 10,
color: '#c6beb4',
label: 'Gray'
}, {
data: 10,
color: '#e74e34',
label: 'Red'
}]
});
});
</script>
</section>
<footer>
Borderchart is maintained by <a href="https://github.com/danielsimons1">danielsimons1</a><br>
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.
</footer>
</div>
</div>
</body>
</html>