inline.html 52 KB

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