chartjs.html 35 KB

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