chartjs.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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/profile.html"><i class="fa fa-circle-o"></i> Profile</a></li>
  296. <li><a href="../examples/login.html"><i class="fa fa-circle-o"></i> Login</a></li>
  297. <li><a href="../examples/register.html"><i class="fa fa-circle-o"></i> Register</a></li>
  298. <li><a href="../examples/lockscreen.html"><i class="fa fa-circle-o"></i> Lockscreen</a></li>
  299. <li><a href="../examples/404.html"><i class="fa fa-circle-o"></i> 404 Error</a></li>
  300. <li><a href="../examples/500.html"><i class="fa fa-circle-o"></i> 500 Error</a></li>
  301. <li><a href="../examples/blank.html"><i class="fa fa-circle-o"></i> Blank Page</a></li>
  302. </ul>
  303. </li>
  304. <li class="treeview">
  305. <a href="#">
  306. <i class="fa fa-share"></i> <span>Multilevel</span>
  307. <i class="fa fa-angle-left pull-right"></i>
  308. </a>
  309. <ul class="treeview-menu">
  310. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  311. <li>
  312. <a href="#"><i class="fa fa-circle-o"></i> Level One <i class="fa fa-angle-left pull-right"></i></a>
  313. <ul class="treeview-menu">
  314. <li><a href="#"><i class="fa fa-circle-o"></i> Level Two</a></li>
  315. <li>
  316. <a href="#"><i class="fa fa-circle-o"></i> Level Two <i class="fa fa-angle-left pull-right"></i></a>
  317. <ul class="treeview-menu">
  318. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  319. <li><a href="#"><i class="fa fa-circle-o"></i> Level Three</a></li>
  320. </ul>
  321. </li>
  322. </ul>
  323. </li>
  324. <li><a href="#"><i class="fa fa-circle-o"></i> Level One</a></li>
  325. </ul>
  326. </li>
  327. <li><a href="../../documentation/index.html"><i class="fa fa-book"></i> <span>Documentation</span></a></li>
  328. <li class="header">LABELS</li>
  329. <li><a href="#"><i class="fa fa-circle-o text-red"></i> <span>Important</span></a></li>
  330. <li><a href="#"><i class="fa fa-circle-o text-yellow"></i> <span>Warning</span></a></li>
  331. <li><a href="#"><i class="fa fa-circle-o text-aqua"></i> <span>Information</span></a></li>
  332. </ul>
  333. </section>
  334. <!-- /.sidebar -->
  335. </aside>
  336. <!-- Content Wrapper. Contains page content -->
  337. <div class="content-wrapper">
  338. <!-- Content Header (Page header) -->
  339. <section class="content-header">
  340. <h1>
  341. ChartJS
  342. <small>Preview sample</small>
  343. </h1>
  344. <ol class="breadcrumb">
  345. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  346. <li><a href="#">Charts</a></li>
  347. <li class="active">ChartJS</li>
  348. </ol>
  349. </section>
  350. <!-- Main content -->
  351. <section class="content">
  352. <div class="row">
  353. <div class="col-md-6">
  354. <!-- AREA CHART -->
  355. <div class="box box-primary">
  356. <div class="box-header with-border">
  357. <h3 class="box-title">Area Chart</h3>
  358. <div class="box-tools pull-right">
  359. <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
  360. <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  361. </div>
  362. </div>
  363. <div class="box-body">
  364. <div class="chart">
  365. <canvas id="areaChart" style="height:250px"></canvas>
  366. </div>
  367. </div><!-- /.box-body -->
  368. </div><!-- /.box -->
  369. <!-- DONUT CHART -->
  370. <div class="box box-danger">
  371. <div class="box-header with-border">
  372. <h3 class="box-title">Donut Chart</h3>
  373. <div class="box-tools pull-right">
  374. <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
  375. <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  376. </div>
  377. </div>
  378. <div class="box-body">
  379. <canvas id="pieChart" style="height:250px"></canvas>
  380. </div><!-- /.box-body -->
  381. </div><!-- /.box -->
  382. </div><!-- /.col (LEFT) -->
  383. <div class="col-md-6">
  384. <!-- LINE CHART -->
  385. <div class="box box-info">
  386. <div class="box-header with-border">
  387. <h3 class="box-title">Line Chart</h3>
  388. <div class="box-tools pull-right">
  389. <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
  390. <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  391. </div>
  392. </div>
  393. <div class="box-body">
  394. <div class="chart">
  395. <canvas id="lineChart" style="height:250px"></canvas>
  396. </div>
  397. </div><!-- /.box-body -->
  398. </div><!-- /.box -->
  399. <!-- BAR CHART -->
  400. <div class="box box-success">
  401. <div class="box-header with-border">
  402. <h3 class="box-title">Bar Chart</h3>
  403. <div class="box-tools pull-right">
  404. <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
  405. <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
  406. </div>
  407. </div>
  408. <div class="box-body">
  409. <div class="chart">
  410. <canvas id="barChart" style="height:230px"></canvas>
  411. </div>
  412. </div><!-- /.box-body -->
  413. </div><!-- /.box -->
  414. </div><!-- /.col (RIGHT) -->
  415. </div><!-- /.row -->
  416. </section><!-- /.content -->
  417. </div><!-- /.content-wrapper -->
  418. <footer class="main-footer">
  419. <div class="pull-right hidden-xs">
  420. <b>Version</b> 2.3.0
  421. </div>
  422. <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
  423. </footer>
  424. <!-- Control Sidebar -->
  425. <aside class="control-sidebar control-sidebar-dark">
  426. <!-- Create the tabs -->
  427. <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
  428. <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
  429. <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
  430. </ul>
  431. <!-- Tab panes -->
  432. <div class="tab-content">
  433. <!-- Home tab content -->
  434. <div class="tab-pane" id="control-sidebar-home-tab">
  435. <h3 class="control-sidebar-heading">Recent Activity</h3>
  436. <ul class="control-sidebar-menu">
  437. <li>
  438. <a href="javascript::;">
  439. <i class="menu-icon fa fa-birthday-cake bg-red"></i>
  440. <div class="menu-info">
  441. <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
  442. <p>Will be 23 on April 24th</p>
  443. </div>
  444. </a>
  445. </li>
  446. <li>
  447. <a href="javascript::;">
  448. <i class="menu-icon fa fa-user bg-yellow"></i>
  449. <div class="menu-info">
  450. <h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
  451. <p>New phone +1(800)555-1234</p>
  452. </div>
  453. </a>
  454. </li>
  455. <li>
  456. <a href="javascript::;">
  457. <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
  458. <div class="menu-info">
  459. <h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
  460. <p>nora@example.com</p>
  461. </div>
  462. </a>
  463. </li>
  464. <li>
  465. <a href="javascript::;">
  466. <i class="menu-icon fa fa-file-code-o bg-green"></i>
  467. <div class="menu-info">
  468. <h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
  469. <p>Execution time 5 seconds</p>
  470. </div>
  471. </a>
  472. </li>
  473. </ul><!-- /.control-sidebar-menu -->
  474. <h3 class="control-sidebar-heading">Tasks Progress</h3>
  475. <ul class="control-sidebar-menu">
  476. <li>
  477. <a href="javascript::;">
  478. <h4 class="control-sidebar-subheading">
  479. Custom Template Design
  480. <span class="label label-danger pull-right">70%</span>
  481. </h4>
  482. <div class="progress progress-xxs">
  483. <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
  484. </div>
  485. </a>
  486. </li>
  487. <li>
  488. <a href="javascript::;">
  489. <h4 class="control-sidebar-subheading">
  490. Update Resume
  491. <span class="label label-success pull-right">95%</span>
  492. </h4>
  493. <div class="progress progress-xxs">
  494. <div class="progress-bar progress-bar-success" style="width: 95%"></div>
  495. </div>
  496. </a>
  497. </li>
  498. <li>
  499. <a href="javascript::;">
  500. <h4 class="control-sidebar-subheading">
  501. Laravel Integration
  502. <span class="label label-warning pull-right">50%</span>
  503. </h4>
  504. <div class="progress progress-xxs">
  505. <div class="progress-bar progress-bar-warning" style="width: 50%"></div>
  506. </div>
  507. </a>
  508. </li>
  509. <li>
  510. <a href="javascript::;">
  511. <h4 class="control-sidebar-subheading">
  512. Back End Framework
  513. <span class="label label-primary pull-right">68%</span>
  514. </h4>
  515. <div class="progress progress-xxs">
  516. <div class="progress-bar progress-bar-primary" style="width: 68%"></div>
  517. </div>
  518. </a>
  519. </li>
  520. </ul><!-- /.control-sidebar-menu -->
  521. </div><!-- /.tab-pane -->
  522. <!-- Stats tab content -->
  523. <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div><!-- /.tab-pane -->
  524. <!-- Settings tab content -->
  525. <div class="tab-pane" id="control-sidebar-settings-tab">
  526. <form method="post">
  527. <h3 class="control-sidebar-heading">General Settings</h3>
  528. <div class="form-group">
  529. <label class="control-sidebar-subheading">
  530. Report panel usage
  531. <input type="checkbox" class="pull-right" checked>
  532. </label>
  533. <p>
  534. Some information about this general settings option
  535. </p>
  536. </div><!-- /.form-group -->
  537. <div class="form-group">
  538. <label class="control-sidebar-subheading">
  539. Allow mail redirect
  540. <input type="checkbox" class="pull-right" checked>
  541. </label>
  542. <p>
  543. Other sets of options are available
  544. </p>
  545. </div><!-- /.form-group -->
  546. <div class="form-group">
  547. <label class="control-sidebar-subheading">
  548. Expose author name in posts
  549. <input type="checkbox" class="pull-right" checked>
  550. </label>
  551. <p>
  552. Allow the user to show his name in blog posts
  553. </p>
  554. </div><!-- /.form-group -->
  555. <h3 class="control-sidebar-heading">Chat Settings</h3>
  556. <div class="form-group">
  557. <label class="control-sidebar-subheading">
  558. Show me as online
  559. <input type="checkbox" class="pull-right" checked>
  560. </label>
  561. </div><!-- /.form-group -->
  562. <div class="form-group">
  563. <label class="control-sidebar-subheading">
  564. Turn off notifications
  565. <input type="checkbox" class="pull-right">
  566. </label>
  567. </div><!-- /.form-group -->
  568. <div class="form-group">
  569. <label class="control-sidebar-subheading">
  570. Delete chat history
  571. <a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
  572. </label>
  573. </div><!-- /.form-group -->
  574. </form>
  575. </div><!-- /.tab-pane -->
  576. </div>
  577. </aside><!-- /.control-sidebar -->
  578. <!-- Add the sidebar's background. This div must be placed
  579. immediately after the control sidebar -->
  580. <div class="control-sidebar-bg"></div>
  581. </div><!-- ./wrapper -->
  582. <!-- jQuery 2.1.4 -->
  583. <script src="../../plugins/jQuery/jQuery-2.1.4.min.js"></script>
  584. <!-- Bootstrap 3.3.5 -->
  585. <script src="../../bootstrap/js/bootstrap.min.js"></script>
  586. <!-- ChartJS 1.0.1 -->
  587. <script src="../../plugins/chartjs/Chart.min.js"></script>
  588. <!-- FastClick -->
  589. <script src="../../plugins/fastclick/fastclick.min.js"></script>
  590. <!-- AdminLTE App -->
  591. <script src="../../dist/js/app.min.js"></script>
  592. <!-- AdminLTE for demo purposes -->
  593. <script src="../../dist/js/demo.js"></script>
  594. <!-- page script -->
  595. <script>
  596. $(function () {
  597. /* ChartJS
  598. * -------
  599. * Here we will create a few charts using ChartJS
  600. */
  601. //--------------
  602. //- AREA CHART -
  603. //--------------
  604. // Get context with jQuery - using jQuery's .get() method.
  605. var areaChartCanvas = $("#areaChart").get(0).getContext("2d");
  606. // This will get the first returned node in the jQuery collection.
  607. var areaChart = new Chart(areaChartCanvas);
  608. var areaChartData = {
  609. labels: ["January", "February", "March", "April", "May", "June", "July"],
  610. datasets: [
  611. {
  612. label: "Electronics",
  613. fillColor: "rgba(210, 214, 222, 1)",
  614. strokeColor: "rgba(210, 214, 222, 1)",
  615. pointColor: "rgba(210, 214, 222, 1)",
  616. pointStrokeColor: "#c1c7d1",
  617. pointHighlightFill: "#fff",
  618. pointHighlightStroke: "rgba(220,220,220,1)",
  619. data: [65, 59, 80, 81, 56, 55, 40]
  620. },
  621. {
  622. label: "Digital Goods",
  623. fillColor: "rgba(60,141,188,0.9)",
  624. strokeColor: "rgba(60,141,188,0.8)",
  625. pointColor: "#3b8bba",
  626. pointStrokeColor: "rgba(60,141,188,1)",
  627. pointHighlightFill: "#fff",
  628. pointHighlightStroke: "rgba(60,141,188,1)",
  629. data: [28, 48, 40, 19, 86, 27, 90]
  630. }
  631. ]
  632. };
  633. var areaChartOptions = {
  634. //Boolean - If we should show the scale at all
  635. showScale: true,
  636. //Boolean - Whether grid lines are shown across the chart
  637. scaleShowGridLines: false,
  638. //String - Colour of the grid lines
  639. scaleGridLineColor: "rgba(0,0,0,.05)",
  640. //Number - Width of the grid lines
  641. scaleGridLineWidth: 1,
  642. //Boolean - Whether to show horizontal lines (except X axis)
  643. scaleShowHorizontalLines: true,
  644. //Boolean - Whether to show vertical lines (except Y axis)
  645. scaleShowVerticalLines: true,
  646. //Boolean - Whether the line is curved between points
  647. bezierCurve: true,
  648. //Number - Tension of the bezier curve between points
  649. bezierCurveTension: 0.3,
  650. //Boolean - Whether to show a dot for each point
  651. pointDot: false,
  652. //Number - Radius of each point dot in pixels
  653. pointDotRadius: 4,
  654. //Number - Pixel width of point dot stroke
  655. pointDotStrokeWidth: 1,
  656. //Number - amount extra to add to the radius to cater for hit detection outside the drawn point
  657. pointHitDetectionRadius: 20,
  658. //Boolean - Whether to show a stroke for datasets
  659. datasetStroke: true,
  660. //Number - Pixel width of dataset stroke
  661. datasetStrokeWidth: 2,
  662. //Boolean - Whether to fill the dataset with a color
  663. datasetFill: true,
  664. //String - A legend template
  665. 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>",
  666. //Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
  667. maintainAspectRatio: true,
  668. //Boolean - whether to make the chart responsive to window resizing
  669. responsive: true
  670. };
  671. //Create the line chart
  672. areaChart.Line(areaChartData, areaChartOptions);
  673. //-------------
  674. //- LINE CHART -
  675. //--------------
  676. var lineChartCanvas = $("#lineChart").get(0).getContext("2d");
  677. var lineChart = new Chart(lineChartCanvas);
  678. var lineChartOptions = areaChartOptions;
  679. lineChartOptions.datasetFill = false;
  680. lineChart.Line(areaChartData, lineChartOptions);
  681. //-------------
  682. //- PIE CHART -
  683. //-------------
  684. // Get context with jQuery - using jQuery's .get() method.
  685. var pieChartCanvas = $("#pieChart").get(0).getContext("2d");
  686. var pieChart = new Chart(pieChartCanvas);
  687. var PieData = [
  688. {
  689. value: 700,
  690. color: "#f56954",
  691. highlight: "#f56954",
  692. label: "Chrome"
  693. },
  694. {
  695. value: 500,
  696. color: "#00a65a",
  697. highlight: "#00a65a",
  698. label: "IE"
  699. },
  700. {
  701. value: 400,
  702. color: "#f39c12",
  703. highlight: "#f39c12",
  704. label: "FireFox"
  705. },
  706. {
  707. value: 600,
  708. color: "#00c0ef",
  709. highlight: "#00c0ef",
  710. label: "Safari"
  711. },
  712. {
  713. value: 300,
  714. color: "#3c8dbc",
  715. highlight: "#3c8dbc",
  716. label: "Opera"
  717. },
  718. {
  719. value: 100,
  720. color: "#d2d6de",
  721. highlight: "#d2d6de",
  722. label: "Navigator"
  723. }
  724. ];
  725. var pieOptions = {
  726. //Boolean - Whether we should show a stroke on each segment
  727. segmentShowStroke: true,
  728. //String - The colour of each segment stroke
  729. segmentStrokeColor: "#fff",
  730. //Number - The width of each segment stroke
  731. segmentStrokeWidth: 2,
  732. //Number - The percentage of the chart that we cut out of the middle
  733. percentageInnerCutout: 50, // This is 0 for Pie charts
  734. //Number - Amount of animation steps
  735. animationSteps: 100,
  736. //String - Animation easing effect
  737. animationEasing: "easeOutBounce",
  738. //Boolean - Whether we animate the rotation of the Doughnut
  739. animateRotate: true,
  740. //Boolean - Whether we animate scaling the Doughnut from the centre
  741. animateScale: false,
  742. //Boolean - whether to make the chart responsive to window resizing
  743. responsive: true,
  744. // Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
  745. maintainAspectRatio: true,
  746. //String - A legend template
  747. 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>"
  748. };
  749. //Create pie or douhnut chart
  750. // You can switch between pie and douhnut using the method below.
  751. pieChart.Doughnut(PieData, pieOptions);
  752. //-------------
  753. //- BAR CHART -
  754. //-------------
  755. var barChartCanvas = $("#barChart").get(0).getContext("2d");
  756. var barChart = new Chart(barChartCanvas);
  757. var barChartData = areaChartData;
  758. barChartData.datasets[1].fillColor = "#00a65a";
  759. barChartData.datasets[1].strokeColor = "#00a65a";
  760. barChartData.datasets[1].pointColor = "#00a65a";
  761. var barChartOptions = {
  762. //Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value
  763. scaleBeginAtZero: true,
  764. //Boolean - Whether grid lines are shown across the chart
  765. scaleShowGridLines: true,
  766. //String - Colour of the grid lines
  767. scaleGridLineColor: "rgba(0,0,0,.05)",
  768. //Number - Width of the grid lines
  769. scaleGridLineWidth: 1,
  770. //Boolean - Whether to show horizontal lines (except X axis)
  771. scaleShowHorizontalLines: true,
  772. //Boolean - Whether to show vertical lines (except Y axis)
  773. scaleShowVerticalLines: true,
  774. //Boolean - If there is a stroke on each bar
  775. barShowStroke: true,
  776. //Number - Pixel width of the bar stroke
  777. barStrokeWidth: 2,
  778. //Number - Spacing between each of the X value sets
  779. barValueSpacing: 5,
  780. //Number - Spacing between data sets within X values
  781. barDatasetSpacing: 1,
  782. //String - A legend template
  783. 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>",
  784. //Boolean - whether to make the chart responsive
  785. responsive: true,
  786. maintainAspectRatio: true
  787. };
  788. barChartOptions.datasetFill = false;
  789. barChart.Bar(barChartData, barChartOptions);
  790. });
  791. </script>
  792. </body>
  793. </html>