Adjusted graph colors

* Matching the existing visualize plugin closely
This commit is contained in:
Sebastian Grewe 2013-09-15 00:17:35 +02:00
parent 7471e505f9
commit 8add7f75c4

View File

@ -8,7 +8,7 @@
<article class="module width_full"> <article class="module width_full">
<header><h3>Graphs</h3></header> <header><h3>Graphs</h3></header>
<div class="module_content"> <div class="module_content">
<div id="hashrategraph" style="height:200px; width: 95%;"></div> <div id="hashrategraph" style="height:200px; width: 100%;"></div>
</div> </div>
<footer> <footer>
<p style="margin-left: 25px">Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds. Hashrate based on shares submitted in the past {$INTERVAL|default:"5"} minutes.</p> <p style="margin-left: 25px">Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds. Hashrate based on shares submitted in the past {$INTERVAL|default:"5"} minutes.</p>
@ -22,12 +22,19 @@ $(document).ready(function(){
var url = "{/literal}{$smarty.server.PHP_SELF}?page=api&action=getuserhashrate&api_key={$GLOBAL.userdata.api_key}&id={$GLOBAL.userdata.id}{literal}"; var url = "{/literal}{$smarty.server.PHP_SELF}?page=api&action=getuserhashrate&api_key={$GLOBAL.userdata.api_key}&id={$GLOBAL.userdata.id}{literal}";
var storedData = Array(); var storedData = Array();
var jqPlotOptions = { var jqPlotOptions = {
grid: { drawBorder: false, background: '#fbfbfb', shadow: false },
seriesDefaults:{ seriesDefaults:{
shadow: false,
fill: true, fill: true,
fillAlpha: 1, fillAndStroke: true,
fillAlpha: 0.3,
fillColor: '#26a4ed',
label: 'hashrate', label: 'hashrate',
trendline: { color: '#d30000', lineWidth: 1.0, label: 'average' }, color: '#26a4ed',
markerOptions: { size: 6 }, lineWidth: 4,
trendline: { color: '#d30000', lineWidth: 1.0, label: 'average', shadow: true },
markerOptions: { show: false, size: 8},
rendererOptions: { smooth: true }
}, },
legend: { show: true }, legend: { show: true },
title: 'Hashrate', title: 'Hashrate',