[UPDATE] morris.js charts
This commit is contained in:
parent
02dc7195c3
commit
686e7f17d1
@ -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)}
|
{if is_array($YOURHASHRATES) && is_array($POOLHASHRATES)}
|
||||||
<div class="tab-pane fade in" id="both">
|
<div class="tab-pane fade in" id="both">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
|||||||
@ -29,7 +29,9 @@ $(function () {
|
|||||||
hideHover: 'auto',
|
hideHover: 'auto',
|
||||||
lineColors: ['#0b62a4'],
|
lineColors: ['#0b62a4'],
|
||||||
pointFillColors: ['#FFFFFF'],
|
pointFillColors: ['#FFFFFF'],
|
||||||
resize: true
|
resize: true,
|
||||||
|
fillOpacity: 1.00,
|
||||||
|
postUnits: ' KH/s'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +55,9 @@ $(function () {
|
|||||||
hideHover: 'auto',
|
hideHover: 'auto',
|
||||||
lineColors: ['#24A665'],
|
lineColors: ['#24A665'],
|
||||||
pointFillColors: ['#FFFFFF'],
|
pointFillColors: ['#FFFFFF'],
|
||||||
resize: true
|
resize: true,
|
||||||
|
fillOpacity: 1.00,
|
||||||
|
postUnits: ' KH/s'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -80,7 +84,9 @@ $(function () {
|
|||||||
labels: ['Your Hashrate', 'Pool Hashrate'],
|
labels: ['Your Hashrate', 'Pool Hashrate'],
|
||||||
pointSize: 2,
|
pointSize: 2,
|
||||||
hideHover: 'auto',
|
hideHover: 'auto',
|
||||||
resize: true
|
resize: true,
|
||||||
|
fillOpacity: 0.1,
|
||||||
|
postUnits: ' KH/s'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user