inline.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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.5 -->
  10. <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css">
  11. <!-- Font Awesome -->
  12. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
  13. <!-- Ionicons -->
  14. <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  15. <!-- Theme style -->
  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">
  20. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  21. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  22. <!--[if lt IE 9]>
  23. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  24. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  25. <![endif]-->
  26. </head>
  27. <body class="hold-transition skin-blue sidebar-mini">
  28. <div class="wrapper">
  29. <header class="main-header">
  30. <!-- Logo -->
  31. <a href="../../index2.html" class="logo">
  32. <!-- mini logo for sidebar mini 50x50 pixels -->
  33. <span class="logo-mini"><b>A</b>LT</span>
  34. <!-- logo for regular state and mobile devices -->
  35. <span class="logo-lg"><b>Admin</b>LTE</span>
  36. </a>
  37. <!-- Header Navbar: style can be found in header.less -->
  38. <nav class="navbar navbar-static-top" role="navigation">
  39. <!-- Sidebar toggle button-->
  40. <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
  41. <span class="sr-only">Toggle navigation</span>
  42. <span class="icon-bar"></span>
  43. <span class="icon-bar"></span>
  44. <span class="icon-bar"></span>
  45. </a>
  46. <div class="navbar-custom-menu">
  47. <ul class="nav navbar-nav">
  48. <!-- Messages: style can be found in dropdown.less-->
  49. <li class="dropdown messages-menu">
  50. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  51. <i class="fa fa-envelope-o"></i>
  52. <span class="label label-success">4</span>
  53. </a>
  54. <ul class="dropdown-menu">
  55. <li class="header">You have 4 messages</li>
  56. <li>
  57. <!-- inner menu: contains the actual data -->
  58. <ul class="menu">
  59. <li><!-- start message -->
  60. <a href="#">
  61. <div class="pull-left">
  62. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  63. </div>
  64. <h4>
  65. Support Team
  66. <small><i class="fa fa-clock-o"></i> 5 mins</small>
  67. </h4>
  68. <p>Why not buy a new awesome theme?</p>
  69. </a>
  70. </li><!-- end message -->
  71. <li>
  72. <a href="#">
  73. <div class="pull-left">
  74. <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
  75. </div>
  76. <h4>
  77. AdminLTE Design Team
  78. <small><i class="fa fa-clock-o"></i> 2 hours</small>
  79. </h4>
  80. <p>Why not buy a new awesome theme?</p>
  81. </a>
  82. </li>
  83. <li>
  84. <a href="#">
  85. <div class="pull-left">
  86. <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
  87. </div>
  88. <h4>
  89. Developers
  90. <small><i class="fa fa-clock-o"></i> Today</small>
  91. </h4>
  92. <p>Why not buy a new awesome theme?</p>
  93. </a>
  94. </li>
  95. <li>
  96. <a href="#">
  97. <div class="pull-left">
  98. <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
  99. </div>
  100. <h4>
  101. Sales Department
  102. <small><i class="fa fa-clock-o"></i> Yesterday</small>
  103. </h4>
  104. <p>Why not buy a new awesome theme?</p>
  105. </a>
  106. </li>
  107. <li>
  108. <a href="#">
  109. <div class="pull-left">
  110. <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
  111. </div>
  112. <h4>
  113. Reviewers
  114. <small><i class="fa fa-clock-o"></i> 2 days</small>
  115. </h4>
  116. <p>Why not buy a new awesome theme?</p>
  117. </a>
  118. </li>
  119. </ul>
  120. </li>
  121. <li class="footer"><a href="#">See All Messages</a></li>
  122. </ul>
  123. </li>
  124. <!-- Notifications: style can be found in dropdown.less -->
  125. <li class="dropdown notifications-menu">
  126. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  127. <i class="fa fa-bell-o"></i>
  128. <span class="label label-warning">10</span>
  129. </a>
  130. <ul class="dropdown-menu">
  131. <li class="header">You have 10 notifications</li>
  132. <li>
  133. <!-- inner menu: contains the actual data -->
  134. <ul class="menu">
  135. <li>
  136. <a href="#">
  137. <i class="fa fa-users text-aqua"></i> 5 new members joined today
  138. </a>
  139. </li>
  140. <li>
  141. <a href="#">
  142. <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the page and may cause design problems
  143. </a>
  144. </li>
  145. <li>
  146. <a href="#">
  147. <i class="fa fa-users text-red"></i> 5 new members joined
  148. </a>
  149. </li>
  150. <li>
  151. <a href="#">
  152. <i class="fa fa-shopping-cart text-green"></i> 25 sales made
  153. </a>
  154. </li>
  155. <li>
  156. <a href="#">
  157. <i class="fa fa-user text-red"></i> You changed your username
  158. </a>
  159. </li>
  160. </ul>
  161. </li>
  162. <li class="footer"><a href="#">View all</a></li>
  163. </ul>
  164. </li>
  165. <!-- Tasks: style can be found in dropdown.less -->
  166. <li class="dropdown tasks-menu">
  167. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  168. <i class="fa fa-flag-o"></i>
  169. <span class="label label-danger">9</span>
  170. </a>
  171. <ul class="dropdown-menu">
  172. <li class="header">You have 9 tasks</li>
  173. <li>
  174. <!-- inner menu: contains the actual data -->
  175. <ul class="menu">
  176. <li><!-- Task item -->
  177. <a href="#">
  178. <h3>
  179. Design some buttons
  180. <small class="pull-right">20%</small>
  181. </h3>
  182. <div class="progress xs">
  183. <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  184. <span class="sr-only">20% Complete</span>
  185. </div>
  186. </div>
  187. </a>
  188. </li><!-- end task item -->
  189. <li><!-- Task item -->
  190. <a href="#">
  191. <h3>
  192. Create a nice theme
  193. <small class="pull-right">40%</small>
  194. </h3>
  195. <div class="progress xs">
  196. <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  197. <span class="sr-only">40% Complete</span>
  198. </div>
  199. </div>
  200. </a>
  201. </li><!-- end task item -->
  202. <li><!-- Task item -->
  203. <a href="#">
  204. <h3>
  205. Some task I need to do
  206. <small class="pull-right">60%</small>
  207. </h3>
  208. <div class="progress xs">
  209. <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  210. <span class="sr-only">60% Complete</span>
  211. </div>
  212. </div>
  213. </a>
  214. </li><!-- end task item -->
  215. <li><!-- Task item -->
  216. <a href="#">
  217. <h3>
  218. Make beautiful transitions
  219. <small class="pull-right">80%</small>
  220. </h3>
  221. <div class="progress xs">
  222. <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  223. <span class="sr-only">80% Complete</span>
  224. </div>
  225. </div>
  226. </a>
  227. </li><!-- end task item -->
  228. </ul>
  229. </li>
  230. <li class="footer">
  231. <a href="#">View all tasks</a>
  232. </li>
  233. </ul>
  234. </li>
  235. <!-- User Account: style can be found in dropdown.less -->
  236. <li class="dropdown user user-menu">
  237. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  238. <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
  239. <span class="hidden-xs">Alexander Pierce</span>
  240. </a>
  241. <ul class="dropdown-menu">
  242. <!-- User image -->
  243. <li class="user-header">
  244. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  245. <p>
  246. Alexander Pierce - Web Developer
  247. <small>Member since Nov. 2012</small>
  248. </p>
  249. </li>
  250. <!-- Menu Body -->
  251. <li class="user-body">
  252. <div class="col-xs-4 text-center">
  253. <a href="#">Followers</a>
  254. </div>
  255. <div class="col-xs-4 text-center">
  256. <a href="#">Sales</a>
  257. </div>
  258. <div class="col-xs-4 text-center">
  259. <a href="#">Friends</a>
  260. </div>
  261. </li>
  262. <!-- Menu Footer-->
  263. <li class="user-footer">
  264. <div class="pull-left">
  265. <a href="#" class="btn btn-default btn-flat">Profile</a>
  266. </div>
  267. <div class="pull-right">
  268. <a href="#" class="btn btn-default btn-flat">Sign out</a>
  269. </div>
  270. </li>
  271. </ul>
  272. </li>
  273. <!-- Control Sidebar Toggle Button -->
  274. <li>
  275. <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  276. </li>
  277. </ul>
  278. </div>
  279. </nav>
  280. </header>
  281. <!-- Left side column. contains the logo and sidebar -->
  282. <aside class="main-sidebar">
  283. <!-- sidebar: style can be found in sidebar.less -->
  284. <section class="sidebar">
  285. <!-- Sidebar user panel -->
  286. <div class="user-panel">
  287. <div class="pull-left image">
  288. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  289. </div>
  290. <div class="pull-left info">
  291. <p>Alexander Pierce</p>
  292. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  293. </div>
  294. </div>
  295. <!-- search form -->
  296. <form action="#" method="get" class="sidebar-form">
  297. <div class="input-group">
  298. <input type="text" name="q" class="form-control" placeholder="Search...">
  299. <span class="input-group-btn">
  300. <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
  301. </span>
  302. </div>
  303. </form>
  304. <!-- /.search form -->
  305. <!-- sidebar menu: : style can be found in sidebar.less -->
  306. <ul class="sidebar-menu">
  307. <li class="header">MAIN NAVIGATION</li>
  308. <li class="treeview">
  309. <a href="#">
  310. <i class="fa fa-dashboard"></i> <span>Dashboard</span> <i class="fa fa-angle-left pull-right"></i>
  311. </a>
  312. <ul class="treeview-menu">
  313. <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
  314. <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
  315. </ul>
  316. </li>
  317. <li class="treeview">
  318. <a href="#">
  319. <i class="fa fa-files-o"></i>
  320. <span>Layout Options</span>
  321. <span class="label label-primary pull-right">4</span>
  322. </a>
  323. <ul class="treeview-menu">
  324. <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
  325. <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
  326. <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
  327. <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
  328. </ul>
  329. </li>
  330. <li>
  331. <a href="../widgets.html">
  332. <i class="fa fa-th"></i> <span>Widgets</span> <small class="label pull-right bg-green">new</small>
  333. </a>
  334. </li>
  335. <li class="treeview active">
  336. <a href="#">
  337. <i class="fa fa-pie-chart"></i>
  338. <span>Charts</span>
  339. <i class="fa fa-angle-left pull-right"></i>
  340. </a>
  341. <ul class="treeview-menu">
  342. <li><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
  343. <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
  344. <li><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
  345. <li class="active"><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
  346. </ul>
  347. </li>
  348. <li class="treeview">
  349. <a href="#">
  350. <i class="fa fa-laptop"></i>
  351. <span>UI Elements</span>
  352. <i class="fa fa-angle-left pull-right"></i>
  353. </a>
  354. <ul class="treeview-menu">
  355. <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
  356. <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
  357. <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
  358. <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
  359. <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
  360. <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
  361. </ul>
  362. </li>
  363. <li class="treeview">
  364. <a href="#">
  365. <i class="fa fa-edit"></i> <span>Forms</span>
  366. <i class="fa fa-angle-left pull-right"></i>
  367. </a>
  368. <ul class="treeview-menu">
  369. <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
  370. <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
  371. <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
  372. </ul>
  373. </li>
  374. <li class="treeview">
  375. <a href="#">
  376. <i class="fa fa-table"></i> <span>Tables</span>
  377. <i class="fa fa-angle-left pull-right"></i>
  378. </a>
  379. <ul class="treeview-menu">
  380. <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
  381. <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
  382. </ul>
  383. </li>
  384. <li>
  385. <a href="../calendar.html">
  386. <i class="fa fa-calendar"></i> <span>Calendar</span>
  387. <small class="label pull-right bg-red">3</small>
  388. </a>
  389. </li>
  390. <li>
  391. <a href="../mailbox/mailbox.html">
  392. <i class="fa fa-envelope"></i> <span>Mailbox</span>
  393. <small class="label pull-right bg-yellow">12</small>
  394. </a>
  395. </li>
  396. <li class="treeview">
  397. <a href="#">
  398. <i class="fa fa-folder"></i> <span>Examples</span>
  399. <i class="fa fa-angle-left pull-right"></i>
  400. </a>
  401. <ul class="treeview-menu">
  402. <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
  403. <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
  404. <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
  405. <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
  406. <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
  407. <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
  408. <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
  409. <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
  410. </ul>
  411. </li>
  412. <li class="treeview">
  413. <a href="#">
  414. <i class="fa fa-share"></i> <span>Multilevel</span>
  415. <i class="fa fa-angle-left pull-right"></i>
  416. </a>
  417. <ul class="treeview-menu">
  418. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  419. <li>
  420. <a href="#"><i class="fa fa-circle-o"></i> Level One <i class="fa fa-angle-left pull-right"></i></a>
  421. <ul class="treeview-menu">
  422. <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
  423. <li>
  424. <a href="#"><i class="fa fa-circle-o"></i> Level Two <i class="fa fa-angle-left pull-right"></i></a>
  425. <ul class="treeview-menu">
  426. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  427. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  428. </ul>
  429. </li>
  430. </ul>
  431. </li>
  432. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  433. </ul>
  434. </li>
  435. <li><a href="../../documentation/index.html"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
  436. <li class="header">LABELS</li>
  437. <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
  438. <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
  439. <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
  440. </ul>
  441. </section>
  442. <!-- /.sidebar -->
  443. </aside>
  444. <!-- Content Wrapper. Contains page content -->
  445. <div class="content-wrapper">
  446. <!-- Content Header (Page header) -->
  447. <section class="content-header">
  448. <h1>
  449. Inline Charts
  450. <small>multiple types of charts</small>
  451. </h1>
  452. <ol class="breadcrumb">
  453. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  454. <li><a href="#">Charts</a></li>
  455. <li class="active">Inline Charts</li>
  456. </ol>
  457. </section>
  458. <!-- Main content -->
  459. <section class="content">
  460. <!-- row -->
  461. <div class="row">
  462. <div class="col-xs-12">
  463. <!-- jQuery Knob -->
  464. <div class="box box-solid">
  465. <div class="box-header">
  466. <i class="fa fa-bar-chart-o"></i>
  467. <h3 class="box-title">jQuery Knob</h3>
  468. <div class="box-tools pull-right">
  469. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  470. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  471. </div>
  472. </div><!-- /.box-header -->
  473. <div class="box-body">
  474. <div class="row">
  475. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  476. <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc">
  477. <div class="knob-label">New Visitors</div>
  478. </div><!-- ./col -->
  479. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  480. <input type="text" class="knob" value="70" data-width="90" data-height="90" data-fgColor="#f56954">
  481. <div class="knob-label">Bounce Rate</div>
  482. </div><!-- ./col -->
  483. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  484. <input type="text" class="knob" value="-80" data-min="-150" data-max="150" data-width="90" data-height="90" data-fgColor="#00a65a">
  485. <div class="knob-label">Server Load</div>
  486. </div><!-- ./col -->
  487. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  488. <input type="text" class="knob" value="40" data-width="90" data-height="90" data-fgColor="#00c0ef">
  489. <div class="knob-label">Disk Space</div>
  490. </div><!-- ./col -->
  491. </div><!-- /.row -->
  492. <div class="row">
  493. <div class="col-xs-6 text-center">
  494. <input type="text" class="knob" value="90" data-width="90" data-height="90" data-fgColor="#932ab6">
  495. <div class="knob-label">Bandwidth</div>
  496. </div><!-- ./col -->
  497. <div class="col-xs-6 text-center">
  498. <input type="text" class="knob" value="50" data-width="90" data-height="90" data-fgColor="#39CCCC">
  499. <div class="knob-label">CPU</div>
  500. </div><!-- ./col -->
  501. </div><!-- /.row -->
  502. </div><!-- /.box-body -->
  503. </div><!-- /.box -->
  504. </div><!-- /.col -->
  505. </div><!-- /.row -->
  506. <div class="row">
  507. <div class="col-xs-12">
  508. <div class="box box-solid">
  509. <div class="box-header">
  510. <i class="fa fa-bar-chart-o"></i>
  511. <h3 class="box-title">jQuery Knob Different Sizes</h3>
  512. <div class="box-tools pull-right">
  513. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  514. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  515. </div>
  516. </div><!-- /.box-header -->
  517. <div class="box-body">
  518. <div class="row">
  519. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  520. <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc" data-readonly="true">
  521. <div class="knob-label">data-width="90"</div>
  522. </div><!-- ./col -->
  523. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  524. <input type="text" class="knob" value="30" data-width="120" data-height="120" data-fgColor="#f56954">
  525. <div class="knob-label">data-width="120"</div>
  526. </div><!-- ./col -->
  527. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  528. <input type="text" class="knob" value="30" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a">
  529. <div class="knob-label">data-thickness="0.1"</div>
  530. </div><!-- ./col -->
  531. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  532. <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">
  533. <div class="knob-label">data-angleArc="250"</div>
  534. </div><!-- ./col -->
  535. </div><!-- /.row -->
  536. </div><!-- /.box-body -->
  537. </div><!-- /.box -->
  538. </div><!-- /.col -->
  539. </div><!-- /.row -->
  540. <div class="row">
  541. <div class="col-xs-12">
  542. <div class="box box-solid">
  543. <div class="box-header">
  544. <i class="fa fa-bar-chart-o"></i>
  545. <h3 class="box-title">jQuery Knob Tron Style</h3>
  546. <div class="box-tools pull-right">
  547. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  548. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  549. </div>
  550. </div><!-- /.box-header -->
  551. <div class="box-body">
  552. <div class="row">
  553. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  554. <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">
  555. <div class="knob-label">data-width="90"</div>
  556. </div><!-- ./col -->
  557. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  558. <input type="text" class="knob" value="60" data-skin="tron" data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#f56954">
  559. <div class="knob-label">data-width="120"</div>
  560. </div><!-- ./col -->
  561. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  562. <input type="text" class="knob" value="10" data-skin="tron" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a">
  563. <div class="knob-label">data-thickness="0.1"</div>
  564. </div><!-- ./col -->
  565. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  566. <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">
  567. <div class="knob-label">data-angleArc="250"</div>
  568. </div><!-- ./col -->
  569. </div><!-- /.row -->
  570. </div><!-- /.box-body -->
  571. </div><!-- /.box -->
  572. </div><!-- /.col -->
  573. </div><!-- /.row -->
  574. <!-- callout -->
  575. <div class="callout callout-info">
  576. <h4>The following was created using data tags</h4>
  577. <p>The following three inline (sparkline) chart have been initialized to read and interpret data tags</p>
  578. </div>
  579. <!-- /.callout -->
  580. <div class="row">
  581. <div class="col-md-4">
  582. <div class="box box-solid">
  583. <div class="box-header">
  584. <h3 class="box-title text-danger">Sparkline Pie</h3>
  585. <div class="box-tools pull-right">
  586. <button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
  587. </div>
  588. </div><!-- /.box-header -->
  589. <div class="box-body text-center">
  590. <div class="sparkline" data-type="pie" data-offset="90" data-width="100px" data-height="100px">
  591. 6,4,8
  592. </div>
  593. </div><!-- /.box-body -->
  594. </div><!-- /.box -->
  595. </div><!-- /.col -->
  596. <div class="col-md-4">
  597. <div class="box box-solid">
  598. <div class="box-header">
  599. <h3 class="box-title text-blue">Sparkline line</h3>
  600. <div class="box-tools pull-right">
  601. <button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
  602. </div>
  603. </div><!-- /.box-header -->
  604. <div class="box-body text-center">
  605. <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)">
  606. 6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6
  607. </div>
  608. </div><!-- /.box-body -->
  609. </div><!-- /.box -->
  610. </div><!-- /.col -->
  611. <div class="col-md-4">
  612. <div class="box box-solid">
  613. <div class="box-header">
  614. <h3 class="box-title text-warning">Sparkline Bar</h3>
  615. <div class="box-tools pull-right">
  616. <button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
  617. </div>
  618. </div><!-- /.box-header -->
  619. <div class="box-body text-center">
  620. <div class="sparkline" data-type="bar" data-width="97%" data-height="100px" data-bar-Width="14" data-bar-Spacing="7" data-bar-Color="#f39c12">
  621. 6,4,8, 9, 10, 5, 13, 18, 21, 7, 9
  622. </div>
  623. </div><!-- /.box-body -->
  624. </div><!-- /.box -->
  625. </div><!-- /.col -->
  626. </div><!-- /.row -->
  627. <div class="row">
  628. <div class="col-xs-12">
  629. <div class="box box-solid">
  630. <div class="box-header">
  631. <h3 class="box-title">Sparkline examples</h3>
  632. <div class="box-tools pull-right">
  633. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  634. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  635. </div>
  636. </div><!-- /.box-header -->
  637. <div id="myBody" class="box-body">
  638. <div class="row">
  639. <div class="col-sm-6">
  640. <p>
  641. Mouse speed <span id="mousespeed">Loading..</span>
  642. </p>
  643. <p>
  644. Inline <span class="sparkline-1">10,8,9,3,5,8,5</span>
  645. line graphs
  646. <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>
  647. </p>
  648. <p>
  649. Bar charts <span class="sparkbar">10,8,9,3,5,8,5</span>
  650. negative values: <span class="sparkbar">-3,1,2,0,3,-1</span>
  651. stacked: <span class="sparkbar">0:2,2:4,4:2,4:1</span>
  652. </p>
  653. <p>
  654. Composite inline
  655. <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>
  656. </p>
  657. <p>
  658. Inline with normal range
  659. <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>
  660. </p>
  661. <p>
  662. Composite bar
  663. <span id="compositebar">4,6,7,7,4,3,2,1,4</span>
  664. </p>
  665. <p>
  666. Discrete
  667. <span class="discrete1">4,6,7,7,4,3,2,1,4,4,5,6,7,6,6,2,4,5</span><br>
  668. Discrete with threshold
  669. <span id="discrete2">4,6,7,7,4,3,2,1,4</span>
  670. </p>
  671. <p>
  672. Bullet charts<br>
  673. <span class="sparkbullet">10,12,12,9,7</span><br>
  674. <span class="sparkbullet">14,12,12,9,7</span><br>
  675. <span class="sparkbullet">10,12,14,9,7</span><br>
  676. </p>
  677. </div><!-- /.col -->
  678. <div class="col-sm-6">
  679. <p>
  680. Customize size and colours
  681. <span id="linecustom">10,8,9,3,5,8,5,7</span>
  682. </p>
  683. <p>
  684. Tristate charts
  685. <span class="sparktristate">1,1,0,1,-1,-1,1,-1,0,0,1,1</span><br>
  686. (think games won, lost or drawn)
  687. </p>
  688. <p>
  689. Tristate chart using a colour map:
  690. <span class="sparktristatecols">1,2,0,2,-1,-2,1,-2,0,0,1,1</span>
  691. </p>
  692. <p>
  693. Box Plot: <span class="sparkboxplot">4,27,34,52,54,59,61,68,78,82,85,87,91,93,100</span><br>
  694. Pre-computed box plot <span class="sparkboxplotraw">Loading..</span>
  695. </p>
  696. <p>
  697. Pie charts
  698. <span class="sparkpie">1,1,2</span>
  699. <span class="sparkpie">1,5</span>
  700. <span class="sparkpie">20,50,80</span>
  701. </p>
  702. </div><!-- /.col -->
  703. </div><!-- /.row -->
  704. </div><!-- /.box-body -->
  705. </div><!-- /.box -->
  706. </div><!-- /.col -->
  707. </div><!-- /.row -->
  708. </section><!-- /.content -->
  709. </div><!-- /.content-wrapper -->
  710. <footer class="main-footer">
  711. <div class="pull-right hidden-xs">
  712. <b>Version</b> 2.3.0
  713. </div>
  714. <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
  715. </footer>
  716. <!-- Control Sidebar -->
  717. <aside class="control-sidebar control-sidebar-dark">
  718. <!-- Create the tabs -->
  719. <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
  720. <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
  721. <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
  722. </ul>
  723. <!-- Tab panes -->
  724. <div class="tab-content">
  725. <!-- Home tab content -->
  726. <div class="tab-pane" id="control-sidebar-home-tab">
  727. <h3 class="control-sidebar-heading">Recent Activity</h3>
  728. <ul class="control-sidebar-menu">
  729. <li>
  730. <a href="javascript::;">
  731. <i class="menu-icon fa fa-birthday-cake bg-red"></i>
  732. <div class="menu-info">
  733. <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
  734. <p>Will be 23 on April 24th</p>
  735. </div>
  736. </a>
  737. </li>
  738. <li>
  739. <a href="javascript::;">
  740. <i class="menu-icon fa fa-user bg-yellow"></i>
  741. <div class="menu-info">
  742. <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
  743. <p>New phone +1(800)555-1234</p>
  744. </div>
  745. </a>
  746. </li>
  747. <li>
  748. <a href="javascript::;">
  749. <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
  750. <div class="menu-info">
  751. <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
  752. <p>nora@example.com</p>
  753. </div>
  754. </a>
  755. </li>
  756. <li>
  757. <a href="javascript::;">
  758. <i class="menu-icon fa fa-file-code-o bg-green"></i>
  759. <div class="menu-info">
  760. <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
  761. <p>Execution time 5 seconds</p>
  762. </div>
  763. </a>
  764. </li>
  765. </ul><!-- /.control-sidebar-menu -->
  766. <h3 class="control-sidebar-heading">Tasks Progress</h3>
  767. <ul class="control-sidebar-menu">
  768. <li>
  769. <a href="javascript::;">
  770. <h4 class="control-sidebar-subheading">
  771. Custom Template Design
  772. <span class="label label-danger pull-right">70%</span>
  773. </h4>
  774. <div class="progress progress-xxs">
  775. <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
  776. </div>
  777. </a>
  778. </li>
  779. <li>
  780. <a href="javascript::;">
  781. <h4 class="control-sidebar-subheading">
  782. Update Resume
  783. <span class="label label-success pull-right">95%</span>
  784. </h4>
  785. <div class="progress progress-xxs">
  786. <div class="progress-bar progress-bar-success" style="width: 95%"></div>
  787. </div>
  788. </a>
  789. </li>
  790. <li>
  791. <a href="javascript::;">
  792. <h4 class="control-sidebar-subheading">
  793. Laravel Integration
  794. <span class="label label-warning pull-right">50%</span>
  795. </h4>
  796. <div class="progress progress-xxs">
  797. <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
  798. </div>
  799. </a>
  800. </li>
  801. <li>
  802. <a href="javascript::;">
  803. <h4 class="control-sidebar-subheading">
  804. Back End Framework
  805. <span class="label label-primary pull-right">68%</span>
  806. </h4>
  807. <div class="progress progress-xxs">
  808. <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
  809. </div>
  810. </a>
  811. </li>
  812. </ul><!-- /.control-sidebar-menu -->
  813. </div><!-- /.tab-pane -->
  814. <!-- Stats tab content -->
  815. <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div><!-- /.tab-pane -->
  816. <!-- Settings tab content -->
  817. <div class="tab-pane" id="control-sidebar-settings-tab">
  818. <form method="post">
  819. <h3 class="control-sidebar-heading">General Settings</h3>
  820. <div class="form-group">
  821. <label class="control-sidebar-subheading">
  822. Report panel usage
  823. <input type="checkbox" class="pull-right" checked>
  824. </label>
  825. <p>
  826. Some information about this general settings option
  827. </p>
  828. </div><!-- /.form-group -->
  829. <div class="form-group">
  830. <label class="control-sidebar-subheading">
  831. Allow mail redirect
  832. <input type="checkbox" class="pull-right" checked>
  833. </label>
  834. <p>
  835. Other sets of options are available
  836. </p>
  837. </div><!-- /.form-group -->
  838. <div class="form-group">
  839. <label class="control-sidebar-subheading">
  840. Expose author name in posts
  841. <input type="checkbox" class="pull-right" checked>
  842. </label>
  843. <p>
  844. Allow the user to show his name in blog posts
  845. </p>
  846. </div><!-- /.form-group -->
  847. <h3 class="control-sidebar-heading">Chat Settings</h3>
  848. <div class="form-group">
  849. <label class="control-sidebar-subheading">
  850. Show me as online
  851. <input type="checkbox" class="pull-right" checked>
  852. </label>
  853. </div><!-- /.form-group -->
  854. <div class="form-group">
  855. <label class="control-sidebar-subheading">
  856. Turn off notifications
  857. <input type="checkbox" class="pull-right">
  858. </label>
  859. </div><!-- /.form-group -->
  860. <div class="form-group">
  861. <label class="control-sidebar-subheading">
  862. Delete chat history
  863. <a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
  864. </label>
  865. </div><!-- /.form-group -->
  866. </form>
  867. </div><!-- /.tab-pane -->
  868. </div>
  869. </aside><!-- /.control-sidebar -->
  870. <!-- Add the sidebar's background. This div must be placed
  871. immediately after the control sidebar -->
  872. <div class="control-sidebar-bg"></div>
  873. </div><!-- ./wrapper -->
  874. <!-- jQuery 2.1.4 -->
  875. <script src="../../plugins/jQuery/jQuery-2.1.4.min.js"></script>
  876. <!-- Bootstrap 3.3.5 -->
  877. <script src="../../bootstrap/js/bootstrap.min.js"></script>
  878. <!-- SlimScroll 1.3.0 -->
  879. <script src="../../plugins/slimScroll/jquery.slimscroll.min.js"></script>
  880. <!-- FastClick -->
  881. <script src="../../plugins/fastclick/fastclick.min.js"></script>
  882. <!-- AdminLTE App -->
  883. <script src="../../dist/js/app.min.js"></script>
  884. <!-- AdminLTE for demo purposes -->
  885. <script src="../../dist/js/demo.js"></script>
  886. <!-- jQuery Knob -->
  887. <script src="../../plugins/knob/jquery.knob.js"></script>
  888. <!-- Sparkline -->
  889. <script src="../../plugins/sparkline/jquery.sparkline.min.js"></script>
  890. <!-- page script -->
  891. <script>
  892. $(function () {
  893. /* jQueryKnob */
  894. $(".knob").knob({
  895. /*change : function (value) {
  896. //console.log("change : " + value);
  897. },
  898. release : function (value) {
  899. console.log("release : " + value);
  900. },
  901. cancel : function () {
  902. console.log("cancel : " + this.value);
  903. },*/
  904. draw: function () {
  905. // "tron" case
  906. if (this.$.data('skin') == 'tron') {
  907. var a = this.angle(this.cv) // Angle
  908. , sa = this.startAngle // Previous start angle
  909. , sat = this.startAngle // Start angle
  910. , ea // Previous end angle
  911. , eat = sat + a // End angle
  912. , r = true;
  913. this.g.lineWidth = this.lineWidth;
  914. this.o.cursor
  915. && (sat = eat - 0.3)
  916. && (eat = eat + 0.3);
  917. if (this.o.displayPrevious) {
  918. ea = this.startAngle + this.angle(this.value);
  919. this.o.cursor
  920. && (sa = ea - 0.3)
  921. && (ea = ea + 0.3);
  922. this.g.beginPath();
  923. this.g.strokeStyle = this.previousColor;
  924. this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);
  925. this.g.stroke();
  926. }
  927. this.g.beginPath();
  928. this.g.strokeStyle = r ? this.o.fgColor : this.fgColor;
  929. this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
  930. this.g.stroke();
  931. this.g.lineWidth = 2;
  932. this.g.beginPath();
  933. this.g.strokeStyle = this.o.fgColor;
  934. this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
  935. this.g.stroke();
  936. return false;
  937. }
  938. }
  939. });
  940. /* END JQUERY KNOB */
  941. //INITIALIZE SPARKLINE CHARTS
  942. $(".sparkline").each(function () {
  943. var $this = $(this);
  944. $this.sparkline('html', $this.data());
  945. });
  946. /* SPARKLINE DOCUMENTAION EXAMPLES http://omnipotent.net/jquery.sparkline/#s-about */
  947. drawDocSparklines();
  948. drawMouseSpeedDemo();
  949. });
  950. function drawDocSparklines() {
  951. // Bar + line composite charts
  952. $('#compositebar').sparkline('html', {type: 'bar', barColor: '#aaf'});
  953. $('#compositebar').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
  954. {composite: true, fillColor: false, lineColor: 'red'});
  955. // Line charts taking their values from the tag
  956. $('.sparkline-1').sparkline();
  957. // Larger line charts for the docs
  958. $('.largeline').sparkline('html',
  959. {type: 'line', height: '2.5em', width: '4em'});
  960. // Customized line chart
  961. $('#linecustom').sparkline('html',
  962. {height: '1.5em', width: '8em', lineColor: '#f00', fillColor: '#ffa',
  963. minSpotColor: false, maxSpotColor: false, spotColor: '#77f', spotRadius: 3});
  964. // Bar charts using inline values
  965. $('.sparkbar').sparkline('html', {type: 'bar'});
  966. $('.barformat').sparkline([1, 3, 5, 3, 8], {
  967. type: 'bar',
  968. tooltipFormat: '{{value:levels}} - {{value}}',
  969. tooltipValueLookups: {
  970. levels: $.range_map({':2': 'Low', '3:6': 'Medium', '7:': 'High'})
  971. }
  972. });
  973. // Tri-state charts using inline values
  974. $('.sparktristate').sparkline('html', {type: 'tristate'});
  975. $('.sparktristatecols').sparkline('html',
  976. {type: 'tristate', colorMap: {'-2': '#fa7', '2': '#44f'}});
  977. // Composite line charts, the second using values supplied via javascript
  978. $('#compositeline').sparkline('html', {fillColor: false, changeRangeMin: 0, chartRangeMax: 10});
  979. $('#compositeline').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
  980. {composite: true, fillColor: false, lineColor: 'red', changeRangeMin: 0, chartRangeMax: 10});
  981. // Line charts with normal range marker
  982. $('#normalline').sparkline('html',
  983. {fillColor: false, normalRangeMin: -1, normalRangeMax: 8});
  984. $('#normalExample').sparkline('html',
  985. {fillColor: false, normalRangeMin: 80, normalRangeMax: 95, normalRangeColor: '#4f4'});
  986. // Discrete charts
  987. $('.discrete1').sparkline('html',
  988. {type: 'discrete', lineColor: 'blue', xwidth: 18});
  989. $('#discrete2').sparkline('html',
  990. {type: 'discrete', lineColor: 'blue', thresholdColor: 'red', thresholdValue: 4});
  991. // Bullet charts
  992. $('.sparkbullet').sparkline('html', {type: 'bullet'});
  993. // Pie charts
  994. $('.sparkpie').sparkline('html', {type: 'pie', height: '1.0em'});
  995. // Box plots
  996. $('.sparkboxplot').sparkline('html', {type: 'box'});
  997. $('.sparkboxplotraw').sparkline([1, 3, 5, 8, 10, 15, 18],
  998. {type: 'box', raw: true, showOutliers: true, target: 6});
  999. // Box plot with specific field order
  1000. $('.boxfieldorder').sparkline('html', {
  1001. type: 'box',
  1002. tooltipFormatFieldlist: ['med', 'lq', 'uq'],
  1003. tooltipFormatFieldlistKey: 'field'
  1004. });
  1005. // click event demo sparkline
  1006. $('.clickdemo').sparkline();
  1007. $('.clickdemo').bind('sparklineClick', function (ev) {
  1008. var sparkline = ev.sparklines[0],
  1009. region = sparkline.getCurrentRegionFields();
  1010. value = region.y;
  1011. alert("Clicked on x=" + region.x + " y=" + region.y);
  1012. });
  1013. // mouseover event demo sparkline
  1014. $('.mouseoverdemo').sparkline();
  1015. $('.mouseoverdemo').bind('sparklineRegionChange', function (ev) {
  1016. var sparkline = ev.sparklines[0],
  1017. region = sparkline.getCurrentRegionFields();
  1018. value = region.y;
  1019. $('.mouseoverregion').text("x=" + region.x + " y=" + region.y);
  1020. }).bind('mouseleave', function () {
  1021. $('.mouseoverregion').text('');
  1022. });
  1023. }
  1024. /**
  1025. ** Draw the little mouse speed animated graph
  1026. ** This just attaches a handler to the mousemove event to see
  1027. ** (roughly) how far the mouse has moved
  1028. ** and then updates the display a couple of times a second via
  1029. ** setTimeout()
  1030. **/
  1031. function drawMouseSpeedDemo() {
  1032. var mrefreshinterval = 500; // update display every 500ms
  1033. var lastmousex = -1;
  1034. var lastmousey = -1;
  1035. var lastmousetime;
  1036. var mousetravel = 0;
  1037. var mpoints = [];
  1038. var mpoints_max = 30;
  1039. $('html').mousemove(function (e) {
  1040. var mousex = e.pageX;
  1041. var mousey = e.pageY;
  1042. if (lastmousex > -1) {
  1043. mousetravel += Math.max(Math.abs(mousex - lastmousex), Math.abs(mousey - lastmousey));
  1044. }
  1045. lastmousex = mousex;
  1046. lastmousey = mousey;
  1047. });
  1048. var mdraw = function () {
  1049. var md = new Date();
  1050. var timenow = md.getTime();
  1051. if (lastmousetime && lastmousetime != timenow) {
  1052. var pps = Math.round(mousetravel / (timenow - lastmousetime) * 1000);
  1053. mpoints.push(pps);
  1054. if (mpoints.length > mpoints_max)
  1055. mpoints.splice(0, 1);
  1056. mousetravel = 0;
  1057. $('#mousespeed').sparkline(mpoints, {width: mpoints.length * 2, tooltipSuffix: ' pixels per second'});
  1058. }
  1059. lastmousetime = timenow;
  1060. setTimeout(mdraw, mrefreshinterval);
  1061. };
  1062. // We could use setInterval instead, but I prefer to do it this way
  1063. setTimeout(mdraw, mrefreshinterval);
  1064. }
  1065. </script>
  1066. </body>
  1067. </html>