-
Notifications
You must be signed in to change notification settings - Fork 0
/
inline-charts.php
374 lines (327 loc) · 16 KB
/
inline-charts.php
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
<?php
//initilize the page
require_once("inc/init.php");
//require UI configuration (nav, ribbon, etc.)
require_once("inc/config.ui.php");
/*---------------- PHP Custom Scripts ---------
YOU CAN SET CONFIGURATION VARIABLES HERE BEFORE IT GOES TO NAV, RIBBON, ETC.
E.G. $page_title = "Custom Title" */
$page_title = "Inline Charts";
/* ---------------- END PHP Custom Scripts ------------- */
//include header
//you can add your custom css in $page_css array.
//Note: all css files are inside css/ folder
$page_css[] = "your_style.css";
include("inc/header.php");
//include left panel (navigation)
//follow the tree in inc/config.ui.php
$page_nav["graphs"]["sub"]["inline"]["active"] = true;
include("inc/nav.php");
?>
<!-- ==========================CONTENT STARTS HERE ========================== -->
<!-- MAIN PANEL -->
<div id="main" role="main">
<?php
//configure ribbon (breadcrumbs) array("name"=>"url"), leave url empty if no url
//$breadcrumbs["New Crumb"] => "http://url.com"
$breadcrumbs["Graphs"] = "";
include("inc/ribbon.php");
?>
<!-- MAIN CONTENT -->
<div id="content">
<div class="row">
<div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
<h1 class="page-title txt-color-blueDark">
<i class="fa fa-bar-chart-o fa-fw "></i>
Graph
<span>>
Inline Charts
</span>
</h1>
</div>
<div class="col-xs-12 col-sm-5 col-md-5 col-lg-8">
<ul id="sparks" class="">
<li class="sparks-info">
<h5> My Income <span class="txt-color-blue">$47,171</span></h5>
<div class="sparkline txt-color-blue hidden-mobile hidden-md hidden-sm">
1300, 1877, 2500, 2577, 2000, 2100, 3000, 2700, 3631, 2471, 2700, 3631, 2471
</div>
</li>
<li class="sparks-info">
<h5> Site Traffic <span class="txt-color-purple"><i class="fa fa-arrow-circle-up" data-rel="bootstrap-tooltip" title="Increased"></i> 45%</span></h5>
<div class="sparkline txt-color-purple hidden-mobile hidden-md hidden-sm">
110,150,300,130,400,240,220,310,220,300, 270, 210
</div>
</li>
<li class="sparks-info">
<h5> Site Orders <span class="txt-color-greenDark"><i class="fa fa-shopping-cart"></i> 2447</span></h5>
<div class="sparkline txt-color-greenDark hidden-mobile hidden-md hidden-sm">
110,150,300,130,400,240,220,310,220,300, 270, 210
</div>
</li>
</ul>
</div>
</div>
<!-- row -->
<div class="row">
<div class="col-sm-12">
<div class="well">
<h1>JQuery <span class="semi-bold">Sparklines</span> <small>Modified for easier usage</small></h1>
<p>Sparklines are light weight, easy to use, inline charts. We have modified sparklines so you can use it with just <code>data-*</code> values, without the use of javascript</p>
<br>
<div class="row">
<div class="col-sm-6">
<ul>
<li>
Inline Graphs
<span class="sparkline" data-sparkline-type="line" data-sparkline-width="50px" data-sparkline-height="18px">90,30,60,40,60,70,50,40,70,60,90,50</span>
also change width, height, and color
<span class="sparkline txt-color-green" data-sparkline-type="line" data-sparkline-width="80px" data-fill-color="transparent" data-sparkline-spotradius="3" data-sparkline-height="15px">4,1,5,7,9,9,8,7,6,6,4,7,8,4,3,2,2,5,6,7</span>
<p class="note">
<span data-sparkline-type="line" data-sparkline-width="50px" data-sparkline-height="18px">90,30,60,...</span>
</p>
</li>
<li>
Compose inline charts
<span class="sparkline display-inline" data-sparkline-type="compositeline" data-sparkline-barcolor="#aafaaf" data-sparkline-linecolor="#ed1c24" data-sparkline-height="15px" data-sparkline-line-val="[6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6]" data-sparkline-bar-val="[4,1,5,7,9,9,8,7,6,6,4,7,8,4,3,2,2,5,6,7]"></span>
and Composite Bar charts
<span class="sparkline display-inline" data-sparkline-type="compositebar" data-sparkline-height="15px" data-sparkline-color-bottom="#57889C" data-sparkline-barcolor="#aafaaf" data-sparkline-line-width="1.5" data-sparkline-linecolor="#ed1c24" data-sparkline-line-val="[6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6]" data-sparkline-bar-val="[4,1,5,7,9,9,8,7,6,6,4,7,8,4]"></span>
<p class="note">
<span data-sparkline-type="compositeline" data-sparkline-height="15px" data-sparkline-line-val="[9,8,7...]" data-sparkline-bar-val="[4,1,5...]"></span>
</p>
</li>
<li>
Discrete bars <span class="sparkline txt-color-blue" data-sparkline-type="discrete" data-sparkline-height="18px" data-sparkline-width="30">4,6,7,7,4,3,2,1,4,4</span>
and with threshhold
<span class="sparkline txt-color-blue" data-sparkline-type="discrete" data-sparkline-height="18px" data-sparkline-width="30" data-sparkline-threshold="4">4,6,7,7,4,3,2,1,4,4</span>
<p class="note">
<span data-sparkline-type="discrete" data-sparkline-height="18px" data-sparkline-width="30" data-sparkline-threshold="4">4,6,7,...</span>
</p>
</li>
</ul>
</div>
<div class="col-sm-6">
<ul>
<li>
Nifty Bar Charts
<span class="sparkline txt-color-blue" data-sparkline-type="bar" data-sparkline-width="50px" data-sparkline-barwidth="3" data-sparkline-height="15px">50,40,70,60,90,50</span>
with negatives and thicker bars
<span class="sparkline txt-color-blue" data-sparkline-type="bar" data-sparkline-width="50px" data-sparkline-barwidth="5" data-sparkline-height="18px">5,6,7,2,0,-4,-2,4</span> and stacked bars
<span class="sparkline txt-color-blue" data-sparkline-type="bar" data-sparkline-width="50px" data-sparkline-barwidth="5" data-sparkline-height="15px">1:3, 5:3, 2:7,9:1,5:6</span>
<p class="note">
<span data-sparkline-type="bar" data-sparkline-width="50px" data-sparkline-bar data-sparkline-height="15px">50,40,70,...</span>
</p>
</li>
<li>
Box plots
<span class="sparkline display-inline" data-sparkline-type="bullet" data-sparkline-height="14px" data-sparkline-bulletrange-color='["#CCD7DB", "#92A2A8", "#57889C"]' data-sparkline-performance-color="#A4CBDB" data-sparkline-bullet-color="#143644">10,12,12,9,7</span>
and bullet plots
<span class="sparkline display-inline" data-sparkline-type="box" data-sparkline-height="14px">4,27,34,52,54,59,61,68,78,82,85,87,91,93,100</span>
<p class="note">
<span data-sparkline-type="compositebar" data-sparkline-line-width="1.5" data-sparkline-line-val="[6,4,7...]" data-sparkline-bar-val="[4,1,5...]"></span>
</p>
</li>
<li>
Pie Charts <span class="sparkline display-inline" data-sparkline-type="pie" data-sparkline-offset="90" data-sparkline-piesize="18px">3,5,2</span>
<p class="note">
<span data-sparkline-type="pie" data-sparkline-offset="90" data-sparkline-piesize="18px">3,5,2</span>
</p>
</li>
</ul>
</div>
</div>
<div class="row">
<h2 class="row-seperator-header"><small>Examples below are done <strong>without</strong> any javascript!</small></h2>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="well well-sm well-light">
<h4 class="txt-color-blue">Pie <span class="semi-bold">Chart</span> <a href="javascript:void(0);" class="pull-right"><i class="fa fa-refresh"></i></a></h4>
<br>
<div class="text-center">
<div class="sparkline txt-color-blue display-inline"
data-sparkline-type="pie"
data-sparkline-offset="90"
data-sparkline-piesize="75px">3,5,2</div>
<div class="sparkline txt-color-blue display-inline"
data-sparkline-type="pie"
data-sparkline-offset="90"
data-sparkline-piesize="75px">30,20,15,35</div>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="well well-sm well-light padding-10">
<h4 class="txt-color-green">Composite <span class="semi-bold">Chart</span> <a href="javascript:void(0);" class="pull-right txt-color-green"><i class="fa fa-refresh"></i></a></h4>
<br>
<div class="sparkline"
data-sparkline-type="compositeline"
data-sparkline-spotradius-top="5"
data-sparkline-color-top="#3a6965"
data-sparkline-line-width-top="3"
data-sparkline-color-bottom="#2b5c59"
data-sparkline-spot-color="#2b5c59"
data-sparkline-minspot-color-top="#97bfbf"
data-sparkline-maxspot-color-top="#c2cccc"
data-sparkline-highlightline-color-top="#cce8e4"
data-sparkline-highlightspot-color-top="#9dbdb9"
data-sparkline-width="96%"
data-sparkline-height="78px"
data-sparkline-line-val="[6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6]"
data-sparkline-bar-val="[4,1,5,7,9,9,8,7,6,6,4,7,8,4,3,2,2,5,6,7]">
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="well well-sm well-light">
<h4 class="txt-color-blueLight">Bar <span class="semi-bold">Chart</span> <a href="javascript:void(0);" class="pull-right txt-color-blueLight"><i class="fa fa-refresh"></i></a></h4>
<br>
<div class="sparkline txt-color-blueLight text-center"
data-sparkline-type="bar"
data-sparkline-width="96%"
data-sparkline-barwidth="11"
data-sparkline-barspacing = "5"
data-sparkline-height="80px">
4,3,5,7,9,9,8,7,6,6,4,7,8,4
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-3">
<div class="well well-sm well-light">
<h4 class="txt-color-blueLight">Bar <span class="semi-bold">Stacked Chart</span> <a href="javascript:void(0);" class="pull-right txt-color-blueLight"><i class="fa fa-refresh"></i></a></h4>
<br>
<div class="sparkline txt-color-blue text-center"
data-sparkline-type="bar"
data-sparkline-width="96%"
data-sparkline-barwidth="11"
data-sparkline-barspacing = "5"
data-sparkline-barstacked-color='["#92A2A8", "#4493B1"]'
data-sparkline-height="80px">4:5,3:4,5:7,6:3,4:6,6:5,8:2,4:3,6:4,6:2,4:4,7:2,8:5,4:2</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<div class="well padding-10">
<h4 class="txt-color-blue">Composite Line with fills <a href="javascript:void(0);" class="pull-right txt-color-white"><i class="fa fa-refresh"></i></a></h4>
<br>
<div class="sparkline txt-color-darken"
data-sparkline-line-val="[3,2,3,4,3,2,4,2,3]"
data-sparkline-bar-val="[5,3,3,1,5,3,2,2,3]"
data-sparkline-type="compositeline"
data-sparkline-line-width="1"
data-sparkline-width="100%"
data-sparkline-height="180px"
data-sparkline-fillcolor-top="rgba(87, 136, 156, 0.30)"
data-sparkline-fillcolor-bottom="rgba(0, 141, 214, 0.10)"
data-sparkline-color-top="#fff"
data-sparkline-color-bottom="#fff"
data-sparkline-spotradius-top="4"
data-data-sparkline-bar-val-spots-top="[5,3,3,1,4,3,2,2,3]"
data-sparkline-bar-val-spots-bottom="[3,2,3,4,3,2,4,1,3]"
data-sparkline-minspot-color-top="#d1dade"
data-sparkline-minspot-color-bottom="#167db2"
data-sparkline-maxspot-color-top="#d1dade"
data-sparkline-maxspot-color-bottom="#167db2"
data-sparkline-highlightspot-color-top="#d1dade"
data-sparkline-highlightspot-color-bottom="#8fcded"
data-sparkline-highlightline-color-top="#bec6ca"
data-sparkline-highlightline-color-bottom="#bec6ca"
>
4,3,3,1,4,3,2,2,3
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
<div class="well padding-10">
<h4 class="txt-color-teal">Line chart variation <a href="javascript:void(0);" class="pull-right txt-color-white"><i class="fa fa-refresh"></i></a></h4>
<br>
<div class="sparkline"
data-sparkline-type="line"
data-fill-color="#e6f6f5"
data-sparkline-line-color="#0aa699"
data-sparkline-spotradius="5"
data-sparkline-width="100%"
data-sparkline-height="180px">6,4,3,5,2,4,6,4,3,3,4,5,4,3,2,4,5,</div>
<h4 class="air air-top-right padding-10 font-xl txt-color-teal">+ 39.<small class="ultra-light txt-color-teal">57 <i class="fa fa-caret-up fa-lg"></i></small></h4>
<h5 class="air air-bottom-left padding-10 font-md text-danger">-12.<small class="ultra-light text-danger">45 <i class="fa fa-caret-down fa-lg"></i></small></h5>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="well">
<h1>Easy <span class="semi-bold">Pie Charts</span> <small>Simplified for faster production</small></h1>
<p>Easy Pie Charts gives you a nice animation twist to your pie charts - they are also dynamic, which will make it a really nice ajax based live charts for your project</p>
<p class="note"><div class="easy-pie-chart txt-color-blue easyPieChart" data-percent="36" data-size="180"> data-pie-size="50">
<span class="percent percent-sign txt-color-blue font-xl semi-bold">36</span>
</div></p>
<ul class="list-inline">
<li>
<div class="easy-pie-chart txt-color-red easyPieChart" data-percent="50" data-size="180" data-pie-size="50">
<span class="percent percent-sign txt-color-red font-xl semi-bold">49</span>
</div>
</li>
<li>
<div class="easy-pie-chart txt-color-blue easyPieChart" data-percent="36" data-pie-size="180">
<span class="percent percent-sign txt-color-blue font-xl semi-bold">36</span>
</div>
</li>
<li>
<div class="easy-pie-chart txt-color-pinkDark easyPieChart" data-percent="46" data-pie-size="160">
<span class="percent percent-sign txt-color-pinkDark font-lg semi-bold">46</span>
</div>
</li>
<li>
<div class="easy-pie-chart txt-color-greenLight easyPieChart" data-percent="56" data-pie-size="110">
<span class="percent percent-sign txt-color-greenLight font-md">56</span>
</div>
</li>
<li>
<div class="easy-pie-chart txt-color-orange easyPieChart" data-percent="66" data-pie-size="60">
<span class="percent percent-sign txt-color-orange">66</span>
</div>
</li>
<li>
<div class="easy-pie-chart txt-color-darken easyPieChart" data-percent="76" data-pie-size="45">
<span class="percent percent-sign font-sm">76</span>
</div>
</li>
<li>
<div class="easy-pie-chart txt-color-blue easyPieChart" data-percent="86" data-pie-size="35">
<span class="percent percent-sign font-xs">86</span>
</div>
</li>
</ul>
</div>
</div>
</div>
<!-- end row -->
<!-- row -->
<div class="row">
</div>
<!-- end row -->
</div>
<!-- END MAIN CONTENT -->
</div>
<!-- END MAIN PANEL -->
<!-- ==========================CONTENT ENDS HERE ========================== -->
<?php
//include required scripts
include("inc/scripts.php");
?>
<!-- PAGE RELATED PLUGIN(S)
<script src="..."></script>-->
<script>
$(document).ready(function() {
// PAGE RELATED SCRIPTS
})
</script>
<?php
//include footer
include("inc/footer.php");
?>