Created
September 17, 2019 01:27
-
-
Save zgramming/c718369ffbec625d3a9be2ac28735ff1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.onload = function() { | |
var tampil_kategori = '<?= $tampil_kategori ?>'; | |
var newdataPoints = JSON.parse(tampil_kategori); | |
var jumlahBerita = new CanvasJS.Chart("chartContainer2", { | |
animationEnabled: true, | |
theme: "light2", // "light1", "light2", "dark1", "dark2" | |
title: { | |
text: "Jumlah Berita(per Kategori)" | |
}, | |
data: [{ | |
type: "column", | |
dataPoints: newdataPoints | |
}] | |
}); | |
jumlahBerita.render(); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment