Update view_log.php

This commit is contained in:
jakani24
2024-04-27 11:32:44 +02:00
parent adf6d27cb7
commit 2e71803270

View File

@@ -93,6 +93,7 @@ $conn->close();
chart1.draw(data1, options1); chart1.draw(data1, options1);
// Second Chart // Second Chart
//we would be able to draw a second one if we want
var data2 = google.visualization.arrayToDataTable([ var data2 = google.visualization.arrayToDataTable([
['Category', 'Value'], ['Category', 'Value'],
['Category 1', 100], ['Category 1', 100],
@@ -102,7 +103,7 @@ $conn->close();
var options2 = { var options2 = {
title: 'Second Chart', title: 'Second Chart',
// Add your options here is3D: true,
}; };
var chart2 = new google.visualization.ColumnChart(document.getElementById('machine_spread')); var chart2 = new google.visualization.ColumnChart(document.getElementById('machine_spread'));
@@ -207,7 +208,7 @@ $conn->close();
$result = $stmt->get_result(); $result = $stmt->get_result();
if($current_page==1){ if($current_page==1){
echo("<div class='row'><div class='col' id='log_spread' style='width: 30%; height: auto;'></div>"); echo("<div class='row'><div class='col' id='log_spread' style='width: 30%; height: auto;'></div>");
echo("<div class='col' id='machine_spread' style='width: 30%; height: auto;'></div></div>"); echo("<div style='display:none' class='col' id='machine_spread' style='width: 30%; height: auto;'></div></div>");
} }
// Display log entries // Display log entries
echo '<table class="table" style="overflow-x:auto">'; echo '<table class="table" style="overflow-x:auto">';