' +
'| ' + val.timestamp + ' | ' +
- '' + val.kwh + ' | ' +
- '' + val.diffSOLARHOUR + ' | ' +
- '' + val.irradiance + ' | ' +
- '' + val.pr + ' | ' +
- '' + val.temp + ' | ' +
+ '' + val.kwh.toFixed(2) + ' | ' +
+ '' + val.diffSOLARHOUR.toFixed(2) + ' | ' +
+ '' + val.irradiance.toFixed(2) + ' | ' +
+ '' + val.pr.toFixed(2) + ' | ' +
+ '' + val.temp.toFixed(2) + ' | ' +
'
');
listmonth.push(val.timestamp);
listkwh.push(val.kwh);
@@ -2197,15 +2197,15 @@
datasets: [{
type: 'line',
label: '日照度(kWh/㎡)',
- borderColor: listcolor,
+ borderColor: 'rgba(190, 45, 45,1)',
pointRadius: 4,
yAxisID: 'B',
fill: false,
data: listirradiance
}, {
type: 'bar',
- borderColor: listcolor2,
- backgroundColor: listcolor2,
+ borderColor: 'rgba(103, 180, 172, 1)',
+ backgroundColor: 'rgba(103, 180, 172, 0.2)',
borderWidth: 1,
label: '發電量(kWh)',
yAxisID: 'A',
@@ -2259,11 +2259,11 @@
{
$('#HistoryTotalTable').append('