5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <title>AdminLTE 2 | Inline Charts</title>
7 <!-- Tell the browser to be responsive to screen width -->
8 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
9 <!-- Bootstrap 3.3.6 -->
10 <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css">
12 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
14 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
16 <link rel="stylesheet" href="../../dist/css/AdminLTE.min.css">
17 <!-- AdminLTE Skins. Choose a skin from the css/skins
18 folder instead of downloading all of them to reduce the load. -->
19 <link rel="stylesheet" href="../../dist/css/skins/_all-skins.min.css">
21 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
22 <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
24 <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
25 <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
28 <body class="hold-transition skin-blue sidebar-mini">
31 <header class="main-header">
33 <a href="../../index2.html" class="logo">
34 <!-- mini logo for sidebar mini 50x50 pixels -->
35 <span class="logo-mini"><b>A</b>LT</span>
36 <!-- logo for regular state and mobile devices -->
37 <span class="logo-lg"><b>Admin</b>LTE</span>
39 <!-- Header Navbar: style can be found in header.less -->
40 <nav class="navbar navbar-static-top">
41 <!-- Sidebar toggle button-->
42 <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
43 <span class="sr-only">Toggle navigation</span>
44 <span class="icon-bar"></span>
45 <span class="icon-bar"></span>
46 <span class="icon-bar"></span>
49 <div class="navbar-custom-menu">
50 <ul class="nav navbar-nav">
51 <!-- Messages: style can be found in dropdown.less-->
52 <li class="dropdown messages-menu">
53 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
54 <i class="fa fa-envelope-o"></i>
55 <span class="label label-success">4</span>
57 <ul class="dropdown-menu">
58 <li class="header">You have 4 messages</li>
60 <!-- inner menu: contains the actual data -->
62 <li><!-- start message -->
64 <div class="pull-left">
65 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
69 <small><i class="fa fa-clock-o"></i> 5 mins</small>
71 <p>Why not buy a new awesome theme?</p>
77 <div class="pull-left">
78 <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
82 <small><i class="fa fa-clock-o"></i> 2 hours</small>
84 <p>Why not buy a new awesome theme?</p>
89 <div class="pull-left">
90 <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
94 <small><i class="fa fa-clock-o"></i> Today</small>
96 <p>Why not buy a new awesome theme?</p>
101 <div class="pull-left">
102 <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
106 <small><i class="fa fa-clock-o"></i> Yesterday</small>
108 <p>Why not buy a new awesome theme?</p>
113 <div class="pull-left">
114 <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
118 <small><i class="fa fa-clock-o"></i> 2 days</small>
120 <p>Why not buy a new awesome theme?</p>
125 <li class="footer"><a href="#">See All Messages</a></li>
128 <!-- Notifications: style can be found in dropdown.less -->
129 <li class="dropdown notifications-menu">
130 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
131 <i class="fa fa-bell-o"></i>
132 <span class="label label-warning">10</span>
134 <ul class="dropdown-menu">
135 <li class="header">You have 10 notifications</li>
137 <!-- inner menu: contains the actual data -->
141 <i class="fa fa-users text-aqua"></i> 5 new members joined today
146 <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
147 page and may cause design problems
152 <i class="fa fa-users text-red"></i> 5 new members joined
158 <i class="fa fa-shopping-cart text-green"></i> 25 sales made
163 <i class="fa fa-user text-red"></i> You changed your username
168 <li class="footer"><a href="#">View all</a></li>
171 <!-- Tasks: style can be found in dropdown.less -->
172 <li class="dropdown tasks-menu">
173 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
174 <i class="fa fa-flag-o"></i>
175 <span class="label label-danger">9</span>
177 <ul class="dropdown-menu">
178 <li class="header">You have 9 tasks</li>
180 <!-- inner menu: contains the actual data -->
182 <li><!-- Task item -->
186 <small class="pull-right">20%</small>
188 <div class="progress xs">
189 <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
190 <span class="sr-only">20% Complete</span>
195 <!-- end task item -->
196 <li><!-- Task item -->
200 <small class="pull-right">40%</small>
202 <div class="progress xs">
203 <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
204 <span class="sr-only">40% Complete</span>
209 <!-- end task item -->
210 <li><!-- Task item -->
213 Some task I need to do
214 <small class="pull-right">60%</small>
216 <div class="progress xs">
217 <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
218 <span class="sr-only">60% Complete</span>
223 <!-- end task item -->
224 <li><!-- Task item -->
227 Make beautiful transitions
228 <small class="pull-right">80%</small>
230 <div class="progress xs">
231 <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
232 <span class="sr-only">80% Complete</span>
237 <!-- end task item -->
241 <a href="#">View all tasks</a>
245 <!-- User Account: style can be found in dropdown.less -->
246 <li class="dropdown user user-menu">
247 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
248 <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
249 <span class="hidden-xs">Alexander Pierce</span>
251 <ul class="dropdown-menu">
253 <li class="user-header">
254 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
257 Alexander Pierce - Web Developer
258 <small>Member since Nov. 2012</small>
262 <li class="user-body">
264 <div class="col-xs-4 text-center">
265 <a href="#">Followers</a>
267 <div class="col-xs-4 text-center">
268 <a href="#">Sales</a>
270 <div class="col-xs-4 text-center">
271 <a href="#">Friends</a>
277 <li class="user-footer">
278 <div class="pull-left">
279 <a href="#" class="btn btn-default btn-flat">Profile</a>
281 <div class="pull-right">
282 <a href="#" class="btn btn-default btn-flat">Sign out</a>
287 <!-- Control Sidebar Toggle Button -->
289 <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
295 <!-- Left side column. contains the logo and sidebar -->
296 <aside class="main-sidebar">
297 <!-- sidebar: style can be found in sidebar.less -->
298 <section class="sidebar">
299 <!-- Sidebar user panel -->
300 <div class="user-panel">
301 <div class="pull-left image">
302 <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
304 <div class="pull-left info">
305 <p>Alexander Pierce</p>
306 <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
310 <form action="#" method="get" class="sidebar-form">
311 <div class="input-group">
312 <input type="text" name="q" class="form-control" placeholder="Search...">
313 <span class="input-group-btn">
314 <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
319 <!-- /.search form -->
320 <!-- sidebar menu: : style can be found in sidebar.less -->
321 <ul class="sidebar-menu">
322 <li class="header">MAIN NAVIGATION</li>
323 <li class="treeview">
325 <i class="fa fa-dashboard"></i> <span>Dashboard</span>
326 <span class="pull-right-container">
327 <i class="fa fa-angle-left pull-right"></i>
330 <ul class="treeview-menu">
331 <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
332 <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
335 <li class="treeview">
337 <i class="fa fa-files-o"></i>
338 <span>Layout Options</span>
339 <span class="pull-right-container">
340 <span class="label label-primary pull-right">4</span>
343 <ul class="treeview-menu">
344 <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
345 <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
346 <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
347 <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
351 <a href="../widgets.html">
352 <i class="fa fa-th"></i> <span>Widgets</span>
353 <span class="pull-right-container">
354 <small class="label pull-right bg-green">new</small>
358 <li class="treeview active">
360 <i class="fa fa-pie-chart"></i>
362 <span class="pull-right-container">
363 <i class="fa fa-angle-left pull-right"></i>
366 <ul class="treeview-menu">
367 <li><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
368 <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
369 <li><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
370 <li class="active"><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
373 <li class="treeview">
375 <i class="fa fa-laptop"></i>
376 <span>UI Elements</span>
377 <span class="pull-right-container">
378 <i class="fa fa-angle-left pull-right"></i>
381 <ul class="treeview-menu">
382 <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
383 <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
384 <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
385 <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
386 <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
387 <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
390 <li class="treeview">
392 <i class="fa fa-edit"></i> <span>Forms</span>
393 <span class="pull-right-container">
394 <i class="fa fa-angle-left pull-right"></i>
397 <ul class="treeview-menu">
398 <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
399 <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
400 <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
403 <li class="treeview">
405 <i class="fa fa-table"></i> <span>Tables</span>
406 <span class="pull-right-container">
407 <i class="fa fa-angle-left pull-right"></i>
410 <ul class="treeview-menu">
411 <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
412 <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
416 <a href="../calendar.html">
417 <i class="fa fa-calendar"></i> <span>Calendar</span>
418 <span class="pull-right-container">
419 <small class="label pull-right bg-red">3</small>
420 <small class="label pull-right bg-blue">17</small>
425 <a href="../mailbox/mailbox.html">
426 <i class="fa fa-envelope"></i> <span>Mailbox</span>
427 <span class="pull-right-container">
428 <small class="label pull-right bg-yellow">12</small>
429 <small class="label pull-right bg-green">16</small>
430 <small class="label pull-right bg-red">5</small>
434 <li class="treeview">
436 <i class="fa fa-folder"></i> <span>Examples</span>
437 <span class="pull-right-container">
438 <i class="fa fa-angle-left pull-right"></i>
441 <ul class="treeview-menu">
442 <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
443 <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
444 <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
445 <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
446 <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
447 <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
448 <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
449 <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
450 <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
453 <li class="treeview">
455 <i class="fa fa-share"></i> <span>Multilevel</span>
456 <span class="pull-right-container">
457 <i class="fa fa-angle-left pull-right"></i>
460 <ul class="treeview-menu">
461 <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
463 <a href="#"><i class="fa fa-circle-o"></i> Level One
464 <span class="pull-right-container">
465 <i class="fa fa-angle-left pull-right"></i>
468 <ul class="treeview-menu">
469 <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
471 <a href="#"><i class="fa fa-circle-o"></i> Level Two
472 <span class="pull-right-container">
473 <i class="fa fa-angle-left pull-right"></i>
476 <ul class="treeview-menu">
477 <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
478 <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
483 <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
486 <li><a href="../../documentation/index.html"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
487 <li class="header">LABELS</li>
488 <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
489 <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
490 <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
496 <!-- Content Wrapper. Contains page content -->
497 <div class="content-wrapper">
498 <!-- Content Header (Page header) -->
499 <section class="content-header">
502 <small>multiple types of charts</small>
504 <ol class="breadcrumb">
505 <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
506 <li><a href="#">Charts</a></li>
507 <li class="active">Inline Charts</li>
511 <!-- Main content -->
512 <section class="content">
516 <div class="col-xs-12">
518 <div class="box box-solid">
519 <div class="box-header">
520 <i class="fa fa-bar-chart-o"></i>
522 <h3 class="box-title">jQuery Knob</h3>
524 <div class="box-tools pull-right">
525 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
527 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
531 <!-- /.box-header -->
532 <div class="box-body">
534 <div class="col-xs-6 col-md-3 text-center">
535 <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc">
537 <div class="knob-label">New Visitors</div>
540 <div class="col-xs-6 col-md-3 text-center">
541 <input type="text" class="knob" value="70" data-width="90" data-height="90" data-fgColor="#f56954">
543 <div class="knob-label">Bounce Rate</div>
546 <div class="col-xs-6 col-md-3 text-center">
547 <input type="text" class="knob" value="-80" data-min="-150" data-max="150" data-width="90" data-height="90" data-fgColor="#00a65a">
549 <div class="knob-label">Server Load</div>
552 <div class="col-xs-6 col-md-3 text-center">
553 <input type="text" class="knob" value="40" data-width="90" data-height="90" data-fgColor="#00c0ef">
555 <div class="knob-label">Disk Space</div>
562 <div class="col-xs-6 text-center">
563 <input type="text" class="knob" value="90" data-width="90" data-height="90" data-fgColor="#932ab6">
565 <div class="knob-label">Bandwidth</div>
568 <div class="col-xs-6 text-center">
569 <input type="text" class="knob" value="50" data-width="90" data-height="90" data-fgColor="#39CCCC">
571 <div class="knob-label">CPU</div>
586 <div class="col-xs-12">
587 <div class="box box-solid">
588 <div class="box-header">
589 <i class="fa fa-bar-chart-o"></i>
591 <h3 class="box-title">jQuery Knob Different Sizes</h3>
593 <div class="box-tools pull-right">
594 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
596 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
600 <!-- /.box-header -->
601 <div class="box-body">
603 <div class="col-xs-6 col-md-3 text-center">
604 <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc" data-readonly="true">
606 <div class="knob-label">data-width="90"</div>
609 <div class="col-xs-6 col-md-3 text-center">
610 <input type="text" class="knob" value="30" data-width="120" data-height="120" data-fgColor="#f56954">
612 <div class="knob-label">data-width="120"</div>
615 <div class="col-xs-6 col-md-3 text-center">
616 <input type="text" class="knob" value="30" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a">
618 <div class="knob-label">data-thickness="0.1"</div>
621 <div class="col-xs-6 col-md-3 text-center">
622 <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">
624 <div class="knob-label">data-angleArc="250"</div>
639 <div class="col-xs-12">
640 <div class="box box-solid">
641 <div class="box-header">
642 <i class="fa fa-bar-chart-o"></i>
644 <h3 class="box-title">jQuery Knob Tron Style</h3>
646 <div class="box-tools pull-right">
647 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
649 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
653 <!-- /.box-header -->
654 <div class="box-body">
656 <div class="col-xs-6 col-md-3 text-center">
657 <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">
659 <div class="knob-label">data-width="90"</div>
662 <div class="col-xs-6 col-md-3 text-center">
663 <input type="text" class="knob" value="60" data-skin="tron" data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#f56954">
665 <div class="knob-label">data-width="120"</div>
668 <div class="col-xs-6 col-md-3 text-center">
669 <input type="text" class="knob" value="10" data-skin="tron" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a">
671 <div class="knob-label">data-thickness="0.1"</div>
674 <div class="col-xs-6 col-md-3 text-center">
675 <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">
677 <div class="knob-label">data-angleArc="250"</div>
692 <div class="callout callout-info">
693 <h4>The following was created using data tags</h4>
695 <p>The following three inline (sparkline) chart have been initialized to read and interpret data tags</p>
700 <div class="col-md-4">
701 <div class="box box-solid">
702 <div class="box-header">
703 <h3 class="box-title text-danger">Sparkline Pie</h3>
705 <div class="box-tools pull-right">
706 <button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
709 <!-- /.box-header -->
710 <div class="box-body text-center">
711 <div class="sparkline" data-type="pie" data-offset="90" data-width="100px" data-height="100px">
721 <div class="col-md-4">
722 <div class="box box-solid">
723 <div class="box-header">
724 <h3 class="box-title text-blue">Sparkline line</h3>
726 <div class="box-tools pull-right">
727 <button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
730 <!-- /.box-header -->
731 <div class="box-body text-center">
732 <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)">
733 6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6
742 <div class="col-md-4">
743 <div class="box box-solid">
744 <div class="box-header">
745 <h3 class="box-title text-warning">Sparkline Bar</h3>
747 <div class="box-tools pull-right">
748 <button type="button" class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
751 <!-- /.box-header -->
752 <div class="box-body text-center">
753 <div class="sparkline" data-type="bar" data-width="97%" data-height="100px" data-bar-Width="14" data-bar-Spacing="7" data-bar-Color="#f39c12">
754 6,4,8, 9, 10, 5, 13, 18, 21, 7, 9
766 <div class="col-xs-12">
767 <div class="box box-solid">
768 <div class="box-header">
769 <h3 class="box-title">Sparkline examples</h3>
771 <div class="box-tools pull-right">
772 <button type="button" class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i>
774 <button type="button" class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i>
778 <!-- /.box-header -->
779 <div id="myBody" class="box-body">
781 <div class="col-sm-6">
783 Mouse speed <span id="mousespeed">Loading..</span>
787 Inline <span class="sparkline-1">10,8,9,3,5,8,5</span>
789 <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 Bar charts <span class="sparkbar">10,8,9,3,5,8,5</span>
794 negative values: <span class="sparkbar">-3,1,2,0,3,-1</span>
795 stacked: <span class="sparkbar">0:2,2:4,4:2,4:1</span>
800 <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 Inline with normal range
805 <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>
810 <span id="compositebar">4,6,7,7,4,3,2,1,4</span>
815 <span class="discrete1">4,6,7,7,4,3,2,1,4,4,5,6,7,6,6,2,4,5</span><br>
817 Discrete with threshold
818 <span id="discrete2">4,6,7,7,4,3,2,1,4</span>
823 <span class="sparkbullet">10,12,12,9,7</span><br>
824 <span class="sparkbullet">14,12,12,9,7</span><br>
825 <span class="sparkbullet">10,12,14,9,7</span><br>
829 <div class="col-sm-6">
831 Customize size and colours
832 <span id="linecustom">10,8,9,3,5,8,5,7</span>
837 <span class="sparktristate">1,1,0,1,-1,-1,1,-1,0,0,1,1</span><br>
838 (think games won, lost or drawn)
842 Tristate chart using a colour map:
843 <span class="sparktristatecols">1,2,0,2,-1,-2,1,-2,0,0,1,1</span>
847 Box Plot: <span class="sparkboxplot">4,27,34,52,54,59,61,68,78,82,85,87,91,93,100</span><br>
848 Pre-computed box plot <span class="sparkboxplotraw">Loading..</span>
853 <span class="sparkpie">1,1,2</span>
854 <span class="sparkpie">1,5</span>
855 <span class="sparkpie">20,50,80</span>
873 <!-- /.content-wrapper -->
874 <footer class="main-footer">
875 <div class="pull-right hidden-xs">
878 <strong>Copyright © 2014-2016 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights
882 <!-- Control Sidebar -->
883 <aside class="control-sidebar control-sidebar-dark">
884 <!-- Create the tabs -->
885 <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
886 <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
887 <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
890 <div class="tab-content">
891 <!-- Home tab content -->
892 <div class="tab-pane" id="control-sidebar-home-tab">
893 <h3 class="control-sidebar-heading">Recent Activity</h3>
894 <ul class="control-sidebar-menu">
896 <a href="javascript:void(0)">
897 <i class="menu-icon fa fa-birthday-cake bg-red"></i>
899 <div class="menu-info">
900 <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
902 <p>Will be 23 on April 24th</p>
907 <a href="javascript:void(0)">
908 <i class="menu-icon fa fa-user bg-yellow"></i>
910 <div class="menu-info">
911 <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
913 <p>New phone +1(800)555-1234</p>
918 <a href="javascript:void(0)">
919 <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
921 <div class="menu-info">
922 <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
924 <p>nora@example.com</p>
929 <a href="javascript:void(0)">
930 <i class="menu-icon fa fa-file-code-o bg-green"></i>
932 <div class="menu-info">
933 <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
935 <p>Execution time 5 seconds</p>
940 <!-- /.control-sidebar-menu -->
942 <h3 class="control-sidebar-heading">Tasks Progress</h3>
943 <ul class="control-sidebar-menu">
945 <a href="javascript:void(0)">
946 <h4 class="control-sidebar-subheading">
947 Custom Template Design
948 <span class="label label-danger pull-right">70%</span>
951 <div class="progress progress-xxs">
952 <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
957 <a href="javascript:void(0)">
958 <h4 class="control-sidebar-subheading">
960 <span class="label label-success pull-right">95%</span>
963 <div class="progress progress-xxs">
964 <div class="progress-bar progress-bar-success" style="width: 95%"></div>
969 <a href="javascript:void(0)">
970 <h4 class="control-sidebar-subheading">
972 <span class="label label-warning pull-right">50%</span>
975 <div class="progress progress-xxs">
976 <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
981 <a href="javascript:void(0)">
982 <h4 class="control-sidebar-subheading">
984 <span class="label label-primary pull-right">68%</span>
987 <div class="progress progress-xxs">
988 <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
993 <!-- /.control-sidebar-menu -->
997 <!-- Stats tab content -->
998 <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
1000 <!-- Settings tab content -->
1001 <div class="tab-pane" id="control-sidebar-settings-tab">
1002 <form method="post">
1003 <h3 class="control-sidebar-heading">General Settings</h3>
1005 <div class="form-group">
1006 <label class="control-sidebar-subheading">
1008 <input type="checkbox" class="pull-right" checked>
1012 Some information about this general settings option
1015 <!-- /.form-group -->
1017 <div class="form-group">
1018 <label class="control-sidebar-subheading">
1020 <input type="checkbox" class="pull-right" checked>
1024 Other sets of options are available
1027 <!-- /.form-group -->
1029 <div class="form-group">
1030 <label class="control-sidebar-subheading">
1031 Expose author name in posts
1032 <input type="checkbox" class="pull-right" checked>
1036 Allow the user to show his name in blog posts
1039 <!-- /.form-group -->
1041 <h3 class="control-sidebar-heading">Chat Settings</h3>
1043 <div class="form-group">
1044 <label class="control-sidebar-subheading">
1046 <input type="checkbox" class="pull-right" checked>
1049 <!-- /.form-group -->
1051 <div class="form-group">
1052 <label class="control-sidebar-subheading">
1053 Turn off notifications
1054 <input type="checkbox" class="pull-right">
1057 <!-- /.form-group -->
1059 <div class="form-group">
1060 <label class="control-sidebar-subheading">
1062 <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
1065 <!-- /.form-group -->
1071 <!-- /.control-sidebar -->
1072 <!-- Add the sidebar's background. This div must be placed
1073 immediately after the control sidebar -->
1074 <div class="control-sidebar-bg"></div>
1078 <!-- jQuery 2.2.3 -->
1079 <script src="../../plugins/jQuery/jquery-2.2.3.min.js"></script>
1080 <!-- Bootstrap 3.3.6 -->
1081 <script src="../../bootstrap/js/bootstrap.min.js"></script>
1082 <!-- SlimScroll 1.3.0 -->
1083 <script src="../../plugins/slimScroll/jquery.slimscroll.min.js"></script>
1085 <script src="../../plugins/fastclick/fastclick.js"></script>
1086 <!-- AdminLTE App -->
1087 <script src="../../dist/js/app.min.js"></script>
1088 <!-- AdminLTE for demo purposes -->
1089 <script src="../../dist/js/demo.js"></script>
1090 <!-- jQuery Knob -->
1091 <script src="../../plugins/knob/jquery.knob.js"></script>
1093 <script src="../../plugins/sparkline/jquery.sparkline.min.js"></script>
1094 <!-- page script -->
1100 /*change : function (value) {
1101 //console.log("change : " + value);
1103 release : function (value) {
1104 console.log("release : " + value);
1106 cancel : function () {
1107 console.log("cancel : " + this.value);
1112 if (this.$.data('skin') == 'tron') {
1114 var a = this.angle(this.cv) // Angle
1115 , sa = this.startAngle // Previous start angle
1116 , sat = this.startAngle // Start angle
1117 , ea // Previous end angle
1118 , eat = sat + a // End angle
1121 this.g.lineWidth = this.lineWidth;
1124 && (sat = eat - 0.3)
1125 && (eat = eat + 0.3);
1127 if (this.o.displayPrevious) {
1128 ea = this.startAngle + this.angle(this.value);
1133 this.g.strokeStyle = this.previousColor;
1134 this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);
1139 this.g.strokeStyle = r ? this.o.fgColor : this.fgColor;
1140 this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
1143 this.g.lineWidth = 2;
1145 this.g.strokeStyle = this.o.fgColor;
1146 this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
1153 /* END JQUERY KNOB */
1155 //INITIALIZE SPARKLINE CHARTS
1156 $(".sparkline").each(function () {
1157 var $this = $(this);
1158 $this.sparkline('html', $this.data());
1161 /* SPARKLINE DOCUMENTATION EXAMPLES http://omnipotent.net/jquery.sparkline/#s-about */
1162 drawDocSparklines();
1163 drawMouseSpeedDemo();
1166 function drawDocSparklines() {
1168 // Bar + line composite charts
1169 $('#compositebar').sparkline('html', {type: 'bar', barColor: '#aaf'});
1170 $('#compositebar').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
1171 {composite: true, fillColor: false, lineColor: 'red'});
1174 // Line charts taking their values from the tag
1175 $('.sparkline-1').sparkline();
1177 // Larger line charts for the docs
1178 $('.largeline').sparkline('html',
1179 {type: 'line', height: '2.5em', width: '4em'});
1181 // Customized line chart
1182 $('#linecustom').sparkline('html',
1184 height: '1.5em', width: '8em', lineColor: '#f00', fillColor: '#ffa',
1185 minSpotColor: false, maxSpotColor: false, spotColor: '#77f', spotRadius: 3
1188 // Bar charts using inline values
1189 $('.sparkbar').sparkline('html', {type: 'bar'});
1191 $('.barformat').sparkline([1, 3, 5, 3, 8], {
1193 tooltipFormat: '{{value:levels}} - {{value}}',
1194 tooltipValueLookups: {
1195 levels: $.range_map({':2': 'Low', '3:6': 'Medium', '7:': 'High'})
1199 // Tri-state charts using inline values
1200 $('.sparktristate').sparkline('html', {type: 'tristate'});
1201 $('.sparktristatecols').sparkline('html',
1202 {type: 'tristate', colorMap: {'-2': '#fa7', '2': '#44f'}});
1204 // Composite line charts, the second using values supplied via javascript
1205 $('#compositeline').sparkline('html', {fillColor: false, changeRangeMin: 0, chartRangeMax: 10});
1206 $('#compositeline').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
1207 {composite: true, fillColor: false, lineColor: 'red', changeRangeMin: 0, chartRangeMax: 10});
1209 // Line charts with normal range marker
1210 $('#normalline').sparkline('html',
1211 {fillColor: false, normalRangeMin: -1, normalRangeMax: 8});
1212 $('#normalExample').sparkline('html',
1213 {fillColor: false, normalRangeMin: 80, normalRangeMax: 95, normalRangeColor: '#4f4'});
1216 $('.discrete1').sparkline('html',
1217 {type: 'discrete', lineColor: 'blue', xwidth: 18});
1218 $('#discrete2').sparkline('html',
1219 {type: 'discrete', lineColor: 'blue', thresholdColor: 'red', thresholdValue: 4});
1222 $('.sparkbullet').sparkline('html', {type: 'bullet'});
1225 $('.sparkpie').sparkline('html', {type: 'pie', height: '1.0em'});
1228 $('.sparkboxplot').sparkline('html', {type: 'box'});
1229 $('.sparkboxplotraw').sparkline([1, 3, 5, 8, 10, 15, 18],
1230 {type: 'box', raw: true, showOutliers: true, target: 6});
1232 // Box plot with specific field order
1233 $('.boxfieldorder').sparkline('html', {
1235 tooltipFormatFieldlist: ['med', 'lq', 'uq'],
1236 tooltipFormatFieldlistKey: 'field'
1239 // click event demo sparkline
1240 $('.clickdemo').sparkline();
1241 $('.clickdemo').bind('sparklineClick', function (ev) {
1242 var sparkline = ev.sparklines[0],
1243 region = sparkline.getCurrentRegionFields();
1245 alert("Clicked on x=" + region.x + " y=" + region.y);
1248 // mouseover event demo sparkline
1249 $('.mouseoverdemo').sparkline();
1250 $('.mouseoverdemo').bind('sparklineRegionChange', function (ev) {
1251 var sparkline = ev.sparklines[0],
1252 region = sparkline.getCurrentRegionFields();
1254 $('.mouseoverregion').text("x=" + region.x + " y=" + region.y);
1255 }).bind('mouseleave', function () {
1256 $('.mouseoverregion').text('');
1261 ** Draw the little mouse speed animated graph
1262 ** This just attaches a handler to the mousemove event to see
1263 ** (roughly) how far the mouse has moved
1264 ** and then updates the display a couple of times a second via
1267 function drawMouseSpeedDemo() {
1268 var mrefreshinterval = 500; // update display every 500ms
1269 var lastmousex = -1;
1270 var lastmousey = -1;
1272 var mousetravel = 0;
1274 var mpoints_max = 30;
1275 $('html').mousemove(function (e) {
1276 var mousex = e.pageX;
1277 var mousey = e.pageY;
1278 if (lastmousex > -1) {
1279 mousetravel += Math.max(Math.abs(mousex - lastmousex), Math.abs(mousey - lastmousey));
1281 lastmousex = mousex;
1282 lastmousey = mousey;
1284 var mdraw = function () {
1285 var md = new Date();
1286 var timenow = md.getTime();
1287 if (lastmousetime && lastmousetime != timenow) {
1288 var pps = Math.round(mousetravel / (timenow - lastmousetime) * 1000);
1290 if (mpoints.length > mpoints_max)
1291 mpoints.splice(0, 1);
1293 $('#mousespeed').sparkline(mpoints, {width: mpoints.length * 2, tooltipSuffix: ' pixels per second'});
1295 lastmousetime = timenow;
1296 setTimeout(mdraw, mrefreshinterval);
1298 // We could use setInterval instead, but I prefer to do it this way
1299 setTimeout(mdraw, mrefreshinterval);