One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thoa
/
public_html
/
admin
/
js
/
Edit File:
chart-data.js
var randomScalingFactor = function(){ return Math.round(Math.random()*1000)}; var lineChartData = { labels : ["January","February","March","April","May","June","July"], datasets : [ { label: "My First dataset", fillColor : "rgba(220,220,220,0.2)", strokeColor : "rgba(220,220,220,1)", pointColor : "rgba(220,220,220,1)", pointStrokeColor : "#fff", pointHighlightFill : "#fff", pointHighlightStroke : "rgba(220,220,220,1)", data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()] }, { label: "My Second dataset", fillColor : "rgba(48, 164, 255, 0.2)", strokeColor : "rgba(48, 164, 255, 1)", pointColor : "rgba(48, 164, 255, 1)", pointStrokeColor : "#fff", pointHighlightFill : "#fff", pointHighlightStroke : "rgba(48, 164, 255, 1)", data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()] } ] } var barChartData = { labels : ["January","February","March","April","May","June","July"], datasets : [ { fillColor : "rgba(220,220,220,0.5)", strokeColor : "rgba(220,220,220,0.8)", highlightFill: "rgba(220,220,220,0.75)", highlightStroke: "rgba(220,220,220,1)", data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()] }, { fillColor : "rgba(48, 164, 255, 0.2)", strokeColor : "rgba(48, 164, 255, 0.8)", highlightFill : "rgba(48, 164, 255, 0.75)", highlightStroke : "rgba(48, 164, 255, 1)", data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()] } ] } var pieData = [ { value: 300, color:"#30a5ff", highlight: "#62b9fb", label: "Blue" }, { value: 50, color: "#ffb53e", highlight: "#fac878", label: "Orange" }, { value: 100, color: "#1ebfae", highlight: "#3cdfce", label: "Teal" }, { value: 120, color: "#f9243f", highlight: "#f6495f", label: "Red" } ]; var doughnutData = [ { value: 300, color:"#30a5ff", highlight: "#62b9fb", label: "Blue" }, { value: 50, color: "#ffb53e", highlight: "#fac878", label: "Orange" }, { value: 100, color: "#1ebfae", highlight: "#3cdfce", label: "Teal" }, { value: 120, color: "#f9243f", highlight: "#f6495f", label: "Red" } ]; window.onload = function(){ var chart1 = document.getElementById("line-chart").getContext("2d"); window.myLine = new Chart(chart1).Line(lineChartData, { responsive: true }); var chart2 = document.getElementById("bar-chart").getContext("2d"); window.myBar = new Chart(chart2).Bar(barChartData, { responsive : true }); var chart3 = document.getElementById("doughnut-chart").getContext("2d"); window.myDoughnut = new Chart(chart3).Doughnut(doughnutData, {responsive : true }); var chart4 = document.getElementById("pie-chart").getContext("2d"); window.myPie = new Chart(chart4).Pie(pieData, {responsive : true }); };
Simpan