123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
- <head>
- <th:block th:include="include :: header('图表组合')" />
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="row">
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5 class="m-b-md">Q1 销量</h5>
- <h2 class="text-navy">
- <i class="fa fa-play fa-rotate-270"></i> 上升
- </h2>
- <small>更新时间:12天以前</small>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content ">
- <h5 class="m-b-md">Q2 销量</h5>
- <h2 class="text-navy">
- <i class="fa fa-play fa-rotate-270"></i> 上升
- </h2>
- <small>更新时间:12天以前</small>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5 class="m-b-md">Q3 销量</h5>
- <h2 class="text-danger">
- <i class="fa fa-play fa-rotate-90"></i> 下降
- </h2>
- <small>更新时间:12天以前</small>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5 class="m-b-md">Q4 销量</h5>
- <h2 class="text-danger">
- <i class="fa fa-play fa-rotate-90"></i> 下降
- </h2>
- <small>更新时间:12天以前</small>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>本日访问量</h5>
- <h2>198 009</h2>
- <div id="sparkline1"></div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>本周访问量</h5>
- <h2>65 000</h2>
- <div id="sparkline2"></div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>本月访问量</h5>
- <h2>680 900</h2>
- <div id="sparkline3"></div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>平均停留时间</h5>
- <h2>00:06:40</h2>
- <div id="sparkline4"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>使用率</h5>
- <h2>65%</h2>
- <div class="progress progress-mini">
- <div style="width: 68%;" class="progress-bar"></div>
- </div>
- <div class="m-t-sm small">4:32更新</div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>使用率</h5>
- <h2>50%</h2>
- <div class="progress progress-mini">
- <div style="width: 78%;" class="progress-bar"></div>
- </div>
- <div class="m-t-sm small">4:32更新</div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>使用率</h5>
- <h2>14%</h2>
- <div class="progress progress-mini">
- <div style="width: 38%;" class="progress-bar progress-bar-danger"></div>
- </div>
- <div class="m-t-sm small">4:32更新</div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>使用率</h5>
- <h2>20%</h2>
- <div class="progress progress-mini">
- <div style="width: 28%;" class="progress-bar progress-bar-danger"></div>
- </div>
- <div class="m-t-sm small">4:32更新</div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>百分比</h5>
- <h2>42/20</h2>
- <div class="text-center">
- <div id="sparkline5"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>百分比</h5>
- <h2>100/54</h2>
- <div class="text-center">
- <div id="sparkline6"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>百分比</h5>
- <h2>685/211</h2>
- <div class="text-center">
- <div id="sparkline7"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>百分比</h5>
- <h2>240/32</h2>
- <div class="text-center">
- <div id="sparkline8"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>收入</h5>
- <h1 class="no-margins">886,200</h1>
- <div class="stat-percent font-bold text-navy">98% <i class="fa fa-bolt"></i></div>
- <small>总收入</small>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>本月收入</h5>
- <h1 class="no-margins">1 738,200</h1>
- <div class="stat-percent font-bold text-navy">98% <i class="fa fa-bolt"></i></div>
- <small>总收入</small>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>本日收入</h5>
- <h1 class="no-margins">-200,100</h1>
- <div class="stat-percent font-bold text-danger">12% <i class="fa fa-level-down"></i></div>
- <small>总收入</small>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>搜索有收入</h5>
- <h1 class="no-margins">54,200</h1>
- <div class="stat-percent font-bold text-danger">24% <i class="fa fa-level-down"></i></div>
- <small>总收入</small>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>预警</h5>
- <table class="table table-stripped small m-t-md">
- <tbody>
- <tr>
- <td class="no-borders">
- <i class="fa fa-circle text-navy"></i>
- </td>
- <td class="no-borders">
- 示例 01
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-navy"></i>
- </td>
- <td>
- 示例 02
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-navy"></i>
- </td>
- <td>
- 示例 03
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>项目</h5>
- <table class="table table-stripped small m-t-md">
- <tbody>
- <tr>
- <td class="no-borders">
- <i class="fa fa-circle text-navy"></i>
- </td>
- <td class="no-borders">
- 示例 01
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-navy"></i>
- </td>
- <td>
- 示例 02
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-navy"></i>
- </td>
- <td>
- 示例 03
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>消息</h5>
- <table class="table table-stripped small m-t-md">
- <tbody>
- <tr>
- <td class="no-borders">
- <i class="fa fa-circle text-danger"></i>
- </td>
- <td class="no-borders">
- 示例 01
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-danger"></i>
- </td>
- <td>
- 示例 02
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-danger"></i>
- </td>
- <td>
- 示例 03
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="col-sm-3">
- <div class="ibox">
- <div class="ibox-content">
- <h5>通知</h5>
- <table class="table table-stripped small m-t-md">
- <tbody>
- <tr>
- <td class="no-borders">
- <i class="fa fa-circle text-danger"></i>
- </td>
- <td class="no-borders">
- 示例 01
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-danger"></i>
- </td>
- <td>
- 示例 02
- </td>
- </tr>
- <tr>
- <td>
- <i class="fa fa-circle text-danger"></i>
- </td>
- <td>
- 示例 03
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <th:block th:include="include :: footer" />
- <th:block th:include="include :: peity-js" />
- <th:block th:include="include :: sparkline-js" />
- <script type="text/javascript">
- $(document).ready(function () {
- $("#sparkline1").sparkline([34, 43, 43, 35, 44, 32, 44, 52], {
- type: 'line',
- width: '100%',
- height: '60',
- lineColor: '#1ab394',
- fillColor: "#ffffff"
- });
-
- $("#sparkline2").sparkline([24, 43, 43, 55, 44, 62, 44, 72], {
- type: 'line',
- width: '100%',
- height: '60',
- lineColor: '#1ab394',
- fillColor: "#ffffff"
- });
-
- $("#sparkline3").sparkline([74, 43, 23, 55, 54, 32, 24, 12], {
- type: 'line',
- width: '100%',
- height: '60',
- lineColor: '#ed5565',
- fillColor: "#ffffff"
- });
-
- $("#sparkline4").sparkline([24, 43, 33, 55, 64, 72, 44, 22], {
- type: 'line',
- width: '100%',
- height: '60',
- lineColor: '#ed5565',
- fillColor: "#ffffff"
- });
-
- $("#sparkline5").sparkline([1, 4], {
- type: 'pie',
- height: '140',
- sliceColors: ['#1ab394', '#F5F5F5']
- });
-
- $("#sparkline6").sparkline([5, 3], {
- type: 'pie',
- height: '140',
- sliceColors: ['#1ab394', '#F5F5F5']
- });
-
- $("#sparkline7").sparkline([2, 2], {
- type: 'pie',
- height: '140',
- sliceColors: ['#ed5565', '#F5F5F5']
- });
-
- $("#sparkline8").sparkline([2, 3], {
- type: 'pie',
- height: '140',
- sliceColors: ['#ed5565', '#F5F5F5']
- });
- });
-
- $(function() {
- $("span.pie").peity("pie", {
- fill: ['#1ab394', '#d7d7d7', '#ffffff']
- })
-
- $(".line").peity("line",{
- fill: '#1ab394',
- stroke:'#169c81',
- })
-
- $(".bar").peity("bar", {
- fill: ["#1ab394", "#d7d7d7"]
- })
-
- $(".bar_dashboard").peity("bar", {
- fill: ["#1ab394", "#d7d7d7"],
- width:100
- })
-
- var updatingChart = $(".updating-chart").peity("line", { fill: '#1ab394',stroke:'#169c81', width: 64 })
-
- setInterval(function() {
- var random = Math.round(Math.random() * 10)
- var values = updatingChart.text().split(",")
- values.shift()
- values.push(random)
-
- updatingChart
- .text(values.join(","))
- .change()
- }, 1000);
- });
- </script>
- </body>
- </html>
|