[FIX] Proper Block graphs

This commit is contained in:
Sebastian Grewe 2014-03-01 14:16:38 +01:00
parent aa2c53bec7
commit c7fd0ce02d

View File

@ -12,11 +12,13 @@ $(function () {
{if $GLOBAL.config.payout_system == 'pplns'} {if $GLOBAL.config.payout_system == 'pplns'}
pplnsShares: {$BLOCKSFOUND[block].pplns_shares|default:"0"}, pplnsShares: {$BLOCKSFOUND[block].pplns_shares|default:"0"},
{/if} {/if}
{rdelim}, {rdelim},
{/section} {/section}
]; ];
Morris.Area({ Morris.Area({
parseTime: false,
behaveLikeLine: true,
element: 'block-area-chart', element: 'block-area-chart',
data: blockdata, data: blockdata,
xkey: 'blockHeight', xkey: 'blockHeight',
@ -26,9 +28,9 @@ $(function () {
lineColors: ['#2D9C2F','#D58665','#2D619C','#FF0000'], lineColors: ['#2D9C2F','#D58665','#2D619C','#FF0000'],
pointFillColors: ['#FFFFFF'], pointFillColors: ['#FFFFFF'],
hideHover: 'auto', hideHover: 'auto',
resize: true resize: true,
fillOpacity: 0.25
}); });
}); });
</script> </script>