Commit 1b7c4b14 authored by Jasin's avatar Jasin

Bugfix

parent ebc4c709
......@@ -2,6 +2,7 @@ var myChart;
function addDataSet(delays, name)
{
console.log("Add Dataset");
let color = "##18bc9c;";
let Dataset =
......@@ -18,6 +19,7 @@ function addDataSet(delays, name)
}
function initChart(config)
{
console.log("init chart");
const ctx = document.getElementById('myChart').getContext('2d');
myChart = new Chart(ctx, config);
}
......@@ -40,6 +42,7 @@ let chartConfig =
function statsDataLoader()
{
console.log("Start Loading stats");
let settings =
{
"async": true,
......
......@@ -3,11 +3,12 @@ header('Access-Control-Allow-Origin: *');
require ("db.php");
$sql = 'select CAST(created AS DATE) as \"created\", SUM(delay) as \"delays\" from rnv.tours group by CAST(created AS DATE)';
$sql = 'select CAST(created AS DATE) as "created", SUM(delay) as "delays" from rnv.tours group by CAST(created AS DATE)';
$res = mysqli_query($conn, $sql);
if ($conn->errno)
{
var_dump($conn);
die ("Fehler beim lesen der Datenbank");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment