flot.html 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132
  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 | Flot 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"
  28. href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  29. </head>
  30. <body class="hold-transition skin-blue sidebar-mini">
  31. <div class="wrapper">
  32. <header class="main-header">
  33. <!-- Logo -->
  34. <a href="../../index2.html" class="logo">
  35. <!-- mini logo for sidebar mini 50x50 pixels -->
  36. <span class="logo-mini"><b>A</b>LT</span>
  37. <!-- logo for regular state and mobile devices -->
  38. <span class="logo-lg"><b>Admin</b>LTE</span>
  39. </a>
  40. <!-- Header Navbar: style can be found in header.less -->
  41. <nav class="navbar navbar-static-top">
  42. <!-- Sidebar toggle button-->
  43. <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
  44. <span class="sr-only">Toggle navigation</span>
  45. <span class="icon-bar"></span>
  46. <span class="icon-bar"></span>
  47. <span class="icon-bar"></span>
  48. </a>
  49. <div class="navbar-custom-menu">
  50. <ul class="nav navbar-nav">
  51. <!-- Messages: style can be found in dropdown.less-->
  52. <li class="dropdown messages-menu">
  53. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  54. <i class="fa fa-envelope-o"></i>
  55. <span class="label label-success">4</span>
  56. </a>
  57. <ul class="dropdown-menu">
  58. <li class="header">You have 4 messages</li>
  59. <li>
  60. <!-- inner menu: contains the actual data -->
  61. <ul class="menu">
  62. <li><!-- start message -->
  63. <a href="#">
  64. <div class="pull-left">
  65. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  66. </div>
  67. <h4>
  68. Support Team
  69. <small><i class="fa fa-clock-o"></i> 5 mins</small>
  70. </h4>
  71. <p>Why not buy a new awesome theme?</p>
  72. </a>
  73. </li>
  74. <!-- end message -->
  75. <li>
  76. <a href="#">
  77. <div class="pull-left">
  78. <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
  79. </div>
  80. <h4>
  81. AdminLTE Design Team
  82. <small><i class="fa fa-clock-o"></i> 2 hours</small>
  83. </h4>
  84. <p>Why not buy a new awesome theme?</p>
  85. </a>
  86. </li>
  87. <li>
  88. <a href="#">
  89. <div class="pull-left">
  90. <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
  91. </div>
  92. <h4>
  93. Developers
  94. <small><i class="fa fa-clock-o"></i> Today</small>
  95. </h4>
  96. <p>Why not buy a new awesome theme?</p>
  97. </a>
  98. </li>
  99. <li>
  100. <a href="#">
  101. <div class="pull-left">
  102. <img src="../../dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
  103. </div>
  104. <h4>
  105. Sales Department
  106. <small><i class="fa fa-clock-o"></i> Yesterday</small>
  107. </h4>
  108. <p>Why not buy a new awesome theme?</p>
  109. </a>
  110. </li>
  111. <li>
  112. <a href="#">
  113. <div class="pull-left">
  114. <img src="../../dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
  115. </div>
  116. <h4>
  117. Reviewers
  118. <small><i class="fa fa-clock-o"></i> 2 days</small>
  119. </h4>
  120. <p>Why not buy a new awesome theme?</p>
  121. </a>
  122. </li>
  123. </ul>
  124. </li>
  125. <li class="footer"><a href="#">See All Messages</a></li>
  126. </ul>
  127. </li>
  128. <!-- Notifications: style can be found in dropdown.less -->
  129. <li class="dropdown notifications-menu">
  130. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  131. <i class="fa fa-bell-o"></i>
  132. <span class="label label-warning">10</span>
  133. </a>
  134. <ul class="dropdown-menu">
  135. <li class="header">You have 10 notifications</li>
  136. <li>
  137. <!-- inner menu: contains the actual data -->
  138. <ul class="menu">
  139. <li>
  140. <a href="#">
  141. <i class="fa fa-users text-aqua"></i> 5 new members joined today
  142. </a>
  143. </li>
  144. <li>
  145. <a href="#">
  146. <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
  147. page and may cause design problems
  148. </a>
  149. </li>
  150. <li>
  151. <a href="#">
  152. <i class="fa fa-users text-red"></i> 5 new members joined
  153. </a>
  154. </li>
  155. <li>
  156. <a href="#">
  157. <i class="fa fa-shopping-cart text-green"></i> 25 sales made
  158. </a>
  159. </li>
  160. <li>
  161. <a href="#">
  162. <i class="fa fa-user text-red"></i> You changed your username
  163. </a>
  164. </li>
  165. </ul>
  166. </li>
  167. <li class="footer"><a href="#">View all</a></li>
  168. </ul>
  169. </li>
  170. <!-- Tasks: style can be found in dropdown.less -->
  171. <li class="dropdown tasks-menu">
  172. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  173. <i class="fa fa-flag-o"></i>
  174. <span class="label label-danger">9</span>
  175. </a>
  176. <ul class="dropdown-menu">
  177. <li class="header">You have 9 tasks</li>
  178. <li>
  179. <!-- inner menu: contains the actual data -->
  180. <ul class="menu">
  181. <li><!-- Task item -->
  182. <a href="#">
  183. <h3>
  184. Design some buttons
  185. <small class="pull-right">20%</small>
  186. </h3>
  187. <div class="progress xs">
  188. <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar"
  189. aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  190. <span class="sr-only">20% Complete</span>
  191. </div>
  192. </div>
  193. </a>
  194. </li>
  195. <!-- end task item -->
  196. <li><!-- Task item -->
  197. <a href="#">
  198. <h3>
  199. Create a nice theme
  200. <small class="pull-right">40%</small>
  201. </h3>
  202. <div class="progress xs">
  203. <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar"
  204. aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  205. <span class="sr-only">40% Complete</span>
  206. </div>
  207. </div>
  208. </a>
  209. </li>
  210. <!-- end task item -->
  211. <li><!-- Task item -->
  212. <a href="#">
  213. <h3>
  214. Some task I need to do
  215. <small class="pull-right">60%</small>
  216. </h3>
  217. <div class="progress xs">
  218. <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar"
  219. aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  220. <span class="sr-only">60% Complete</span>
  221. </div>
  222. </div>
  223. </a>
  224. </li>
  225. <!-- end task item -->
  226. <li><!-- Task item -->
  227. <a href="#">
  228. <h3>
  229. Make beautiful transitions
  230. <small class="pull-right">80%</small>
  231. </h3>
  232. <div class="progress xs">
  233. <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar"
  234. aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  235. <span class="sr-only">80% Complete</span>
  236. </div>
  237. </div>
  238. </a>
  239. </li>
  240. <!-- end task item -->
  241. </ul>
  242. </li>
  243. <li class="footer">
  244. <a href="#">View all tasks</a>
  245. </li>
  246. </ul>
  247. </li>
  248. <!-- User Account: style can be found in dropdown.less -->
  249. <li class="dropdown user user-menu">
  250. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  251. <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
  252. <span class="hidden-xs">Alexander Pierce</span>
  253. </a>
  254. <ul class="dropdown-menu">
  255. <!-- User image -->
  256. <li class="user-header">
  257. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  258. <p>
  259. Alexander Pierce - Web Developer
  260. <small>Member since Nov. 2012</small>
  261. </p>
  262. </li>
  263. <!-- Menu Body -->
  264. <li class="user-body">
  265. <div class="row">
  266. <div class="col-xs-4 text-center">
  267. <a href="#">Followers</a>
  268. </div>
  269. <div class="col-xs-4 text-center">
  270. <a href="#">Sales</a>
  271. </div>
  272. <div class="col-xs-4 text-center">
  273. <a href="#">Friends</a>
  274. </div>
  275. </div>
  276. <!-- /.row -->
  277. </li>
  278. <!-- Menu Footer-->
  279. <li class="user-footer">
  280. <div class="pull-left">
  281. <a href="#" class="btn btn-default btn-flat">Profile</a>
  282. </div>
  283. <div class="pull-right">
  284. <a href="#" class="btn btn-default btn-flat">Sign out</a>
  285. </div>
  286. </li>
  287. </ul>
  288. </li>
  289. <!-- Control Sidebar Toggle Button -->
  290. <li>
  291. <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  292. </li>
  293. </ul>
  294. </div>
  295. </nav>
  296. </header>
  297. <!-- Left side column. contains the logo and sidebar -->
  298. <aside class="main-sidebar">
  299. <!-- sidebar: style can be found in sidebar.less -->
  300. <section class="sidebar">
  301. <!-- Sidebar user panel -->
  302. <div class="user-panel">
  303. <div class="pull-left image">
  304. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  305. </div>
  306. <div class="pull-left info">
  307. <p>Alexander Pierce</p>
  308. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  309. </div>
  310. </div>
  311. <!-- search form -->
  312. <form action="#" method="get" class="sidebar-form">
  313. <div class="input-group">
  314. <input type="text" name="q" class="form-control" placeholder="Search...">
  315. <span class="input-group-btn">
  316. <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
  317. </button>
  318. </span>
  319. </div>
  320. </form>
  321. <!-- /.search form -->
  322. <!-- sidebar menu: : style can be found in sidebar.less -->
  323. <ul class="sidebar-menu" data-widget="tree">
  324. <li class="header">MAIN NAVIGATION</li>
  325. <li class="treeview">
  326. <a href="#">
  327. <i class="fa fa-dashboard"></i> <span>Dashboard</span>
  328. <span class="pull-right-container">
  329. <i class="fa fa-angle-left pull-right"></i>
  330. </span>
  331. </a>
  332. <ul class="treeview-menu">
  333. <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
  334. <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
  335. </ul>
  336. </li>
  337. <li class="treeview">
  338. <a href="#">
  339. <i class="fa fa-files-o"></i>
  340. <span>Layout Options</span>
  341. <span class="pull-right-container">
  342. <span class="label label-primary pull-right">4</span>
  343. </span>
  344. </a>
  345. <ul class="treeview-menu">
  346. <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
  347. <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
  348. <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
  349. <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
  350. </ul>
  351. </li>
  352. <li>
  353. <a href="../widgets.html">
  354. <i class="fa fa-th"></i> <span>Widgets</span>
  355. <span class="pull-right-container">
  356. <small class="label pull-right bg-green">new</small>
  357. </span>
  358. </a>
  359. </li>
  360. <li class="treeview active">
  361. <a href="#">
  362. <i class="fa fa-pie-chart"></i>
  363. <span>Charts</span>
  364. <span class="pull-right-container">
  365. <i class="fa fa-angle-left pull-right"></i>
  366. </span>
  367. </a>
  368. <ul class="treeview-menu">
  369. <li><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
  370. <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
  371. <li class="active"><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
  372. <li><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
  373. </ul>
  374. </li>
  375. <li class="treeview">
  376. <a href="#">
  377. <i class="fa fa-laptop"></i>
  378. <span>UI Elements</span>
  379. <span class="pull-right-container">
  380. <i class="fa fa-angle-left pull-right"></i>
  381. </span>
  382. </a>
  383. <ul class="treeview-menu">
  384. <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
  385. <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
  386. <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
  387. <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
  388. <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
  389. <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
  390. </ul>
  391. </li>
  392. <li class="treeview">
  393. <a href="#">
  394. <i class="fa fa-edit"></i> <span>Forms</span>
  395. <span class="pull-right-container">
  396. <i class="fa fa-angle-left pull-right"></i>
  397. </span>
  398. </a>
  399. <ul class="treeview-menu">
  400. <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
  401. <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
  402. <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
  403. </ul>
  404. </li>
  405. <li class="treeview">
  406. <a href="#">
  407. <i class="fa fa-table"></i> <span>Tables</span>
  408. <span class="pull-right-container">
  409. <i class="fa fa-angle-left pull-right"></i>
  410. </span>
  411. </a>
  412. <ul class="treeview-menu">
  413. <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
  414. <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
  415. </ul>
  416. </li>
  417. <li>
  418. <a href="../calendar.html">
  419. <i class="fa fa-calendar"></i> <span>Calendar</span>
  420. <span class="pull-right-container">
  421. <small class="label pull-right bg-red">3</small>
  422. <small class="label pull-right bg-blue">17</small>
  423. </span>
  424. </a>
  425. </li>
  426. <li>
  427. <a href="../mailbox/mailbox.html">
  428. <i class="fa fa-envelope"></i> <span>Mailbox</span>
  429. <span class="pull-right-container">
  430. <small class="label pull-right bg-yellow">12</small>
  431. <small class="label pull-right bg-green">16</small>
  432. <small class="label pull-right bg-red">5</small>
  433. </span>
  434. </a>
  435. </li>
  436. <li class="treeview">
  437. <a href="#">
  438. <i class="fa fa-folder"></i> <span>Examples</span>
  439. <span class="pull-right-container">
  440. <i class="fa fa-angle-left pull-right"></i>
  441. </span>
  442. </a>
  443. <ul class="treeview-menu">
  444. <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
  445. <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
  446. <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
  447. <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
  448. <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
  449. <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
  450. <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
  451. <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
  452. <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
  453. </ul>
  454. </li>
  455. <li class="treeview">
  456. <a href="#">
  457. <i class="fa fa-share"></i> <span>Multilevel</span>
  458. <span class="pull-right-container">
  459. <i class="fa fa-angle-left pull-right"></i>
  460. </span>
  461. </a>
  462. <ul class="treeview-menu">
  463. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  464. <li class="treeview">
  465. <a href="#"><i class="fa fa-circle-o"></i> Level One
  466. <span class="pull-right-container">
  467. <i class="fa fa-angle-left pull-right"></i>
  468. </span>
  469. </a>
  470. <ul class="treeview-menu">
  471. <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
  472. <li class="treeview">
  473. <a href="#"><i class="fa fa-circle-o"></i> Level Two
  474. <span class="pull-right-container">
  475. <i class="fa fa-angle-left pull-right"></i>
  476. </span>
  477. </a>
  478. <ul class="treeview-menu">
  479. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  480. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  481. </ul>
  482. </li>
  483. </ul>
  484. </li>
  485. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  486. </ul>
  487. </li>
  488. <li><a href="https://adminlte.io/docs"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
  489. <li class="header">LABELS</li>
  490. <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
  491. <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
  492. <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
  493. </ul>
  494. </section>
  495. <!-- /.sidebar -->
  496. </aside>
  497. <!-- Content Wrapper. Contains page content -->
  498. <div class="content-wrapper">
  499. <!-- Content Header (Page header) -->
  500. <section class="content-header">
  501. <h1>
  502. Flot Charts
  503. <small>preview sample</small>
  504. </h1>
  505. <ol class="breadcrumb">
  506. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  507. <li><a href="#">Charts</a></li>
  508. <li class="active">Flot</li>
  509. </ol>
  510. </section>
  511. <!-- Main content -->
  512. <section class="content">
  513. <div class="row">
  514. <div class="col-xs-12">
  515. <!-- interactive chart -->
  516. <div class="box box-primary">
  517. <div class="box-header with-border">
  518. <i class="fa fa-bar-chart-o"></i>
  519. <h3 class="box-title">Interactive Area Chart</h3>
  520. <div class="box-tools pull-right">
  521. Real time
  522. <div class="btn-group" id="realtime" data-toggle="btn-toggle">
  523. <button type="button" class="btn btn-default btn-xs active" data-toggle="on">On</button>
  524. <button type="button" class="btn btn-default btn-xs" data-toggle="off">Off</button>
  525. </div>
  526. </div>
  527. </div>
  528. <div class="box-body">
  529. <div id="interactive" style="height: 300px;"></div>
  530. </div>
  531. <!-- /.box-body-->
  532. </div>
  533. <!-- /.box -->
  534. </div>
  535. <!-- /.col -->
  536. </div>
  537. <!-- /.row -->
  538. <div class="row">
  539. <div class="col-md-6">
  540. <!-- Line chart -->
  541. <div class="box box-primary">
  542. <div class="box-header with-border">
  543. <i class="fa fa-bar-chart-o"></i>
  544. <h3 class="box-title">Line Chart</h3>
  545. <div class="box-tools pull-right">
  546. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  547. </button>
  548. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  549. </div>
  550. </div>
  551. <div class="box-body">
  552. <div id="line-chart" style="height: 300px;"></div>
  553. </div>
  554. <!-- /.box-body-->
  555. </div>
  556. <!-- /.box -->
  557. <!-- Area chart -->
  558. <div class="box box-primary">
  559. <div class="box-header with-border">
  560. <i class="fa fa-bar-chart-o"></i>
  561. <h3 class="box-title">Full Width Area Chart</h3>
  562. <div class="box-tools pull-right">
  563. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  564. </button>
  565. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  566. </div>
  567. </div>
  568. <div class="box-body">
  569. <div id="area-chart" style="height: 338px;" class="full-width-chart"></div>
  570. </div>
  571. <!-- /.box-body-->
  572. </div>
  573. <!-- /.box -->
  574. </div>
  575. <!-- /.col -->
  576. <div class="col-md-6">
  577. <!-- Bar chart -->
  578. <div class="box box-primary">
  579. <div class="box-header with-border">
  580. <i class="fa fa-bar-chart-o"></i>
  581. <h3 class="box-title">Bar Chart</h3>
  582. <div class="box-tools pull-right">
  583. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  584. </button>
  585. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  586. </div>
  587. </div>
  588. <div class="box-body">
  589. <div id="bar-chart" style="height: 300px;"></div>
  590. </div>
  591. <!-- /.box-body-->
  592. </div>
  593. <!-- /.box -->
  594. <!-- Donut chart -->
  595. <div class="box box-primary">
  596. <div class="box-header with-border">
  597. <i class="fa fa-bar-chart-o"></i>
  598. <h3 class="box-title">Donut Chart</h3>
  599. <div class="box-tools pull-right">
  600. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  601. </button>
  602. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  603. </div>
  604. </div>
  605. <div class="box-body">
  606. <div id="donut-chart" style="height: 300px;"></div>
  607. </div>
  608. <!-- /.box-body-->
  609. </div>
  610. <!-- /.box -->
  611. </div>
  612. <!-- /.col -->
  613. </div>
  614. <!-- /.row -->
  615. </section>
  616. <!-- /.content -->
  617. </div>
  618. <!-- /.content-wrapper -->
  619. <footer class="main-footer">
  620. <div class="pull-right hidden-xs">
  621. <b>Version</b> 2.4.0
  622. </div>
  623. <strong>Copyright &copy; 2014-2016 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights
  624. reserved.
  625. </footer>
  626. <!-- Control Sidebar -->
  627. <aside class="control-sidebar control-sidebar-dark">
  628. <!-- Create the tabs -->
  629. <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
  630. <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
  631. <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
  632. </ul>
  633. <!-- Tab panes -->
  634. <div class="tab-content">
  635. <!-- Home tab content -->
  636. <div class="tab-pane" id="control-sidebar-home-tab">
  637. <h3 class="control-sidebar-heading">Recent Activity</h3>
  638. <ul class="control-sidebar-menu">
  639. <li>
  640. <a href="javascript:void(0)">
  641. <i class="menu-icon fa fa-birthday-cake bg-red"></i>
  642. <div class="menu-info">
  643. <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
  644. <p>Will be 23 on April 24th</p>
  645. </div>
  646. </a>
  647. </li>
  648. <li>
  649. <a href="javascript:void(0)">
  650. <i class="menu-icon fa fa-user bg-yellow"></i>
  651. <div class="menu-info">
  652. <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
  653. <p>New phone +1(800)555-1234</p>
  654. </div>
  655. </a>
  656. </li>
  657. <li>
  658. <a href="javascript:void(0)">
  659. <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
  660. <div class="menu-info">
  661. <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
  662. <p>nora@example.com</p>
  663. </div>
  664. </a>
  665. </li>
  666. <li>
  667. <a href="javascript:void(0)">
  668. <i class="menu-icon fa fa-file-code-o bg-green"></i>
  669. <div class="menu-info">
  670. <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
  671. <p>Execution time 5 seconds</p>
  672. </div>
  673. </a>
  674. </li>
  675. </ul>
  676. <!-- /.control-sidebar-menu -->
  677. <h3 class="control-sidebar-heading">Tasks Progress</h3>
  678. <ul class="control-sidebar-menu">
  679. <li>
  680. <a href="javascript:void(0)">
  681. <h4 class="control-sidebar-subheading">
  682. Custom Template Design
  683. <span class="label label-danger pull-right">70%</span>
  684. </h4>
  685. <div class="progress progress-xxs">
  686. <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
  687. </div>
  688. </a>
  689. </li>
  690. <li>
  691. <a href="javascript:void(0)">
  692. <h4 class="control-sidebar-subheading">
  693. Update Resume
  694. <span class="label label-success pull-right">95%</span>
  695. </h4>
  696. <div class="progress progress-xxs">
  697. <div class="progress-bar progress-bar-success" style="width: 95%"></div>
  698. </div>
  699. </a>
  700. </li>
  701. <li>
  702. <a href="javascript:void(0)">
  703. <h4 class="control-sidebar-subheading">
  704. Laravel Integration
  705. <span class="label label-warning pull-right">50%</span>
  706. </h4>
  707. <div class="progress progress-xxs">
  708. <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
  709. </div>
  710. </a>
  711. </li>
  712. <li>
  713. <a href="javascript:void(0)">
  714. <h4 class="control-sidebar-subheading">
  715. Back End Framework
  716. <span class="label label-primary pull-right">68%</span>
  717. </h4>
  718. <div class="progress progress-xxs">
  719. <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
  720. </div>
  721. </a>
  722. </li>
  723. </ul>
  724. <!-- /.control-sidebar-menu -->
  725. </div>
  726. <!-- /.tab-pane -->
  727. <!-- Stats tab content -->
  728. <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
  729. <!-- /.tab-pane -->
  730. <!-- Settings tab content -->
  731. <div class="tab-pane" id="control-sidebar-settings-tab">
  732. <form method="post">
  733. <h3 class="control-sidebar-heading">General Settings</h3>
  734. <div class="form-group">
  735. <label class="control-sidebar-subheading">
  736. Report panel usage
  737. <input type="checkbox" class="pull-right" checked>
  738. </label>
  739. <p>
  740. Some information about this general settings option
  741. </p>
  742. </div>
  743. <!-- /.form-group -->
  744. <div class="form-group">
  745. <label class="control-sidebar-subheading">
  746. Allow mail redirect
  747. <input type="checkbox" class="pull-right" checked>
  748. </label>
  749. <p>
  750. Other sets of options are available
  751. </p>
  752. </div>
  753. <!-- /.form-group -->
  754. <div class="form-group">
  755. <label class="control-sidebar-subheading">
  756. Expose author name in posts
  757. <input type="checkbox" class="pull-right" checked>
  758. </label>
  759. <p>
  760. Allow the user to show his name in blog posts
  761. </p>
  762. </div>
  763. <!-- /.form-group -->
  764. <h3 class="control-sidebar-heading">Chat Settings</h3>
  765. <div class="form-group">
  766. <label class="control-sidebar-subheading">
  767. Show me as online
  768. <input type="checkbox" class="pull-right" checked>
  769. </label>
  770. </div>
  771. <!-- /.form-group -->
  772. <div class="form-group">
  773. <label class="control-sidebar-subheading">
  774. Turn off notifications
  775. <input type="checkbox" class="pull-right">
  776. </label>
  777. </div>
  778. <!-- /.form-group -->
  779. <div class="form-group">
  780. <label class="control-sidebar-subheading">
  781. Delete chat history
  782. <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
  783. </label>
  784. </div>
  785. <!-- /.form-group -->
  786. </form>
  787. </div>
  788. <!-- /.tab-pane -->
  789. </div>
  790. </aside>
  791. <!-- /.control-sidebar -->
  792. <!-- Add the sidebar's background. This div must be placed
  793. immediately after the control sidebar -->
  794. <div class="control-sidebar-bg"></div>
  795. </div>
  796. <!-- ./wrapper -->
  797. <!-- jQuery 3 -->
  798. <script src="../../bower_components/jquery/dist/jquery.min.js"></script>
  799. <!-- Bootstrap 3.3.7 -->
  800. <script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  801. <!-- FastClick -->
  802. <script src="../../bower_components/fastclick/lib/fastclick.js"></script>
  803. <!-- AdminLTE App -->
  804. <script src="../../dist/js/adminlte.min.js"></script>
  805. <!-- AdminLTE for demo purposes -->
  806. <script src="../../dist/js/demo.js"></script>
  807. <!-- FLOT CHARTS -->
  808. <script src="../../bower_components/Flot/jquery.flot.js"></script>
  809. <!-- FLOT RESIZE PLUGIN - allows the chart to redraw when the window is resized -->
  810. <script src="../../bower_components/Flot/jquery.flot.resize.js"></script>
  811. <!-- FLOT PIE PLUGIN - also used to draw donut charts -->
  812. <script src="../../bower_components/Flot/jquery.flot.pie.js"></script>
  813. <!-- FLOT CATEGORIES PLUGIN - Used to draw bar charts -->
  814. <script src="../../bower_components/Flot/jquery.flot.categories.js"></script>
  815. <!-- Page script -->
  816. <script>
  817. $(function () {
  818. /*
  819. * Flot Interactive Chart
  820. * -----------------------
  821. */
  822. // We use an inline data source in the example, usually data would
  823. // be fetched from a server
  824. var data = [], totalPoints = 100
  825. function getRandomData() {
  826. if (data.length > 0)
  827. data = data.slice(1)
  828. // Do a random walk
  829. while (data.length < totalPoints) {
  830. var prev = data.length > 0 ? data[data.length - 1] : 50,
  831. y = prev + Math.random() * 10 - 5
  832. if (y < 0) {
  833. y = 0
  834. } else if (y > 100) {
  835. y = 100
  836. }
  837. data.push(y)
  838. }
  839. // Zip the generated y values with the x values
  840. var res = []
  841. for (var i = 0; i < data.length; ++i) {
  842. res.push([i, data[i]])
  843. }
  844. return res
  845. }
  846. var interactive_plot = $.plot('#interactive', [getRandomData()], {
  847. grid : {
  848. borderColor: '#f3f3f3',
  849. borderWidth: 1,
  850. tickColor : '#f3f3f3'
  851. },
  852. series: {
  853. shadowSize: 0, // Drawing is faster without shadows
  854. color : '#3c8dbc'
  855. },
  856. lines : {
  857. fill : true, //Converts the line chart to area chart
  858. color: '#3c8dbc'
  859. },
  860. yaxis : {
  861. min : 0,
  862. max : 100,
  863. show: true
  864. },
  865. xaxis : {
  866. show: true
  867. }
  868. })
  869. var updateInterval = 500 //Fetch data ever x milliseconds
  870. var realtime = 'on' //If == to on then fetch data every x seconds. else stop fetching
  871. function update() {
  872. interactive_plot.setData([getRandomData()])
  873. // Since the axes don't change, we don't need to call plot.setupGrid()
  874. interactive_plot.draw()
  875. if (realtime === 'on')
  876. setTimeout(update, updateInterval)
  877. }
  878. //INITIALIZE REALTIME DATA FETCHING
  879. if (realtime === 'on') {
  880. update()
  881. }
  882. //REALTIME TOGGLE
  883. $('#realtime .btn').click(function () {
  884. if ($(this).data('toggle') === 'on') {
  885. realtime = 'on'
  886. }
  887. else {
  888. realtime = 'off'
  889. }
  890. update()
  891. })
  892. /*
  893. * END INTERACTIVE CHART
  894. */
  895. /*
  896. * LINE CHART
  897. * ----------
  898. */
  899. //LINE randomly generated data
  900. var sin = [], cos = []
  901. for (var i = 0; i < 14; i += 0.5) {
  902. sin.push([i, Math.sin(i)])
  903. cos.push([i, Math.cos(i)])
  904. }
  905. var line_data1 = {
  906. data : sin,
  907. color: '#3c8dbc'
  908. }
  909. var line_data2 = {
  910. data : cos,
  911. color: '#00c0ef'
  912. }
  913. $.plot('#line-chart', [line_data1, line_data2], {
  914. grid : {
  915. hoverable : true,
  916. borderColor: '#f3f3f3',
  917. borderWidth: 1,
  918. tickColor : '#f3f3f3'
  919. },
  920. series: {
  921. shadowSize: 0,
  922. lines : {
  923. show: true
  924. },
  925. points : {
  926. show: true
  927. }
  928. },
  929. lines : {
  930. fill : false,
  931. color: ['#3c8dbc', '#f56954']
  932. },
  933. yaxis : {
  934. show: true
  935. },
  936. xaxis : {
  937. show: true
  938. }
  939. })
  940. //Initialize tooltip on hover
  941. $('<div class="tooltip-inner" id="line-chart-tooltip"></div>').css({
  942. position: 'absolute',
  943. display : 'none',
  944. opacity : 0.8
  945. }).appendTo('body')
  946. $('#line-chart').bind('plothover', function (event, pos, item) {
  947. if (item) {
  948. var x = item.datapoint[0].toFixed(2),
  949. y = item.datapoint[1].toFixed(2)
  950. $('#line-chart-tooltip').html(item.series.label + ' of ' + x + ' = ' + y)
  951. .css({ top: item.pageY + 5, left: item.pageX + 5 })
  952. .fadeIn(200)
  953. } else {
  954. $('#line-chart-tooltip').hide()
  955. }
  956. })
  957. /* END LINE CHART */
  958. /*
  959. * FULL WIDTH STATIC AREA CHART
  960. * -----------------
  961. */
  962. var areaData = [[2, 88.0], [3, 93.3], [4, 102.0], [5, 108.5], [6, 115.7], [7, 115.6],
  963. [8, 124.6], [9, 130.3], [10, 134.3], [11, 141.4], [12, 146.5], [13, 151.7], [14, 159.9],
  964. [15, 165.4], [16, 167.8], [17, 168.7], [18, 169.5], [19, 168.0]]
  965. $.plot('#area-chart', [areaData], {
  966. grid : {
  967. borderWidth: 0
  968. },
  969. series: {
  970. shadowSize: 0, // Drawing is faster without shadows
  971. color : '#00c0ef'
  972. },
  973. lines : {
  974. fill: true //Converts the line chart to area chart
  975. },
  976. yaxis : {
  977. show: false
  978. },
  979. xaxis : {
  980. show: false
  981. }
  982. })
  983. /* END AREA CHART */
  984. /*
  985. * BAR CHART
  986. * ---------
  987. */
  988. var bar_data = {
  989. data : [['January', 10], ['February', 8], ['March', 4], ['April', 13], ['May', 17], ['June', 9]],
  990. color: '#3c8dbc'
  991. }
  992. $.plot('#bar-chart', [bar_data], {
  993. grid : {
  994. borderWidth: 1,
  995. borderColor: '#f3f3f3',
  996. tickColor : '#f3f3f3'
  997. },
  998. series: {
  999. bars: {
  1000. show : true,
  1001. barWidth: 0.5,
  1002. align : 'center'
  1003. }
  1004. },
  1005. xaxis : {
  1006. mode : 'categories',
  1007. tickLength: 0
  1008. }
  1009. })
  1010. /* END BAR CHART */
  1011. /*
  1012. * DONUT CHART
  1013. * -----------
  1014. */
  1015. var donutData = [
  1016. { label: 'Series2', data: 30, color: '#3c8dbc' },
  1017. { label: 'Series3', data: 20, color: '#0073b7' },
  1018. { label: 'Series4', data: 50, color: '#00c0ef' }
  1019. ]
  1020. $.plot('#donut-chart', donutData, {
  1021. series: {
  1022. pie: {
  1023. show : true,
  1024. radius : 1,
  1025. innerRadius: 0.5,
  1026. label : {
  1027. show : true,
  1028. radius : 2 / 3,
  1029. formatter: labelFormatter,
  1030. threshold: 0.1
  1031. }
  1032. }
  1033. },
  1034. legend: {
  1035. show: false
  1036. }
  1037. })
  1038. /*
  1039. * END DONUT CHART
  1040. */
  1041. })
  1042. /*
  1043. * Custom Label formatter
  1044. * ----------------------
  1045. */
  1046. function labelFormatter(label, series) {
  1047. return '<div style="font-size:13px; text-align:center; padding:2px; color: #fff; font-weight: 600;">'
  1048. + label
  1049. + '<br>'
  1050. + Math.round(series.percent) + '%</div>'
  1051. }
  1052. </script>
  1053. </body>
  1054. </html>