-
Notifications
You must be signed in to change notification settings - Fork 0
/
highcharts_data.php
121 lines (115 loc) · 2.39 KB
/
highcharts_data.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!--TO DO: Muss dringend dokumentiert werden-->
$(function () {
$('#container').highcharts({
colors: ['#555555','#088A08','#F7D358','#FF0000','#0101DF'],
chart: {
zoomType: 'x'
<?php
error_reporting(E_ALL ^ E_NOTICE);
echo(',');
echo("type: '".$_POST['typ']."'");
?>
},
title: {
text: 'Schilfprojekt',
x: -20 //center
},
subtitle: {
text: 'Ein Projekt der Thomas Mann Schule',
x: -20
},
xAxis: {
title: {
text: document.getElementById('X').options[document.getElementById('X').selectedIndex].value
},
<!--minRange: 1, -->
<?php
error_reporting(E_ALL ^ E_NOTICE);
if ($_POST['WertX'] == 'Datum'){
echo('alternateGridColor: "#f0f0f0", tickInterval: 182 * 24 * 3600 * 1000, ');
echo("type: 'datetime'");
}
if($_POST['typ'] == 'column'){
echo("type: 'datetime'");
}
?>
},
yAxis: {
title: {
text: document.getElementById('Y').options[document.getElementById('Y').selectedIndex].innerHTML
},
min: 0,
labels: {
format: '{value}' + einheit
},
startOnTick: false
<?php
error_reporting(E_ALL ^ E_NOTICE);
if ($_POST['WertY'] == 'Datum'){
echo(',');
echo("type: 'datetime'");
}
?>
},
tooltip: {
valueSuffix: einheit
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [
{
name: 'Wallbrechtbrücke',
data: Wallbrechtbruecke
},
{
name: 'Wallbrechtbrücke Standartabweichung',
linkedTo:':previous',
type: 'errorbar',
data: WallbrechtbrueckeS
},
{
name: 'Eichholz',
data: Eichholz
},
{
name: 'Eichholz Standartabweichung',
linkedTo:':previous',
type: 'errorbar',
data: EichholzS
},
{
name: 'Kleiner See',
data: KleinerSee
},
{
name: 'Kleiner See Standartabweichung',
linkedTo:':previous',
type: 'errorbar',
data: KleinerSeeS
},
{
name: 'Absalonshorst',
data: Absalonshorst
},
{
name: 'Absalonshorst Standartabweichung',
linkedTo:':previous',
type: 'errorbar',
data: AbsalonshorstS
},
{
name: 'Gross Sarau',
data: GrossSarau
},
{
name: 'GrossSarau Standartabweichung',
linkedTo:':previous',
type: 'errorbar',
data: GrossSarauS
},]
});
});