chartjs.html 36 KB

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