chartjs.php 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  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 | ChartJS</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. </ul>
  76. </li>
  77. <li class="footer"><a href="#">See All Messages</a></li>
  78. </ul>
  79. </li>
  80. <!-- Notifications: style can be found in dropdown.less -->
  81. <li class="dropdown notifications-menu">
  82. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  83. <i class="fa fa-bell-o"></i>
  84. <span class="label label-warning">10</span>
  85. </a>
  86. <ul class="dropdown-menu">
  87. <li class="header">You have 10 notifications</li>
  88. <li>
  89. <!-- inner menu: contains the actual data -->
  90. <ul class="menu">
  91. <li>
  92. <a href="#">
  93. <i class="fa fa-users text-aqua"></i> 5 new members joined today
  94. </a>
  95. </li>
  96. </ul>
  97. </li>
  98. <li class="footer"><a href="#">View all</a></li>
  99. </ul>
  100. </li>
  101. <!-- Tasks: style can be found in dropdown.less -->
  102. <li class="dropdown tasks-menu">
  103. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  104. <i class="fa fa-flag-o"></i>
  105. <span class="label label-danger">9</span>
  106. </a>
  107. <ul class="dropdown-menu">
  108. <li class="header">You have 9 tasks</li>
  109. <li>
  110. <!-- inner menu: contains the actual data -->
  111. <ul class="menu">
  112. <li><!-- Task item -->
  113. <a href="#">
  114. <h3>
  115. Design some buttons
  116. <small class="pull-right">20%</small>
  117. </h3>
  118. <div class="progress xs">
  119. <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar"
  120. aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  121. <span class="sr-only">20% Complete</span>
  122. </div>
  123. </div>
  124. </a>
  125. </li>
  126. <!-- end task item -->
  127. </ul>
  128. </li>
  129. <li class="footer">
  130. <a href="#">View all tasks</a>
  131. </li>
  132. </ul>
  133. </li>
  134. <!-- User Account: style can be found in dropdown.less -->
  135. <li class="dropdown user user-menu">
  136. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  137. <img src="../../dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
  138. <span class="hidden-xs">Alexander Pierce</span>
  139. </a>
  140. <ul class="dropdown-menu">
  141. <!-- User image -->
  142. <li class="user-header">
  143. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  144. <p>
  145. Alexander Pierce - Web Developer
  146. <small>Member since Nov. 2012</small>
  147. </p>
  148. </li>
  149. <!-- Menu Body -->
  150. <li class="user-body">
  151. <div class="row">
  152. <div class="col-xs-4 text-center">
  153. <a href="#">Followers</a>
  154. </div>
  155. <div class="col-xs-4 text-center">
  156. <a href="#">Sales</a>
  157. </div>
  158. <div class="col-xs-4 text-center">
  159. <a href="#">Friends</a>
  160. </div>
  161. </div>
  162. <!-- /.row -->
  163. </li>
  164. <!-- Menu Footer-->
  165. <li class="user-footer">
  166. <div class="pull-left">
  167. <a href="#" class="btn btn-default btn-flat">Profile</a>
  168. </div>
  169. <div class="pull-right">
  170. <a href="#" class="btn btn-default btn-flat">Sign out</a>
  171. </div>
  172. </li>
  173. </ul>
  174. </li>
  175. <!-- Control Sidebar Toggle Button -->
  176. <li>
  177. <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
  178. </li>
  179. </ul>
  180. </div>
  181. </nav>
  182. </header>
  183. <!-- Left side column. contains the logo and sidebar -->
  184. <aside class="main-sidebar">
  185. <!-- sidebar: style can be found in sidebar.less -->
  186. <section class="sidebar">
  187. <!-- Sidebar user panel -->
  188. <div class="user-panel">
  189. <div class="pull-left image">
  190. <img src="../../dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
  191. </div>
  192. <div class="pull-left info">
  193. <p>Alexander Pierce</p>
  194. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  195. </div>
  196. </div>
  197. <!-- search form -->
  198. <form action="#" method="get" class="sidebar-form">
  199. <div class="input-group">
  200. <input type="text" name="q" class="form-control" placeholder="Search...">
  201. <span class="input-group-btn">
  202. <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
  203. </button>
  204. </span>
  205. </div>
  206. </form>
  207. <!-- /.search form -->
  208. <!-- sidebar menu: : style can be found in sidebar.less -->
  209. <ul class="sidebar-menu" data-widget="tree">
  210. <li class="header">MAIN NAVIGATION</li>
  211. <li class="treeview">
  212. <a href="#">
  213. <i class="fa fa-dashboard"></i> <span>Dashboard</span>
  214. <span class="pull-right-container">
  215. <i class="fa fa-angle-left pull-right"></i>
  216. </span>
  217. </a>
  218. <ul class="treeview-menu">
  219. <li><a href="../../index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
  220. <li><a href="../../index2.html"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
  221. </ul>
  222. </li>
  223. <li class="treeview">
  224. <a href="#">
  225. <i class="fa fa-files-o"></i>
  226. <span>Layout Options</span>
  227. <span class="pull-right-container">
  228. <span class="label label-primary pull-right">4</span>
  229. </span>
  230. </a>
  231. <ul class="treeview-menu">
  232. <li><a href="../layout/top-nav.html"><i class="fa fa-circle-o"></i> Top Navigation</a></li>
  233. <li><a href="../layout/boxed.html"><i class="fa fa-circle-o"></i> Boxed</a></li>
  234. <li><a href="../layout/fixed.html"><i class="fa fa-circle-o"></i> Fixed</a></li>
  235. <li><a href="../layout/collapsed-sidebar.html"><i class="fa fa-circle-o"></i> Collapsed Sidebar</a></li>
  236. </ul>
  237. </li>
  238. <li>
  239. <a href="../widgets.html">
  240. <i class="fa fa-th"></i> <span>Widgets</span>
  241. <span class="pull-right-container">
  242. <small class="label pull-right bg-green">new</small>
  243. </span>
  244. </a>
  245. </li>
  246. <li class="treeview active">
  247. <a href="#">
  248. <i class="fa fa-pie-chart"></i>
  249. <span>Charts</span>
  250. <span class="pull-right-container">
  251. <i class="fa fa-angle-left pull-right"></i>
  252. </span>
  253. </a>
  254. <ul class="treeview-menu">
  255. <li class="active"><a href="chartjs.html"><i class="fa fa-circle-o"></i> ChartJS</a></li>
  256. <li><a href="morris.html"><i class="fa fa-circle-o"></i> Morris</a></li>
  257. <li><a href="flot.html"><i class="fa fa-circle-o"></i> Flot</a></li>
  258. <li><a href="inline.html"><i class="fa fa-circle-o"></i> Inline charts</a></li>
  259. </ul>
  260. </li>
  261. <li class="treeview">
  262. <a href="#">
  263. <i class="fa fa-laptop"></i>
  264. <span>UI Elements</span>
  265. <span class="pull-right-container">
  266. <i class="fa fa-angle-left pull-right"></i>
  267. </span>
  268. </a>
  269. <ul class="treeview-menu">
  270. <li><a href="../UI/general.html"><i class="fa fa-circle-o"></i> General</a></li>
  271. <li><a href="../UI/icons.html"><i class="fa fa-circle-o"></i> Icons</a></li>
  272. <li><a href="../UI/buttons.html"><i class="fa fa-circle-o"></i> Buttons</a></li>
  273. <li><a href="../UI/sliders.html"><i class="fa fa-circle-o"></i> Sliders</a></li>
  274. <li><a href="../UI/timeline.html"><i class="fa fa-circle-o"></i> Timeline</a></li>
  275. <li><a href="../UI/modals.html"><i class="fa fa-circle-o"></i> Modals</a></li>
  276. </ul>
  277. </li>
  278. <li class="treeview">
  279. <a href="#">
  280. <i class="fa fa-edit"></i> <span>Forms</span>
  281. <span class="pull-right-container">
  282. <i class="fa fa-angle-left pull-right"></i>
  283. </span>
  284. </a>
  285. <ul class="treeview-menu">
  286. <li><a href="../forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
  287. <li><a href="../forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
  288. <li><a href="../forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
  289. </ul>
  290. </li>
  291. <li class="treeview">
  292. <a href="#">
  293. <i class="fa fa-table"></i> <span>Tables</span>
  294. <span class="pull-right-container">
  295. <i class="fa fa-angle-left pull-right"></i>
  296. </span>
  297. </a>
  298. <ul class="treeview-menu">
  299. <li><a href="../tables/simple.html"><i class="fa fa-circle-o"></i> Simple tables</a></li>
  300. <li><a href="../tables/data.html"><i class="fa fa-circle-o"></i> Data tables</a></li>
  301. </ul>
  302. </li>
  303. <li>
  304. <a href="../calendar.html">
  305. <i class="fa fa-calendar"></i> <span>Calendar</span>
  306. <span class="pull-right-container">
  307. <small class="label pull-right bg-red">3</small>
  308. <small class="label pull-right bg-blue">17</small>
  309. </span>
  310. </a>
  311. </li>
  312. <li>
  313. <a href="../mailbox/mailbox.html">
  314. <i class="fa fa-envelope"></i> <span>Mailbox</span>
  315. <span class="pull-right-container">
  316. <small class="label pull-right bg-yellow">12</small>
  317. <small class="label pull-right bg-green">16</small>
  318. <small class="label pull-right bg-red">5</small>
  319. </span>
  320. </a>
  321. </li>
  322. <li class="treeview">
  323. <a href="#">
  324. <i class="fa fa-folder"></i> <span>Examples</span>
  325. <span class="pull-right-container">
  326. <i class="fa fa-angle-left pull-right"></i>
  327. </span>
  328. </a>
  329. <ul class="treeview-menu">
  330. <li><a href="../examples/invoice.html"><i class="fa fa-circle-o"></i> Invoice</a></li>
  331. <li><a href="../examples/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
  332. <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
  333. <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
  334. <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
  335. <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
  336. <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
  337. <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
  338. <li><a href="../examples/pace.html"><i class="fa fa-circle-o"></i> Pace Page</a></li>
  339. </ul>
  340. </li>
  341. <li class="treeview">
  342. <a href="#">
  343. <i class="fa fa-share"></i> <span>Multilevel</span>
  344. <span class="pull-right-container">
  345. <i class="fa fa-angle-left pull-right"></i>
  346. </span>
  347. </a>
  348. <ul class="treeview-menu">
  349. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  350. <li class="treeview">
  351. <a href="#"><i class="fa fa-circle-o"></i> Level One
  352. <span class="pull-right-container">
  353. <i class="fa fa-angle-left pull-right"></i>
  354. </span>
  355. </a>
  356. <ul class="treeview-menu">
  357. <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
  358. <li class="treeview">
  359. <a href="#"><i class="fa fa-circle-o"></i> Level Two
  360. <span class="pull-right-container">
  361. <i class="fa fa-angle-left pull-right"></i>
  362. </span>
  363. </a>
  364. <ul class="treeview-menu">
  365. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  366. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  367. </ul>
  368. </li>
  369. </ul>
  370. </li>
  371. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  372. </ul>
  373. </li>
  374. <li><a href="https://adminlte.io/docs"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
  375. <li class="header">LABELS</li>
  376. <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
  377. <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
  378. <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
  379. </ul>
  380. </section>
  381. <!-- /.sidebar -->
  382. </aside>
  383. <!-- Content Wrapper. Contains page content -->
  384. <div class="content-wrapper">
  385. <!-- Content Header (Page header) -->
  386. <section class="content-header">
  387. <h1>
  388. ChartJS
  389. <small>Preview sample</small>
  390. </h1>
  391. <ol class="breadcrumb">
  392. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  393. <li><a href="#">Charts</a></li>
  394. <li class="active">ChartJS</li>
  395. </ol>
  396. </section>
  397. <!-- Main content -->
  398. <section class="content">
  399. <div class="row">
  400. <div class="col-md-6">
  401. <!-- AREA CHART -->
  402. <div class="box box-primary">
  403. <div class="box-header with-border">
  404. <h3 class="box-title">Area Chart</h3>
  405. <div class="box-tools pull-right">
  406. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  407. </button>
  408. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  409. </div>
  410. </div>
  411. <div class="box-body">
  412. <div class="chart">
  413. <canvas id="areaChart" style="height:250px"></canvas>
  414. </div>
  415. </div>
  416. <!-- /.box-body -->
  417. </div>
  418. <!-- /.box -->
  419. <!-- DONUT CHART -->
  420. <div class="box box-danger">
  421. <div class="box-header with-border">
  422. <h3 class="box-title">Donut Chart</h3>
  423. <div class="box-tools pull-right">
  424. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  425. </button>
  426. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  427. </div>
  428. </div>
  429. <div class="box-body">
  430. <canvas id="pieChart" style="height:250px"></canvas>
  431. </div>
  432. <!-- /.box-body -->
  433. </div>
  434. <!-- /.box -->
  435. </div>
  436. <!-- /.col (LEFT) -->
  437. <div class="col-md-6">
  438. <!-- LINE CHART -->
  439. <div class="box box-info">
  440. <div class="box-header with-border">
  441. <h3 class="box-title">Line Chart</h3>
  442. <div class="box-tools pull-right">
  443. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  444. </button>
  445. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  446. </div>
  447. </div>
  448. <div class="box-body">
  449. <div class="chart">
  450. <canvas id="lineChart" style="height:250px"></canvas>
  451. </div>
  452. </div>
  453. <!-- /.box-body -->
  454. </div>
  455. <!-- /.box -->
  456. <!-- BAR CHART -->
  457. <div class="box box-success">
  458. <div class="box-header with-border">
  459. <h3 class="box-title">Bar Chart</h3>
  460. <div class="box-tools pull-right">
  461. <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
  462. </button>
  463. <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  464. </div>
  465. </div>
  466. <div class="box-body">
  467. <div class="chart">
  468. <canvas id="barChart" style="height:230px"></canvas>
  469. </div>
  470. </div>
  471. <!-- /.box-body -->
  472. </div>
  473. <!-- /.box -->
  474. </div>
  475. <!-- /.col (RIGHT) -->
  476. </div>
  477. <!-- /.row -->
  478. </section>
  479. <!-- /.content -->
  480. </div>
  481. <!-- /.content-wrapper -->
  482. <footer class="main-footer">
  483. <div class="pull-right hidden-xs">
  484. <b>Version</b> 2.4.0
  485. </div>
  486. <strong>Copyright &copy; 2014-2016 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights
  487. reserved.
  488. </footer>
  489. <!-- Control Sidebar -->
  490. <aside class="control-sidebar control-sidebar-dark">
  491. <!-- Create the tabs -->
  492. <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
  493. <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
  494. <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
  495. </ul>
  496. <!-- Tab panes -->
  497. <div class="tab-content">
  498. <!-- Home tab content -->
  499. <div class="tab-pane" id="control-sidebar-home-tab">
  500. <h3 class="control-sidebar-heading">Recent Activity</h3>
  501. <ul class="control-sidebar-menu">
  502. <li>
  503. <a href="javascript:void(0)">
  504. <i class="menu-icon fa fa-birthday-cake bg-red"></i>
  505. <div class="menu-info">
  506. <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
  507. <p>Will be 23 on April 24th</p>
  508. </div>
  509. </a>
  510. </li>
  511. <li>
  512. <a href="javascript:void(0)">
  513. <i class="menu-icon fa fa-user bg-yellow"></i>
  514. <div class="menu-info">
  515. <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
  516. <p>New phone +1(800)555-1234</p>
  517. </div>
  518. </a>
  519. </li>
  520. <li>
  521. <a href="javascript:void(0)">
  522. <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
  523. <div class="menu-info">
  524. <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
  525. <p>nora@example.com</p>
  526. </div>
  527. </a>
  528. </li>
  529. <li>
  530. <a href="javascript:void(0)">
  531. <i class="menu-icon fa fa-file-code-o bg-green"></i>
  532. <div class="menu-info">
  533. <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
  534. <p>Execution time 5 seconds</p>
  535. </div>
  536. </a>
  537. </li>
  538. </ul>
  539. <!-- /.control-sidebar-menu -->
  540. <h3 class="control-sidebar-heading">Tasks Progress</h3>
  541. <ul class="control-sidebar-menu">
  542. <li>
  543. <a href="javascript:void(0)">
  544. <h4 class="control-sidebar-subheading">
  545. Custom Template Design
  546. <span class="label label-danger pull-right">70%</span>
  547. </h4>
  548. <div class="progress progress-xxs">
  549. <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
  550. </div>
  551. </a>
  552. </li>
  553. <li>
  554. <a href="javascript:void(0)">
  555. <h4 class="control-sidebar-subheading">
  556. Update Resume
  557. <span class="label label-success pull-right">95%</span>
  558. </h4>
  559. <div class="progress progress-xxs">
  560. <div class="progress-bar progress-bar-success" style="width: 95%"></div>
  561. </div>
  562. </a>
  563. </li>
  564. <li>
  565. <a href="javascript:void(0)">
  566. <h4 class="control-sidebar-subheading">
  567. Laravel Integration
  568. <span class="label label-warning pull-right">50%</span>
  569. </h4>
  570. <div class="progress progress-xxs">
  571. <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
  572. </div>
  573. </a>
  574. </li>
  575. <li>
  576. <a href="javascript:void(0)">
  577. <h4 class="control-sidebar-subheading">
  578. Back End Framework
  579. <span class="label label-primary pull-right">68%</span>
  580. </h4>
  581. <div class="progress progress-xxs">
  582. <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
  583. </div>
  584. </a>
  585. </li>
  586. </ul>
  587. <!-- /.control-sidebar-menu -->
  588. </div>
  589. <!-- /.tab-pane -->
  590. <!-- Stats tab content -->
  591. <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
  592. <!-- /.tab-pane -->
  593. <!-- Settings tab content -->
  594. <div class="tab-pane" id="control-sidebar-settings-tab">
  595. <form method="post">
  596. <h3 class="control-sidebar-heading">General Settings</h3>
  597. <div class="form-group">
  598. <label class="control-sidebar-subheading">
  599. Report panel usage
  600. <input type="checkbox" class="pull-right" checked>
  601. </label>
  602. <p>
  603. Some information about this general settings option
  604. </p>
  605. </div>
  606. <!-- /.form-group -->
  607. <div class="form-group">
  608. <label class="control-sidebar-subheading">
  609. Allow mail redirect
  610. <input type="checkbox" class="pull-right" checked>
  611. </label>
  612. <p>
  613. Other sets of options are available
  614. </p>
  615. </div>
  616. <!-- /.form-group -->
  617. <div class="form-group">
  618. <label class="control-sidebar-subheading">
  619. Expose author name in posts
  620. <input type="checkbox" class="pull-right" checked>
  621. </label>
  622. <p>
  623. Allow the user to show his name in blog posts
  624. </p>
  625. </div>
  626. <!-- /.form-group -->
  627. <h3 class="control-sidebar-heading">Chat Settings</h3>
  628. <div class="form-group">
  629. <label class="control-sidebar-subheading">
  630. Show me as online
  631. <input type="checkbox" class="pull-right" checked>
  632. </label>
  633. </div>
  634. <!-- /.form-group -->
  635. <div class="form-group">
  636. <label class="control-sidebar-subheading">
  637. Turn off notifications
  638. <input type="checkbox" class="pull-right">
  639. </label>
  640. </div>
  641. <!-- /.form-group -->
  642. <div class="form-group">
  643. <label class="control-sidebar-subheading">
  644. Delete chat history
  645. <a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
  646. </label>
  647. </div>
  648. <!-- /.form-group -->
  649. </form>
  650. </div>
  651. <!-- /.tab-pane -->
  652. </div>
  653. </aside>
  654. <!-- /.control-sidebar -->
  655. <!-- Add the sidebar's background. This div must be placed
  656. immediately after the control sidebar -->
  657. <div class="control-sidebar-bg"></div>
  658. </div>
  659. <!-- ./wrapper -->
  660. <!-- jQuery 3 -->
  661. <script src="../../bower_components/jquery/dist/jquery.min.js"></script>
  662. <!-- Bootstrap 3.3.7 -->
  663. <script src="../../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  664. <!-- ChartJS -->
  665. <script src="../../bower_components/chart.js/Chart.js"></script>
  666. <!-- FastClick -->
  667. <script src="../../bower_components/fastclick/lib/fastclick.js"></script>
  668. <!-- AdminLTE App -->
  669. <script src="../../dist/js/adminlte.min.js"></script>
  670. <!-- AdminLTE for demo purposes -->
  671. <script src="../../dist/js/demo.js"></script>
  672. <!-- page script -->
  673. <script>
  674. $(function () {
  675. /* ChartJS
  676. * -------
  677. * Here we will create a few charts using ChartJS
  678. */
  679. //--------------
  680. //- AREA CHART -
  681. //--------------
  682. // Get context with jQuery - using jQuery's .get() method.
  683. var areaChartCanvas = $('#areaChart').get(0).getContext('2d')
  684. // This will get the first returned node in the jQuery collection.
  685. var areaChart = new Chart(areaChartCanvas)
  686. var areaChartData = {
  687. labels : ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
  688. datasets: [
  689. {
  690. label : 'Electronics',
  691. fillColor : 'rgba(210, 214, 222, 1)',
  692. strokeColor : 'rgba(210, 214, 222, 1)',
  693. pointColor : 'rgba(210, 214, 222, 1)',
  694. pointStrokeColor : '#c1c7d1',
  695. pointHighlightFill : '#fff',
  696. pointHighlightStroke: 'rgba(220,220,220,1)',
  697. data : [65, 59, 80, 81, 56, 55, 40]
  698. },
  699. {
  700. label : 'Digital Goods',
  701. fillColor : 'rgba(60,141,188,0.9)',
  702. strokeColor : 'rgba(60,141,188,0.8)',
  703. pointColor : '#3b8bba',
  704. pointStrokeColor : 'rgba(60,141,188,1)',
  705. pointHighlightFill : '#fff',
  706. pointHighlightStroke: 'rgba(60,141,188,1)',
  707. data : [28, 48, 40, 19, 86, 27, 90]
  708. }
  709. ]
  710. }
  711. var areaChartOptions = {
  712. //Boolean - If we should show the scale at all
  713. showScale : true,
  714. //Boolean - Whether grid lines are shown across the chart
  715. scaleShowGridLines : false,
  716. //String - Colour of the grid lines
  717. scaleGridLineColor : 'rgba(0,0,0,.05)',
  718. //Number - Width of the grid lines
  719. scaleGridLineWidth : 1,
  720. //Boolean - Whether to show horizontal lines (except X axis)
  721. scaleShowHorizontalLines: true,
  722. //Boolean - Whether to show vertical lines (except Y axis)
  723. scaleShowVerticalLines : true,
  724. //Boolean - Whether the line is curved between points
  725. bezierCurve : true,
  726. //Number - Tension of the bezier curve between points
  727. bezierCurveTension : 0.3,
  728. //Boolean - Whether to show a dot for each point
  729. pointDot : false,
  730. //Number - Radius of each point dot in pixels
  731. pointDotRadius : 4,
  732. //Number - Pixel width of point dot stroke
  733. pointDotStrokeWidth : 1,
  734. //Number - amount extra to add to the radius to cater for hit detection outside the drawn point
  735. pointHitDetectionRadius : 20,
  736. //Boolean - Whether to show a stroke for datasets
  737. datasetStroke : true,
  738. //Number - Pixel width of dataset stroke
  739. datasetStrokeWidth : 2,
  740. //Boolean - Whether to fill the dataset with a color
  741. datasetFill : true,
  742. //String - A legend template
  743. legendTemplate : '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].lineColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>',
  744. //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
  745. maintainAspectRatio : true,
  746. //Boolean - whether to make the chart responsive to window resizing
  747. responsive : true
  748. }
  749. //Create the line chart
  750. areaChart.Line(areaChartData, areaChartOptions)
  751. //-------------
  752. //- LINE CHART -
  753. //--------------
  754. var lineChartCanvas = $('#lineChart').get(0).getContext('2d')
  755. var lineChart = new Chart(lineChartCanvas)
  756. var lineChartOptions = areaChartOptions
  757. lineChartOptions.datasetFill = false
  758. lineChart.Line(areaChartData, lineChartOptions)
  759. //-------------
  760. //- PIE CHART -
  761. //-------------
  762. // Get context with jQuery - using jQuery's .get() method.
  763. var pieChartCanvas = $('#pieChart').get(0).getContext('2d')
  764. var pieChart = new Chart(pieChartCanvas)
  765. var PieData = [
  766. {
  767. value : 700,
  768. color : '#f56954',
  769. highlight: '#f56954',
  770. label : 'Chrome'
  771. },
  772. {
  773. value : 500,
  774. color : '#00a65a',
  775. highlight: '#00a65a',
  776. label : 'IE'
  777. },
  778. {
  779. value : 400,
  780. color : '#f39c12',
  781. highlight: '#f39c12',
  782. label : 'FireFox'
  783. },
  784. {
  785. value : 600,
  786. color : '#00c0ef',
  787. highlight: '#00c0ef',
  788. label : 'Safari'
  789. },
  790. {
  791. value : 300,
  792. color : '#3c8dbc',
  793. highlight: '#3c8dbc',
  794. label : 'Opera'
  795. },
  796. {
  797. value : 100,
  798. color : '#d2d6de',
  799. highlight: '#d2d6de',
  800. label : 'Navigator'
  801. }
  802. ]
  803. var pieOptions = {
  804. //Boolean - Whether we should show a stroke on each segment
  805. segmentShowStroke : true,
  806. //String - The colour of each segment stroke
  807. segmentStrokeColor : '#fff',
  808. //Number - The width of each segment stroke
  809. segmentStrokeWidth : 2,
  810. //Number - The percentage of the chart that we cut out of the middle
  811. percentageInnerCutout: 50, // This is 0 for Pie charts
  812. //Number - Amount of animation steps
  813. animationSteps : 100,
  814. //String - Animation easing effect
  815. animationEasing : 'easeOutBounce',
  816. //Boolean - Whether we animate the rotation of the Doughnut
  817. animateRotate : true,
  818. //Boolean - Whether we animate scaling the Doughnut from the centre
  819. animateScale : false,
  820. //Boolean - whether to make the chart responsive to window resizing
  821. responsive : true,
  822. // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
  823. maintainAspectRatio : true,
  824. //String - A legend template
  825. legendTemplate : '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'
  826. }
  827. //Create pie or douhnut chart
  828. // You can switch between pie and douhnut using the method below.
  829. pieChart.Doughnut(PieData, pieOptions)
  830. //-------------
  831. //- BAR CHART -
  832. //-------------
  833. var barChartCanvas = $('#barChart').get(0).getContext('2d')
  834. var barChart = new Chart(barChartCanvas)
  835. var barChartData = areaChartData
  836. barChartData.datasets[1].fillColor = '#00a65a'
  837. barChartData.datasets[1].strokeColor = '#00a65a'
  838. barChartData.datasets[1].pointColor = '#00a65a'
  839. var barChartOptions = {
  840. //Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value
  841. scaleBeginAtZero : true,
  842. //Boolean - Whether grid lines are shown across the chart
  843. scaleShowGridLines : true,
  844. //String - Colour of the grid lines
  845. scaleGridLineColor : 'rgba(0,0,0,.05)',
  846. //Number - Width of the grid lines
  847. scaleGridLineWidth : 1,
  848. //Boolean - Whether to show horizontal lines (except X axis)
  849. scaleShowHorizontalLines: true,
  850. //Boolean - Whether to show vertical lines (except Y axis)
  851. scaleShowVerticalLines : true,
  852. //Boolean - If there is a stroke on each bar
  853. barShowStroke : true,
  854. //Number - Pixel width of the bar stroke
  855. barStrokeWidth : 2,
  856. //Number - Spacing between each of the X value sets
  857. barValueSpacing : 5,
  858. //Number - Spacing between data sets within X values
  859. barDatasetSpacing : 1,
  860. //String - A legend template
  861. legendTemplate : '<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>',
  862. //Boolean - whether to make the chart responsive
  863. responsive : true,
  864. maintainAspectRatio : true
  865. }
  866. barChartOptions.datasetFill = false
  867. barChart.Bar(barChartData, barChartOptions)
  868. })
  869. </script>
  870. </body>
  871. </html>