better graphs
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
@ -17,9 +17,53 @@ class Demo extends Page{
|
||||
|
||||
function test()
|
||||
{
|
||||
$u = new User();
|
||||
$u->load('Chris','firstname');
|
||||
var_dump($u->data);
|
||||
$graph1 = partial('graph.html.php', [
|
||||
'id' => 'graph1',
|
||||
'title' => 'Graph 1',
|
||||
'legend' => ['Geschwindigkeit', 'Fehler', 'Verweigerungen', 'Zeit', 'Geschwindigkeit', 'Punkte', 'Platz'],
|
||||
'xaxis' => ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
||||
'seriesdata' => [
|
||||
['name' => 'Geschwindigkeit', 'type'=>'line','stack'=>'Total', 'data' => [120, 132, 101, 134, 90, 230, 210]],
|
||||
['name' => 'Fehler', 'type'=>'line','stack'=>'Total', 'data' => [220, 182, 191, 234, 290, 330, 310]],
|
||||
['name' => 'Verweigerungen', 'type'=>'line','stack'=>'Total', 'data' => [150, 232, 201, 154, 190, 330, 410]],
|
||||
['name' => 'Zeit', 'type'=>'line','stack'=>'Total', 'data' => [320, 332, 301, 334, 390, 330, 320]],
|
||||
['name' => 'Punkte', 'type'=>'line','stack'=>'Total', 'data' => [820, 932, 901, 934, 1290, 1330, 1320]],
|
||||
['name' => 'Platz', 'type'=>'line','stack'=>'Total', 'data' => [820, 932, 901, 934, 1290, 1330, 1320]]
|
||||
],
|
||||
]);
|
||||
|
||||
$graph2 = partial('graph.html.php', [
|
||||
'id' => 'graph2',
|
||||
'title' => 'Punkte',
|
||||
'xaxis' => ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
||||
'seriesdata' => [
|
||||
['name' => 'Punkte', 'type'=>'line','stack'=>'Total', 'data' => [820, 932, 901, 934, 1290, 1330, 1320]],
|
||||
],
|
||||
]);
|
||||
|
||||
$graph3 = partial('graph.html.php', [
|
||||
'id' => 'graph3',
|
||||
'title' => 'Graph 3',
|
||||
'legend' => ['Punkte'],
|
||||
'xaxis' => ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
|
||||
'seriesdata' => [
|
||||
['name' => 'Punkte', 'type'=>'line','stack'=>'Total', 'data' => [820, 932, 901, 934, 1290, 1330, 1320]],
|
||||
],
|
||||
]);
|
||||
|
||||
return '<div class="container text-center">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
'.$graph1.'
|
||||
</div>
|
||||
<div class="col">
|
||||
'.$graph2.'
|
||||
</div>
|
||||
<div class="col">
|
||||
'.$graph3.'
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
function index()
|
||||
|
Reference in New Issue
Block a user