inline.html 44 KB

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