inline.html 52 KB

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