Commit ff4cefbc by Ari Agung Prasetiyo Committed by Ari Agung Prasetiyo

update

1 parent 4f3a7385
...@@ -102,9 +102,11 @@ div.col-md-6 { ...@@ -102,9 +102,11 @@ div.col-md-6 {
.odoometer-head { .odoometer-head {
font-size: 2.0em !important; font-size: 2.0em !important;
font-weight: bold !important;
} }
.odoometer-sub { .odoometer-sub {
font-size: 1.5em !important; font-size: 1.5em !important;
font-weight: bold !important;
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -185,7 +185,8 @@ ...@@ -185,7 +185,8 @@
} }
} }
} }
}); }
);
var ctx = document.getElementById('chartRealisasi').getContext('2d'); var ctx = document.getElementById('chartRealisasi').getContext('2d');
var canvas = document.getElementById('chartRealisasi'); var canvas = document.getElementById('chartRealisasi');
...@@ -219,7 +220,7 @@ ...@@ -219,7 +220,7 @@
} }
}); });
var realisasi_data = { var transaksi_data = {
labels: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'H7',], labels: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'H7',],
datasets: [{ datasets: [{
label: 'Tren Transaksi', label: 'Tren Transaksi',
...@@ -230,13 +231,14 @@ ...@@ -230,13 +231,14 @@
tension: 0.5 tension: 0.5
}] }]
}; };
var ctx = document.getElementById('chartRealisasiCnt').getContext('2d'); var ctx = document.getElementById('chartRealisasiCnt').getContext('2d');
var canvas = document.getElementById('chartRealisasiCnt'); var canvas = document.getElementById('chartRealisasiCnt');
canvas.width = window.innerWidth; canvas.width = window.innerWidth;
canvas.height = window.innerHeight / 3.38; canvas.height = window.innerHeight / 3.38;
trxTrendChart = new Chart(ctx, { trxTrendChart = new Chart(ctx, {
type: 'line', type: 'line',
data: realisasi_data, data: transaksi_data,
options: { options: {
responsive: true, responsive: true,
maintainAspectRatio: false, maintainAspectRatio: false,
...@@ -286,6 +288,7 @@ ...@@ -286,6 +288,7 @@
}); });
$().datarefresh(); $().datarefresh();
}); });
function addData(chart, data) { function addData(chart, data) {
labels = []; labels = [];
aData = []; aData = [];
...@@ -386,8 +389,6 @@ ...@@ -386,8 +389,6 @@
// $().get_series(); // $().get_series();
} }
</script> </script>
</html> </html>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!