chartjs.html 37 KB

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