inline.html 50 KB

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