inline.html 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>AdminLTE | Dashboard</title>
  6. <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  7. <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  8. <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  9. <!-- Ionicons -->
  10. <link href="//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css" rel="stylesheet" type="text/css" />
  11. <!-- Theme style -->
  12. <link href="../../css/AdminLTE.css" rel="stylesheet" type="text/css" />
  13. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  14. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  15. <!--[if lt IE 9]>
  16. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  17. <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
  18. <![endif]-->
  19. </head>
  20. <body class="skin-blue">
  21. <!-- header logo: style can be found in header.less -->
  22. <header class="header">
  23. <a href="../../index.html" class="logo">
  24. <!-- Add the class icon to your logo image or logo icon to add the margining -->
  25. AdminLTE
  26. </a>
  27. <!-- Header Navbar: style can be found in header.less -->
  28. <nav class="navbar navbar-static-top" role="navigation">
  29. <!-- Sidebar toggle button-->
  30. <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
  31. <span class="sr-only">Toggle navigation</span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. <span class="icon-bar"></span>
  35. </a>
  36. <div class="navbar-right">
  37. <ul class="nav navbar-nav">
  38. <!-- Messages: style can be found in dropdown.less-->
  39. <li class="dropdown messages-menu">
  40. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  41. <i class="fa fa-envelope"></i>
  42. <span class="label label-success">4</span>
  43. </a>
  44. <ul class="dropdown-menu">
  45. <li class="header">You have 4 messages</li>
  46. <li>
  47. <!-- inner menu: contains the actual data -->
  48. <ul class="menu">
  49. <li><!-- start message -->
  50. <a href="#">
  51. <div class="pull-left">
  52. <img src="../../img/avatar3.png" class="img-circle" alt="User Image"/>
  53. </div>
  54. <h4>
  55. Support Team
  56. <small><i class="fa fa-clock-o"></i> 5 mins</small>
  57. </h4>
  58. <p>Why not buy a new awesome theme?</p>
  59. </a>
  60. </li><!-- end message -->
  61. <li>
  62. <a href="#">
  63. <div class="pull-left">
  64. <img src="../../img/avatar2.png" class="img-circle" alt="user image"/>
  65. </div>
  66. <h4>
  67. AdminLTE Design Team
  68. <small><i class="fa fa-clock-o"></i> 2 hours</small>
  69. </h4>
  70. <p>Why not buy a new awesome theme?</p>
  71. </a>
  72. </li>
  73. <li>
  74. <a href="#">
  75. <div class="pull-left">
  76. <img src="../../img/avatar.png" class="img-circle" alt="user image"/>
  77. </div>
  78. <h4>
  79. Developers
  80. <small><i class="fa fa-clock-o"></i> Today</small>
  81. </h4>
  82. <p>Why not buy a new awesome theme?</p>
  83. </a>
  84. </li>
  85. <li>
  86. <a href="#">
  87. <div class="pull-left">
  88. <img src="../../img/avatar2.png" class="img-circle" alt="user image"/>
  89. </div>
  90. <h4>
  91. Sales Department
  92. <small><i class="fa fa-clock-o"></i> Yesterday</small>
  93. </h4>
  94. <p>Why not buy a new awesome theme?</p>
  95. </a>
  96. </li>
  97. <li>
  98. <a href="#">
  99. <div class="pull-left">
  100. <img src="../../img/avatar.png" class="img-circle" alt="user image"/>
  101. </div>
  102. <h4>
  103. Reviewers
  104. <small><i class="fa fa-clock-o"></i> 2 days</small>
  105. </h4>
  106. <p>Why not buy a new awesome theme?</p>
  107. </a>
  108. </li>
  109. </ul>
  110. </li>
  111. <li class="footer"><a href="#">See All Messages</a></li>
  112. </ul>
  113. </li>
  114. <!-- Notifications: style can be found in dropdown.less -->
  115. <li class="dropdown notifications-menu">
  116. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  117. <i class="fa fa-warning"></i>
  118. <span class="label label-warning">10</span>
  119. </a>
  120. <ul class="dropdown-menu">
  121. <li class="header">You have 10 notifications</li>
  122. <li>
  123. <!-- inner menu: contains the actual data -->
  124. <ul class="menu">
  125. <li>
  126. <a href="#">
  127. <i class="ion ion-ios7-people info"></i> 5 new members joined today
  128. </a>
  129. </li>
  130. <li>
  131. <a href="#">
  132. <i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems
  133. </a>
  134. </li>
  135. <li>
  136. <a href="#">
  137. <i class="fa fa-users warning"></i> 5 new members joined
  138. </a>
  139. </li>
  140. <li>
  141. <a href="#">
  142. <i class="ion ion-ios7-cart success"></i> 25 sales made
  143. </a>
  144. </li>
  145. <li>
  146. <a href="#">
  147. <i class="ion ion-ios7-person danger"></i> You changed your username
  148. </a>
  149. </li>
  150. </ul>
  151. </li>
  152. <li class="footer"><a href="#">View all</a></li>
  153. </ul>
  154. </li>
  155. <!-- Tasks: style can be found in dropdown.less -->
  156. <li class="dropdown tasks-menu">
  157. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  158. <i class="fa fa-tasks"></i>
  159. <span class="label label-danger">9</span>
  160. </a>
  161. <ul class="dropdown-menu">
  162. <li class="header">You have 9 tasks</li>
  163. <li>
  164. <!-- inner menu: contains the actual data -->
  165. <ul class="menu">
  166. <li><!-- Task item -->
  167. <a href="#">
  168. <h3>
  169. Design some buttons
  170. <small class="pull-right">20%</small>
  171. </h3>
  172. <div class="progress xs">
  173. <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  174. <span class="sr-only">20% Complete</span>
  175. </div>
  176. </div>
  177. </a>
  178. </li><!-- end task item -->
  179. <li><!-- Task item -->
  180. <a href="#">
  181. <h3>
  182. Create a nice theme
  183. <small class="pull-right">40%</small>
  184. </h3>
  185. <div class="progress xs">
  186. <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  187. <span class="sr-only">40% Complete</span>
  188. </div>
  189. </div>
  190. </a>
  191. </li><!-- end task item -->
  192. <li><!-- Task item -->
  193. <a href="#">
  194. <h3>
  195. Some task I need to do
  196. <small class="pull-right">60%</small>
  197. </h3>
  198. <div class="progress xs">
  199. <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  200. <span class="sr-only">60% Complete</span>
  201. </div>
  202. </div>
  203. </a>
  204. </li><!-- end task item -->
  205. <li><!-- Task item -->
  206. <a href="#">
  207. <h3>
  208. Make beautiful transitions
  209. <small class="pull-right">80%</small>
  210. </h3>
  211. <div class="progress xs">
  212. <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
  213. <span class="sr-only">80% Complete</span>
  214. </div>
  215. </div>
  216. </a>
  217. </li><!-- end task item -->
  218. </ul>
  219. </li>
  220. <li class="footer">
  221. <a href="#">View all tasks</a>
  222. </li>
  223. </ul>
  224. </li>
  225. <!-- User Account: style can be found in dropdown.less -->
  226. <li class="dropdown user user-menu">
  227. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  228. <i class="glyphicon glyphicon-user"></i>
  229. <span>Jane Doe <i class="caret"></i></span>
  230. </a>
  231. <ul class="dropdown-menu">
  232. <!-- User image -->
  233. <li class="user-header bg-light-blue">
  234. <img src="../../img/avatar3.png" class="img-circle" alt="User Image" />
  235. <p>
  236. Jane Doe - Web Developer
  237. <small>Member since Nov. 2012</small>
  238. </p>
  239. </li>
  240. <!-- Menu Body -->
  241. <li class="user-body">
  242. <div class="col-xs-4 text-center">
  243. <a href="#">Followers</a>
  244. </div>
  245. <div class="col-xs-4 text-center">
  246. <a href="#">Sales</a>
  247. </div>
  248. <div class="col-xs-4 text-center">
  249. <a href="#">Friends</a>
  250. </div>
  251. </li>
  252. <!-- Menu Footer-->
  253. <li class="user-footer">
  254. <div class="pull-left">
  255. <a href="#" class="btn btn-default btn-flat">Profile</a>
  256. </div>
  257. <div class="pull-right">
  258. <a href="#" class="btn btn-default btn-flat">Sign out</a>
  259. </div>
  260. </li>
  261. </ul>
  262. </li>
  263. </ul>
  264. </div>
  265. </nav>
  266. </header>
  267. <div class="wrapper row-offcanvas row-offcanvas-left">
  268. <!-- Left side column. contains the logo and sidebar -->
  269. <aside class="left-side sidebar-offcanvas">
  270. <!-- sidebar: style can be found in sidebar.less -->
  271. <section class="sidebar">
  272. <!-- Sidebar user panel -->
  273. <div class="user-panel">
  274. <div class="pull-left image">
  275. <img src="../../img/avatar3.png" class="img-circle" alt="User Image" />
  276. </div>
  277. <div class="pull-left info">
  278. <p>Hello, Jane</p>
  279. <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
  280. </div>
  281. </div>
  282. <!-- search form -->
  283. <form action="#" method="get" class="sidebar-form">
  284. <div class="input-group">
  285. <input type="text" name="q" class="form-control" placeholder="Search..."/>
  286. <span class="input-group-btn">
  287. <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
  288. </span>
  289. </div>
  290. </form>
  291. <!-- /.search form -->
  292. <!-- sidebar menu: : style can be found in sidebar.less -->
  293. <ul class="sidebar-menu">
  294. <li>
  295. <a href="../../index.html">
  296. <i class="fa fa-dashboard"></i> <span>Dashboard</span>
  297. </a>
  298. </li>
  299. <li>
  300. <a href="../widgets.html">
  301. <i class="fa fa-th"></i> <span>Widgets</span> <small class="badge pull-right bg-green">new</small>
  302. </a>
  303. </li>
  304. <li class="treeview active">
  305. <a href="#">
  306. <i class="fa fa-bar-chart-o"></i>
  307. <span>Charts</span>
  308. <i class="fa fa-angle-left pull-right"></i>
  309. </a>
  310. <ul class="treeview-menu">
  311. <li><a href="morris.html"><i class="fa fa-angle-double-right"></i> Morris</a></li>
  312. <li><a href="flot.html"><i class="fa fa-angle-double-right"></i> Flot</a></li>
  313. <li class="active"><a href="inline.html"><i class="fa fa-angle-double-right"></i> Inline charts</a></li>
  314. </ul>
  315. </li>
  316. <li class="treeview">
  317. <a href="#">
  318. <i class="fa fa-laptop"></i>
  319. <span>UI Elements</span>
  320. <i class="fa fa-angle-left pull-right"></i>
  321. </a>
  322. <ul class="treeview-menu">
  323. <li><a href="../UI/general.html"><i class="fa fa-angle-double-right"></i> General</a></li>
  324. <li><a href="../UI/icons.html"><i class="fa fa-angle-double-right"></i> Icons</a></li>
  325. <li><a href="../UI/buttons.html"><i class="fa fa-angle-double-right"></i> Buttons</a></li>
  326. <li><a href="../UI/sliders.html"><i class="fa fa-angle-double-right"></i> Sliders</a></li>
  327. <li><a href="../UI/timeline.html"><i class="fa fa-angle-double-right"></i> Timeline</a></li>
  328. </ul>
  329. </li>
  330. <li class="treeview">
  331. <a href="#">
  332. <i class="fa fa-edit"></i> <span>Forms</span>
  333. <i class="fa fa-angle-left pull-right"></i>
  334. </a>
  335. <ul class="treeview-menu">
  336. <li><a href="../forms/general.html"><i class="fa fa-angle-double-right"></i> General Elements</a></li>
  337. <li><a href="../forms/advanced.html"><i class="fa fa-angle-double-right"></i> Advanced Elements</a></li>
  338. <li><a href="../forms/editors.html"><i class="fa fa-angle-double-right"></i> Editors</a></li>
  339. </ul>
  340. </li>
  341. <li class="treeview">
  342. <a href="#">
  343. <i class="fa fa-table"></i> <span>Tables</span>
  344. <i class="fa fa-angle-left pull-right"></i>
  345. </a>
  346. <ul class="treeview-menu">
  347. <li><a href="../tables/simple.html"><i class="fa fa-angle-double-right"></i> Simple tables</a></li>
  348. <li><a href="../tables/data.html"><i class="fa fa-angle-double-right"></i> Data tables</a></li>
  349. </ul>
  350. </li>
  351. <li>
  352. <a href="../calendar.html">
  353. <i class="fa fa-calendar"></i> <span>Calendar</span>
  354. <small class="badge pull-right bg-red">3</small>
  355. </a>
  356. </li>
  357. <li>
  358. <a href="../mailbox.html">
  359. <i class="fa fa-envelope"></i> <span>Mailbox</span>
  360. <small class="badge pull-right bg-yellow">12</small>
  361. </a>
  362. </li>
  363. <li class="treeview">
  364. <a href="#">
  365. <i class="fa fa-folder"></i> <span>Examples</span>
  366. <i class="fa fa-angle-left pull-right"></i>
  367. </a>
  368. <ul class="treeview-menu">
  369. <li><a href="../examples/invoice.html"><i class="fa fa-angle-double-right"></i> Invoice</a></li>
  370. <li><a href="../examples/login.html"><i class="fa fa-angle-double-right"></i> Login</a></li>
  371. <li><a href="../examples/register.html"><i class="fa fa-angle-double-right"></i> Register</a></li>
  372. <li><a href="../examples/lockscreen.html"><i class="fa fa-angle-double-right"></i> Lockscreen</a></li>
  373. <li><a href="../examples/404.html"><i class="fa fa-angle-double-right"></i> 404 Error</a></li>
  374. <li><a href="../examples/500.html"><i class="fa fa-angle-double-right"></i> 500 Error</a></li>
  375. <li><a href="../examples/blank.html"><i class="fa fa-angle-double-right"></i> Blank Page</a></li>
  376. </ul>
  377. </li>
  378. </ul>
  379. </section>
  380. <!-- /.sidebar -->
  381. </aside>
  382. <!-- Right side column. Contains the navbar and content of the page -->
  383. <aside class="right-side">
  384. <!-- Content Header (Page header) -->
  385. <section class="content-header">
  386. <h1>
  387. Inline Charts
  388. <small>multiple types of charts</small>
  389. </h1>
  390. <ol class="breadcrumb">
  391. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  392. <li class="active">Blank page</li>
  393. </ol>
  394. </section>
  395. <!-- Main content -->
  396. <section class="content">
  397. <!-- row -->
  398. <div class="row">
  399. <div class="col-xs-12">
  400. <!-- jQuery Knob -->
  401. <div class="box box-solid">
  402. <div class="box-header">
  403. <i class="fa fa-bar-chart-o"></i>
  404. <h3 class="box-title">jQuery Knob</h3>
  405. <div class="box-tools pull-right">
  406. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  407. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  408. </div>
  409. </div><!-- /.box-header -->
  410. <div class="box-body">
  411. <div class="row">
  412. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  413. <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc"/>
  414. <div class="knob-label">New Visitors</div>
  415. </div><!-- ./col -->
  416. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  417. <input type="text" class="knob" value="70" data-width="90" data-height="90" data-fgColor="#f56954"/>
  418. <div class="knob-label">Bounce Rate</div>
  419. </div><!-- ./col -->
  420. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  421. <input type="text" class="knob" value="-80" data-min="-150" data-max="150" data-width="90" data-height="90" data-fgColor="#00a65a"/>
  422. <div class="knob-label">Server Load</div>
  423. </div><!-- ./col -->
  424. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  425. <input type="text" class="knob" value="40" data-width="90" data-height="90" data-fgColor="#00c0ef"/>
  426. <div class="knob-label">Disk Space</div>
  427. </div><!-- ./col -->
  428. </div><!-- /.row -->
  429. <div class="row">
  430. <div class="col-xs-6 text-center">
  431. <input type="text" class="knob" value="90" data-width="90" data-height="90" data-fgColor="#932ab6"/>
  432. <div class="knob-label">Bandwidth</div>
  433. </div><!-- ./col -->
  434. <div class="col-xs-6 text-center">
  435. <input type="text" class="knob" value="50" data-width="90" data-height="90" data-fgColor="#39CCCC"/>
  436. <div class="knob-label">CPU</div>
  437. </div><!-- ./col -->
  438. </div><!-- /.row -->
  439. </div><!-- /.box-body -->
  440. </div><!-- /.box -->
  441. </div><!-- /.col -->
  442. </div><!-- /.row -->
  443. <div class="row">
  444. <div class="col-xs-12">
  445. <div class="box box-solid">
  446. <div class="box-header">
  447. <i class="fa fa-bar-chart-o"></i>
  448. <h3 class="box-title">jQuery Knob Different Sizes</h3>
  449. <div class="box-tools pull-right">
  450. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  451. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  452. </div>
  453. </div><!-- /.box-header -->
  454. <div class="box-body">
  455. <div class="row">
  456. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  457. <input type="text" class="knob" value="30" data-width="90" data-height="90" data-fgColor="#3c8dbc" data-readonly="true"/>
  458. <div class="knob-label">data-width="90"</div>
  459. </div><!-- ./col -->
  460. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  461. <input type="text" class="knob" value="30" data-width="120" data-height="120" data-fgColor="#f56954"/>
  462. <div class="knob-label">data-width="120"</div>
  463. </div><!-- ./col -->
  464. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  465. <input type="text" class="knob" value="30" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a"/>
  466. <div class="knob-label">data-thickness="0.1"</div>
  467. </div><!-- ./col -->
  468. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  469. <input type="text" class="knob" data-thickness="0.2" data-angleArc="250" data-angleOffset="-125" value="30" data-width="120" data-height="120" data-fgColor="#00c0ef"/>
  470. <div class="knob-label">data-angleArc="250"</div>
  471. </div><!-- ./col -->
  472. </div><!-- /.row -->
  473. </div><!-- /.box-body -->
  474. </div><!-- /.box -->
  475. </div><!-- /.col -->
  476. </div><!-- /.row -->
  477. <div class="row">
  478. <div class="col-xs-12">
  479. <div class="box box-solid">
  480. <div class="box-header">
  481. <i class="fa fa-bar-chart-o"></i>
  482. <h3 class="box-title">jQuery Knob Tron Style</h3>
  483. <div class="box-tools pull-right">
  484. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  485. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  486. </div>
  487. </div><!-- /.box-header -->
  488. <div class="box-body">
  489. <div class="row">
  490. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  491. <input type="text" class="knob" value="80" data-skin="tron" data-thickness="0.2" data-width="90" data-height="90" data-fgColor="#3c8dbc" data-readonly="true"/>
  492. <div class="knob-label">data-width="90"</div>
  493. </div><!-- ./col -->
  494. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  495. <input type="text" class="knob" value="60" data-skin="tron" data-thickness="0.2" data-width="120" data-height="120" data-fgColor="#f56954"/>
  496. <div class="knob-label">data-width="120"</div>
  497. </div><!-- ./col -->
  498. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  499. <input type="text" class="knob" value="10" data-skin="tron" data-thickness="0.1" data-width="90" data-height="90" data-fgColor="#00a65a"/>
  500. <div class="knob-label">data-thickness="0.1"</div>
  501. </div><!-- ./col -->
  502. <div class="col-md-3 col-sm-6 col-xs-6 text-center">
  503. <input type="text" class="knob" value="100" data-skin="tron" data-thickness="0.2" data-angleArc="250" data-angleOffset="-125" data-width="120" data-height="120" data-fgColor="#00c0ef"/>
  504. <div class="knob-label">data-angleArc="250"</div>
  505. </div><!-- ./col -->
  506. </div><!-- /.row -->
  507. </div><!-- /.box-body -->
  508. </div><!-- /.box -->
  509. </div><!-- /.col -->
  510. </div><!-- /.row -->
  511. <!-- callout -->
  512. <div class='callout callout-info'>
  513. <h4>The following was created using data tags</h4>
  514. <p>The following three inline (sparkline) chart have been initialized to read and interpret data tags</p>
  515. </div>
  516. <!-- /.callout -->
  517. <div class="row">
  518. <div class="col-md-4">
  519. <div class="box box-solid">
  520. <div class="box-header">
  521. <h3 class="box-title text-danger">Sparkline Pie</h3>
  522. <div class="box-tools pull-right">
  523. <button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
  524. </div>
  525. </div><!-- /.box-header -->
  526. <div class="box-body text-center">
  527. <div class="sparkline" data-type="pie" data-offset="90" data-width="100px" data-height="100px">
  528. 6,4,8
  529. </div>
  530. </div><!-- /.box-body -->
  531. </div><!-- /.box -->
  532. </div><!-- /.col -->
  533. <div class="col-md-4">
  534. <div class="box box-solid">
  535. <div class="box-header">
  536. <h3 class="box-title text-blue">Sparkline line</h3>
  537. <div class="box-tools pull-right">
  538. <button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
  539. </div>
  540. </div><!-- /.box-header -->
  541. <div class="box-body text-center">
  542. <div class="sparkline" data-type="line" data-spot-Radius="3" data-highlight-Spot-Color="#f39c12" data-highlight-Line-Color="#222" data-min-Spot-Color="#f56954" data-max-Spot-Color="#00a65a" data-spot-Color="#39CCCC" data-offset="90" data-width="100%" data-height="100px" data-line-Width='2' data-line-Color='#39CCCC' data-fill-Color='rgba(57, 204, 204, 0.08)'>
  543. 6,4,7,8,4,3,2,2,5,6,7,4,1,5,7,9,9,8,7,6
  544. </div>
  545. </div><!-- /.box-body -->
  546. </div><!-- /.box -->
  547. </div><!-- /.col -->
  548. <div class="col-md-4">
  549. <div class="box box-solid">
  550. <div class="box-header">
  551. <h3 class="box-title text-warning">Sparkline Bar</h3>
  552. <div class="box-tools pull-right">
  553. <button class="btn btn-default btn-sm"><i class="fa fa-refresh"></i></button>
  554. </div>
  555. </div><!-- /.box-header -->
  556. <div class="box-body text-center">
  557. <div class="sparkline" data-type="bar" data-width="97%" data-height="100px" data-bar-Width="14" data-bar-Spacing="7" data-bar-Color="#f39c12">
  558. 6,4,8, 9, 10, 5, 13, 18, 21, 7, 9
  559. </div>
  560. </div><!-- /.box-body -->
  561. </div><!-- /.box -->
  562. </div><!-- /.col -->
  563. </div><!-- /.row -->
  564. <div class='row'>
  565. <div class='col-xs-12'>
  566. <div class="box box-solid">
  567. <div class="box-header">
  568. <h3 class="box-title">Sparkline examples</h3>
  569. <div class="box-tools pull-right">
  570. <button class="btn btn-default btn-sm" data-widget="collapse"><i class="fa fa-minus"></i></button>
  571. <button class="btn btn-default btn-sm" data-widget="remove"><i class="fa fa-times"></i></button>
  572. </div>
  573. </div><!-- /.box-header -->
  574. <div id="myBody" class="box-body">
  575. <div class='row'>
  576. <div class='col-sm-6'>
  577. <p>
  578. Mouse speed <span id="mousespeed">Loading..</span>
  579. </p>
  580. <p>
  581. Inline <span class="sparkline-1">10,8,9,3,5,8,5</span>
  582. line graphs
  583. <span class="sparkline-1">8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10</span>
  584. </p>
  585. <p>
  586. Bar charts <span class="sparkbar">10,8,9,3,5,8,5</span>
  587. negative values: <span class="sparkbar">-3,1,2,0,3,-1</span>
  588. stacked: <span class="sparkbar">0:2,2:4,4:2,4:1</span>
  589. </p>
  590. <p>
  591. Composite inline
  592. <span id="compositeline">8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10</span>
  593. </p>
  594. <p>
  595. Inline with normal range
  596. <span id="normalline">8,4,0,0,0,0,1,4,4,10,10,10,10,0,0,0,4,6,5,9,10</span>
  597. </p>
  598. <p>
  599. Composite bar
  600. <span id="compositebar">4,6,7,7,4,3,2,1,4</span>
  601. </p>
  602. <p>
  603. Discrete
  604. <span class="discrete1">4,6,7,7,4,3,2,1,4,4,5,6,7,6,6,2,4,5</span><br />
  605. Discrete with threshold
  606. <span id="discrete2">4,6,7,7,4,3,2,1,4</span>
  607. </p>
  608. <p>
  609. Bullet charts<br />
  610. <span class="sparkbullet">10,12,12,9,7</span><br />
  611. <span class="sparkbullet">14,12,12,9,7</span><br />
  612. <span class="sparkbullet">10,12,14,9,7</span><br />
  613. </p>
  614. </div><!-- /.col -->
  615. <div class='col-sm-6'>
  616. <p>
  617. Customize size and colours
  618. <span id="linecustom">10,8,9,3,5,8,5,7</span>
  619. </p>
  620. <p>
  621. Tristate charts
  622. <span class="sparktristate">1,1,0,1,-1,-1,1,-1,0,0,1,1</span><br />
  623. (think games won, lost or drawn)
  624. </p>
  625. <p>
  626. Tristate chart using a colour map:
  627. <span class="sparktristatecols">1,2,0,2,-1,-2,1,-2,0,0,1,1</span>
  628. </p>
  629. <p>
  630. Box Plot: <span class="sparkboxplot">4,27,34,52,54,59,61,68,78,82,85,87,91,93,100</span><br />
  631. Pre-computed box plot <span class="sparkboxplotraw">Loading..</span>
  632. </p>
  633. <p>
  634. Pie charts
  635. <span class="sparkpie">1,1,2</span>
  636. <span class="sparkpie">1,5</span>
  637. <span class="sparkpie">20,50,80</span>
  638. </p>
  639. </div><!-- /.col -->
  640. </div><!-- /.row -->
  641. </div><!-- /.box-body -->
  642. </div><!-- /.box -->
  643. </div><!-- /.col -->
  644. </div><!-- /.row -->
  645. </section><!-- /.content -->
  646. </aside><!-- /.right-side -->
  647. </div><!-- ./wrapper -->
  648. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  649. <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
  650. <!-- AdminLTE App -->
  651. <script src="../../js/AdminLTE/app.js" type="text/javascript"></script>
  652. <!-- AdminLTE for demo purposes -->
  653. <script src="../../js/AdminLTE/demo.js" type="text/javascript"></script>
  654. <!-- jQuery Knob -->
  655. <script src="../../js/plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>
  656. <!-- Sparkline -->
  657. <script src="../../js/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
  658. <!-- page script -->
  659. <script type="text/javascript">
  660. $(function() {
  661. /* jQueryKnob */
  662. $(".knob").knob({
  663. /*change : function (value) {
  664. //console.log("change : " + value);
  665. },
  666. release : function (value) {
  667. console.log("release : " + value);
  668. },
  669. cancel : function () {
  670. console.log("cancel : " + this.value);
  671. },*/
  672. draw: function() {
  673. // "tron" case
  674. if (this.$.data('skin') == 'tron') {
  675. var a = this.angle(this.cv) // Angle
  676. , sa = this.startAngle // Previous start angle
  677. , sat = this.startAngle // Start angle
  678. , ea // Previous end angle
  679. , eat = sat + a // End angle
  680. , r = true;
  681. this.g.lineWidth = this.lineWidth;
  682. this.o.cursor
  683. && (sat = eat - 0.3)
  684. && (eat = eat + 0.3);
  685. if (this.o.displayPrevious) {
  686. ea = this.startAngle + this.angle(this.value);
  687. this.o.cursor
  688. && (sa = ea - 0.3)
  689. && (ea = ea + 0.3);
  690. this.g.beginPath();
  691. this.g.strokeStyle = this.previousColor;
  692. this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false);
  693. this.g.stroke();
  694. }
  695. this.g.beginPath();
  696. this.g.strokeStyle = r ? this.o.fgColor : this.fgColor;
  697. this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false);
  698. this.g.stroke();
  699. this.g.lineWidth = 2;
  700. this.g.beginPath();
  701. this.g.strokeStyle = this.o.fgColor;
  702. this.g.arc(this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false);
  703. this.g.stroke();
  704. return false;
  705. }
  706. }
  707. });
  708. /* END JQUERY KNOB */
  709. //INITIALIZE SPARKLINE CHARTS
  710. $(".sparkline").each(function() {
  711. var $this = $(this);
  712. $this.sparkline('html', $this.data());
  713. });
  714. /* SPARKLINE DOCUMENTAION EXAMPLES http://omnipotent.net/jquery.sparkline/#s-about */
  715. drawDocSparklines();
  716. drawMouseSpeedDemo();
  717. });
  718. function drawDocSparklines() {
  719. // Bar + line composite charts
  720. $('#compositebar').sparkline('html', {type: 'bar', barColor: '#aaf'});
  721. $('#compositebar').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
  722. {composite: true, fillColor: false, lineColor: 'red'});
  723. // Line charts taking their values from the tag
  724. $('.sparkline-1').sparkline();
  725. // Larger line charts for the docs
  726. $('.largeline').sparkline('html',
  727. {type: 'line', height: '2.5em', width: '4em'});
  728. // Customized line chart
  729. $('#linecustom').sparkline('html',
  730. {height: '1.5em', width: '8em', lineColor: '#f00', fillColor: '#ffa',
  731. minSpotColor: false, maxSpotColor: false, spotColor: '#77f', spotRadius: 3});
  732. // Bar charts using inline values
  733. $('.sparkbar').sparkline('html', {type: 'bar'});
  734. $('.barformat').sparkline([1, 3, 5, 3, 8], {
  735. type: 'bar',
  736. tooltipFormat: '{{value:levels}} - {{value}}',
  737. tooltipValueLookups: {
  738. levels: $.range_map({':2': 'Low', '3:6': 'Medium', '7:': 'High'})
  739. }
  740. });
  741. // Tri-state charts using inline values
  742. $('.sparktristate').sparkline('html', {type: 'tristate'});
  743. $('.sparktristatecols').sparkline('html',
  744. {type: 'tristate', colorMap: {'-2': '#fa7', '2': '#44f'}});
  745. // Composite line charts, the second using values supplied via javascript
  746. $('#compositeline').sparkline('html', {fillColor: false, changeRangeMin: 0, chartRangeMax: 10});
  747. $('#compositeline').sparkline([4, 1, 5, 7, 9, 9, 8, 7, 6, 6, 4, 7, 8, 4, 3, 2, 2, 5, 6, 7],
  748. {composite: true, fillColor: false, lineColor: 'red', changeRangeMin: 0, chartRangeMax: 10});
  749. // Line charts with normal range marker
  750. $('#normalline').sparkline('html',
  751. {fillColor: false, normalRangeMin: -1, normalRangeMax: 8});
  752. $('#normalExample').sparkline('html',
  753. {fillColor: false, normalRangeMin: 80, normalRangeMax: 95, normalRangeColor: '#4f4'});
  754. // Discrete charts
  755. $('.discrete1').sparkline('html',
  756. {type: 'discrete', lineColor: 'blue', xwidth: 18});
  757. $('#discrete2').sparkline('html',
  758. {type: 'discrete', lineColor: 'blue', thresholdColor: 'red', thresholdValue: 4});
  759. // Bullet charts
  760. $('.sparkbullet').sparkline('html', {type: 'bullet'});
  761. // Pie charts
  762. $('.sparkpie').sparkline('html', {type: 'pie', height: '1.0em'});
  763. // Box plots
  764. $('.sparkboxplot').sparkline('html', {type: 'box'});
  765. $('.sparkboxplotraw').sparkline([1, 3, 5, 8, 10, 15, 18],
  766. {type: 'box', raw: true, showOutliers: true, target: 6});
  767. // Box plot with specific field order
  768. $('.boxfieldorder').sparkline('html', {
  769. type: 'box',
  770. tooltipFormatFieldlist: ['med', 'lq', 'uq'],
  771. tooltipFormatFieldlistKey: 'field'
  772. });
  773. // click event demo sparkline
  774. $('.clickdemo').sparkline();
  775. $('.clickdemo').bind('sparklineClick', function(ev) {
  776. var sparkline = ev.sparklines[0],
  777. region = sparkline.getCurrentRegionFields();
  778. value = region.y;
  779. alert("Clicked on x=" + region.x + " y=" + region.y);
  780. });
  781. // mouseover event demo sparkline
  782. $('.mouseoverdemo').sparkline();
  783. $('.mouseoverdemo').bind('sparklineRegionChange', function(ev) {
  784. var sparkline = ev.sparklines[0],
  785. region = sparkline.getCurrentRegionFields();
  786. value = region.y;
  787. $('.mouseoverregion').text("x=" + region.x + " y=" + region.y);
  788. }).bind('mouseleave', function() {
  789. $('.mouseoverregion').text('');
  790. });
  791. }
  792. /**
  793. ** Draw the little mouse speed animated graph
  794. ** This just attaches a handler to the mousemove event to see
  795. ** (roughly) how far the mouse has moved
  796. ** and then updates the display a couple of times a second via
  797. ** setTimeout()
  798. **/
  799. function drawMouseSpeedDemo() {
  800. var mrefreshinterval = 500; // update display every 500ms
  801. var lastmousex = -1;
  802. var lastmousey = -1;
  803. var lastmousetime;
  804. var mousetravel = 0;
  805. var mpoints = [];
  806. var mpoints_max = 30;
  807. $('html').mousemove(function(e) {
  808. var mousex = e.pageX;
  809. var mousey = e.pageY;
  810. if (lastmousex > -1) {
  811. mousetravel += Math.max(Math.abs(mousex - lastmousex), Math.abs(mousey - lastmousey));
  812. }
  813. lastmousex = mousex;
  814. lastmousey = mousey;
  815. });
  816. var mdraw = function() {
  817. var md = new Date();
  818. var timenow = md.getTime();
  819. if (lastmousetime && lastmousetime != timenow) {
  820. var pps = Math.round(mousetravel / (timenow - lastmousetime) * 1000);
  821. mpoints.push(pps);
  822. if (mpoints.length > mpoints_max)
  823. mpoints.splice(0, 1);
  824. mousetravel = 0;
  825. $('#mousespeed').sparkline(mpoints, {width: mpoints.length * 2, tooltipSuffix: ' pixels per second'});
  826. }
  827. lastmousetime = timenow;
  828. setTimeout(mdraw, mrefreshinterval);
  829. }
  830. // We could use setInterval instead, but I prefer to do it this way
  831. setTimeout(mdraw, mrefreshinterval);
  832. }
  833. </script>
  834. </body>
  835. </html>