chartjs.html 36 KB

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