[UPDATE] morris.js charts

This commit is contained in:
iAmShorty 2014-03-11 13:18:21 +01:00
parent 02dc7195c3
commit 686e7f17d1
2 changed files with 9 additions and 39 deletions

View File

@ -1,39 +1,3 @@
<!--
{if is_array($YOURHASHRATES) && is_array($POOLHASHRATES)}
<div class="tab-pane fade in" id="both">
<div class="panel-heading">
Your vs Pool Hashrate
</div>
<div class="panel-body">
<table class="visualize" rel="area">
<thead>
<tr>
<td></td>
{foreach $YOURHASHRATES as $hour=>$hashrate}
<th scope="col">{$hour|default:"0"}:00</th>
{/foreach}
</tr>
</thead>
<tbody>
<tr>
<th scope="row">{$smarty.session.USERDATA.username}</th>
{foreach $YOURHASHRATES as $hour=>$hashrate}
<td>{$hashrate|default:"0"}</td>
{/foreach}
</tr>
<tr>
<th scope="row">Pool</th>
{foreach $POOLHASHRATES as $hour=>$hashrate}
<td>{$hashrate|default:"0"}</td>
{/foreach}
</tr>
</tbody>
</table>
<div id="both-area-chart"></div>
</div>
</div>
{/if}
-->
{if is_array($YOURHASHRATES) && is_array($POOLHASHRATES)}
<div class="tab-pane fade in" id="both">
<div class="panel-heading">

View File

@ -29,7 +29,9 @@ $(function () {
hideHover: 'auto',
lineColors: ['#0b62a4'],
pointFillColors: ['#FFFFFF'],
resize: true
resize: true,
fillOpacity: 1.00,
postUnits: ' KH/s'
});
}
@ -53,7 +55,9 @@ $(function () {
hideHover: 'auto',
lineColors: ['#24A665'],
pointFillColors: ['#FFFFFF'],
resize: true
resize: true,
fillOpacity: 1.00,
postUnits: ' KH/s'
});
}
@ -80,7 +84,9 @@ $(function () {
labels: ['Your Hashrate', 'Pool Hashrate'],
pointSize: 2,
hideHover: 'auto',
resize: true
resize: true,
fillOpacity: 0.1,
postUnits: ' KH/s'
});
}