chartjs.html 35 KB

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