From 7471e505f996501ff7a5160cea70af9e1a442f6a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 14 Sep 2013 23:43:32 +0200 Subject: [PATCH] Graph line update * Removed data points from display * Hover to see data point information * Fill area under the line --- public/templates/test/dashboard/graph.tpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/templates/test/dashboard/graph.tpl b/public/templates/test/dashboard/graph.tpl index 4fc5bb67..c8f0043f 100644 --- a/public/templates/test/dashboard/graph.tpl +++ b/public/templates/test/dashboard/graph.tpl @@ -22,10 +22,15 @@ $(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 storedData = Array(); var jqPlotOptions = { - series:[{ label: 'hashrate', trendline: { color: '#d30000', lineWidth: 1.0, label: 'average' } }], + seriesDefaults:{ + fill: true, + fillAlpha: 1, + label: 'hashrate', + trendline: { color: '#d30000', lineWidth: 1.0, label: 'average' }, + markerOptions: { size: 6 }, + }, legend: { show: true }, title: 'Hashrate', - axes: { yaxis:{ min:0, padMin: 0, padMax: 1.5, label: '{/literal}{$GLOBAL.hashunits.personal}{literal}', labelRenderer: $.jqplot.CanvasAxisLabelRenderer}, xaxis:{ min:0, max: 60, tickInterval: 10, padMax: 0, label: 'Minutes', labelRenderer: $.jqplot.CanvasAxisLabelRenderer}