Update view_log.php
This commit is contained in:
@@ -71,45 +71,44 @@ $conn->close();
|
|||||||
|
|
||||||
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
google.charts.load("current", {packages:["corechart"]});
|
google.charts.load("current", {packages:["corechart"]});
|
||||||
google.charts.setOnLoadCallback(drawChart);
|
google.charts.setOnLoadCallback(drawCharts);
|
||||||
function drawChart() {
|
|
||||||
var data = google.visualization.arrayToDataTable([
|
|
||||||
['Entrys', 'Loglevel'],
|
|
||||||
['Virus', <?php echo($virus);?>],
|
|
||||||
['Error', <?php echo($err);?>],
|
|
||||||
['Info', <?php echo($info);?>],
|
|
||||||
['Warning', <?php echo($warn)?>],
|
|
||||||
]);
|
|
||||||
|
|
||||||
var options = {
|
function drawCharts() {
|
||||||
title: 'Log Entrys',
|
// First Chart
|
||||||
is3D: true,
|
var data1 = google.visualization.arrayToDataTable([
|
||||||
};
|
['Entrys', 'Loglevel'],
|
||||||
|
['Virus', <?php echo($virus);?>],
|
||||||
|
['Error', <?php echo($err);?>],
|
||||||
|
['Info', <?php echo($info);?>],
|
||||||
|
['Warning', <?php echo($warn)?>],
|
||||||
|
]);
|
||||||
|
|
||||||
var chart = new google.visualization.PieChart(document.getElementById('log_spread'));
|
var options1 = {
|
||||||
chart.draw(data, options);
|
title: 'Log Entrys',
|
||||||
}
|
is3D: true,
|
||||||
|
};
|
||||||
|
|
||||||
google.charts.load("current", {packages:["corechart"]});
|
var chart1 = new google.visualization.PieChart(document.getElementById('log_spread_1'));
|
||||||
google.charts.setOnLoadCallback(drawChart2);
|
chart1.draw(data1, options1);
|
||||||
function drawChart2() {
|
|
||||||
var data = google.visualization.arrayToDataTable([
|
|
||||||
['Entrys', 'Loglevel'],
|
|
||||||
['Virus', <?php echo($virus);?>],
|
|
||||||
['Error', <?php echo($err);?>],
|
|
||||||
['Info', <?php echo($info);?>],
|
|
||||||
['Warning', <?php echo($warn)?>],
|
|
||||||
]);
|
|
||||||
|
|
||||||
var options = {
|
// Second Chart
|
||||||
title: 'Log Entrys',
|
var data2 = google.visualization.arrayToDataTable([
|
||||||
is3D: true,
|
['Category', 'Value'],
|
||||||
};
|
['Category 1', 100],
|
||||||
|
['Category 2', 200],
|
||||||
|
['Category 3', 300],
|
||||||
|
]);
|
||||||
|
|
||||||
|
var options2 = {
|
||||||
|
title: 'Second Chart',
|
||||||
|
// Add your options here
|
||||||
|
};
|
||||||
|
|
||||||
|
var chart2 = new google.visualization.ColumnChart(document.getElementById('second_chart'));
|
||||||
|
chart2.draw(data2, options2);
|
||||||
|
}
|
||||||
|
|
||||||
var chart2 = new google.visualization.PieChart(document.getElementById('machine_spread'));
|
|
||||||
chart.draw(data, options);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user