metrics.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('图表组合')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight">
  8. <div class="row">
  9. <div class="col-sm-3">
  10. <div class="ibox">
  11. <div class="ibox-content">
  12. <h5 class="m-b-md">Q1 销量</h5>
  13. <h2 class="text-navy">
  14. <i class="fa fa-play fa-rotate-270"></i> 上升
  15. </h2>
  16. <small>更新时间:12天以前</small>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="col-sm-3">
  21. <div class="ibox">
  22. <div class="ibox-content ">
  23. <h5 class="m-b-md">Q2 销量</h5>
  24. <h2 class="text-navy">
  25. <i class="fa fa-play fa-rotate-270"></i> 上升
  26. </h2>
  27. <small>更新时间:12天以前</small>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="col-sm-3">
  32. <div class="ibox">
  33. <div class="ibox-content">
  34. <h5 class="m-b-md">Q3 销量</h5>
  35. <h2 class="text-danger">
  36. <i class="fa fa-play fa-rotate-90"></i> 下降
  37. </h2>
  38. <small>更新时间:12天以前</small>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="col-sm-3">
  43. <div class="ibox">
  44. <div class="ibox-content">
  45. <h5 class="m-b-md">Q4 销量</h5>
  46. <h2 class="text-danger">
  47. <i class="fa fa-play fa-rotate-90"></i> 下降
  48. </h2>
  49. <small>更新时间:12天以前</small>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="row">
  55. <div class="col-sm-3">
  56. <div class="ibox">
  57. <div class="ibox-content">
  58. <h5>本日访问量</h5>
  59. <h2>198 009</h2>
  60. <div id="sparkline1"></div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-sm-3">
  65. <div class="ibox">
  66. <div class="ibox-content">
  67. <h5>本周访问量</h5>
  68. <h2>65 000</h2>
  69. <div id="sparkline2"></div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="col-sm-3">
  74. <div class="ibox">
  75. <div class="ibox-content">
  76. <h5>本月访问量</h5>
  77. <h2>680 900</h2>
  78. <div id="sparkline3"></div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="col-sm-3">
  83. <div class="ibox">
  84. <div class="ibox-content">
  85. <h5>平均停留时间</h5>
  86. <h2>00:06:40</h2>
  87. <div id="sparkline4"></div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="row">
  93. <div class="col-sm-3">
  94. <div class="ibox">
  95. <div class="ibox-content">
  96. <h5>使用率</h5>
  97. <h2>65%</h2>
  98. <div class="progress progress-mini">
  99. <div style="width: 68%;" class="progress-bar"></div>
  100. </div>
  101. <div class="m-t-sm small">4:32更新</div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="col-sm-3">
  106. <div class="ibox">
  107. <div class="ibox-content">
  108. <h5>使用率</h5>
  109. <h2>50%</h2>
  110. <div class="progress progress-mini">
  111. <div style="width: 78%;" class="progress-bar"></div>
  112. </div>
  113. <div class="m-t-sm small">4:32更新</div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="col-sm-3">
  118. <div class="ibox">
  119. <div class="ibox-content">
  120. <h5>使用率</h5>
  121. <h2>14%</h2>
  122. <div class="progress progress-mini">
  123. <div style="width: 38%;" class="progress-bar progress-bar-danger"></div>
  124. </div>
  125. <div class="m-t-sm small">4:32更新</div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="col-sm-3">
  130. <div class="ibox">
  131. <div class="ibox-content">
  132. <h5>使用率</h5>
  133. <h2>20%</h2>
  134. <div class="progress progress-mini">
  135. <div style="width: 28%;" class="progress-bar progress-bar-danger"></div>
  136. </div>
  137. <div class="m-t-sm small">4:32更新</div>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <div class="row">
  143. <div class="col-sm-3">
  144. <div class="ibox">
  145. <div class="ibox-content">
  146. <h5>百分比</h5>
  147. <h2>42/20</h2>
  148. <div class="text-center">
  149. <div id="sparkline5"></div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="col-sm-3">
  155. <div class="ibox">
  156. <div class="ibox-content">
  157. <h5>百分比</h5>
  158. <h2>100/54</h2>
  159. <div class="text-center">
  160. <div id="sparkline6"></div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="col-sm-3">
  166. <div class="ibox">
  167. <div class="ibox-content">
  168. <h5>百分比</h5>
  169. <h2>685/211</h2>
  170. <div class="text-center">
  171. <div id="sparkline7"></div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="col-sm-3">
  177. <div class="ibox">
  178. <div class="ibox-content">
  179. <h5>百分比</h5>
  180. <h2>240/32</h2>
  181. <div class="text-center">
  182. <div id="sparkline8"></div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <div class="row">
  189. <div class="col-sm-3">
  190. <div class="ibox">
  191. <div class="ibox-content">
  192. <h5>收入</h5>
  193. <h1 class="no-margins">886,200</h1>
  194. <div class="stat-percent font-bold text-navy">98% <i class="fa fa-bolt"></i></div>
  195. <small>总收入</small>
  196. </div>
  197. </div>
  198. </div>
  199. <div class="col-sm-3">
  200. <div class="ibox">
  201. <div class="ibox-content">
  202. <h5>本月收入</h5>
  203. <h1 class="no-margins">1 738,200</h1>
  204. <div class="stat-percent font-bold text-navy">98% <i class="fa fa-bolt"></i></div>
  205. <small>总收入</small>
  206. </div>
  207. </div>
  208. </div>
  209. <div class="col-sm-3">
  210. <div class="ibox">
  211. <div class="ibox-content">
  212. <h5>本日收入</h5>
  213. <h1 class="no-margins">-200,100</h1>
  214. <div class="stat-percent font-bold text-danger">12% <i class="fa fa-level-down"></i></div>
  215. <small>总收入</small>
  216. </div>
  217. </div>
  218. </div>
  219. <div class="col-sm-3">
  220. <div class="ibox">
  221. <div class="ibox-content">
  222. <h5>搜索有收入</h5>
  223. <h1 class="no-margins">54,200</h1>
  224. <div class="stat-percent font-bold text-danger">24% <i class="fa fa-level-down"></i></div>
  225. <small>总收入</small>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="row">
  231. <div class="col-sm-3">
  232. <div class="ibox">
  233. <div class="ibox-content">
  234. <h5>预警</h5>
  235. <table class="table table-stripped small m-t-md">
  236. <tbody>
  237. <tr>
  238. <td class="no-borders">
  239. <i class="fa fa-circle text-navy"></i>
  240. </td>
  241. <td class="no-borders">
  242. 示例 01
  243. </td>
  244. </tr>
  245. <tr>
  246. <td>
  247. <i class="fa fa-circle text-navy"></i>
  248. </td>
  249. <td>
  250. 示例 02
  251. </td>
  252. </tr>
  253. <tr>
  254. <td>
  255. <i class="fa fa-circle text-navy"></i>
  256. </td>
  257. <td>
  258. 示例 03
  259. </td>
  260. </tr>
  261. </tbody>
  262. </table>
  263. </div>
  264. </div>
  265. </div>
  266. <div class="col-sm-3">
  267. <div class="ibox">
  268. <div class="ibox-content">
  269. <h5>项目</h5>
  270. <table class="table table-stripped small m-t-md">
  271. <tbody>
  272. <tr>
  273. <td class="no-borders">
  274. <i class="fa fa-circle text-navy"></i>
  275. </td>
  276. <td class="no-borders">
  277. 示例 01
  278. </td>
  279. </tr>
  280. <tr>
  281. <td>
  282. <i class="fa fa-circle text-navy"></i>
  283. </td>
  284. <td>
  285. 示例 02
  286. </td>
  287. </tr>
  288. <tr>
  289. <td>
  290. <i class="fa fa-circle text-navy"></i>
  291. </td>
  292. <td>
  293. 示例 03
  294. </td>
  295. </tr>
  296. </tbody>
  297. </table>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="col-sm-3">
  302. <div class="ibox">
  303. <div class="ibox-content">
  304. <h5>消息</h5>
  305. <table class="table table-stripped small m-t-md">
  306. <tbody>
  307. <tr>
  308. <td class="no-borders">
  309. <i class="fa fa-circle text-danger"></i>
  310. </td>
  311. <td class="no-borders">
  312. 示例 01
  313. </td>
  314. </tr>
  315. <tr>
  316. <td>
  317. <i class="fa fa-circle text-danger"></i>
  318. </td>
  319. <td>
  320. 示例 02
  321. </td>
  322. </tr>
  323. <tr>
  324. <td>
  325. <i class="fa fa-circle text-danger"></i>
  326. </td>
  327. <td>
  328. 示例 03
  329. </td>
  330. </tr>
  331. </tbody>
  332. </table>
  333. </div>
  334. </div>
  335. </div>
  336. <div class="col-sm-3">
  337. <div class="ibox">
  338. <div class="ibox-content">
  339. <h5>通知</h5>
  340. <table class="table table-stripped small m-t-md">
  341. <tbody>
  342. <tr>
  343. <td class="no-borders">
  344. <i class="fa fa-circle text-danger"></i>
  345. </td>
  346. <td class="no-borders">
  347. 示例 01
  348. </td>
  349. </tr>
  350. <tr>
  351. <td>
  352. <i class="fa fa-circle text-danger"></i>
  353. </td>
  354. <td>
  355. 示例 02
  356. </td>
  357. </tr>
  358. <tr>
  359. <td>
  360. <i class="fa fa-circle text-danger"></i>
  361. </td>
  362. <td>
  363. 示例 03
  364. </td>
  365. </tr>
  366. </tbody>
  367. </table>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. <th:block th:include="include :: footer" />
  374. <th:block th:include="include :: peity-js" />
  375. <th:block th:include="include :: sparkline-js" />
  376. <script type="text/javascript">
  377. $(document).ready(function () {
  378. $("#sparkline1").sparkline([34, 43, 43, 35, 44, 32, 44, 52], {
  379. type: 'line',
  380. width: '100%',
  381. height: '60',
  382. lineColor: '#1ab394',
  383. fillColor: "#ffffff"
  384. });
  385. $("#sparkline2").sparkline([24, 43, 43, 55, 44, 62, 44, 72], {
  386. type: 'line',
  387. width: '100%',
  388. height: '60',
  389. lineColor: '#1ab394',
  390. fillColor: "#ffffff"
  391. });
  392. $("#sparkline3").sparkline([74, 43, 23, 55, 54, 32, 24, 12], {
  393. type: 'line',
  394. width: '100%',
  395. height: '60',
  396. lineColor: '#ed5565',
  397. fillColor: "#ffffff"
  398. });
  399. $("#sparkline4").sparkline([24, 43, 33, 55, 64, 72, 44, 22], {
  400. type: 'line',
  401. width: '100%',
  402. height: '60',
  403. lineColor: '#ed5565',
  404. fillColor: "#ffffff"
  405. });
  406. $("#sparkline5").sparkline([1, 4], {
  407. type: 'pie',
  408. height: '140',
  409. sliceColors: ['#1ab394', '#F5F5F5']
  410. });
  411. $("#sparkline6").sparkline([5, 3], {
  412. type: 'pie',
  413. height: '140',
  414. sliceColors: ['#1ab394', '#F5F5F5']
  415. });
  416. $("#sparkline7").sparkline([2, 2], {
  417. type: 'pie',
  418. height: '140',
  419. sliceColors: ['#ed5565', '#F5F5F5']
  420. });
  421. $("#sparkline8").sparkline([2, 3], {
  422. type: 'pie',
  423. height: '140',
  424. sliceColors: ['#ed5565', '#F5F5F5']
  425. });
  426. });
  427. $(function() {
  428. $("span.pie").peity("pie", {
  429. fill: ['#1ab394', '#d7d7d7', '#ffffff']
  430. })
  431. $(".line").peity("line",{
  432. fill: '#1ab394',
  433. stroke:'#169c81',
  434. })
  435. $(".bar").peity("bar", {
  436. fill: ["#1ab394", "#d7d7d7"]
  437. })
  438. $(".bar_dashboard").peity("bar", {
  439. fill: ["#1ab394", "#d7d7d7"],
  440. width:100
  441. })
  442. var updatingChart = $(".updating-chart").peity("line", { fill: '#1ab394',stroke:'#169c81', width: 64 })
  443. setInterval(function() {
  444. var random = Math.round(Math.random() * 10)
  445. var values = updatingChart.text().split(",")
  446. values.shift()
  447. values.push(random)
  448. updatingChart
  449. .text(values.join(","))
  450. .change()
  451. }, 1000);
  452. });
  453. </script>
  454. </body>
  455. </html>