inline.html 52 KB

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