forked from seehase/neowx-material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraph_line_archive_config.inc
80 lines (71 loc) · 1.41 KB
/
graph_line_archive_config.inc
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
#encoding UTF-8
## +-----------------------------------------------------------------------------------+
## | graph_line_archive_config.inc JS config for default line charts |
## +-----------------------------------------------------------------------------------+
chart: {
type: 'line',
zoom: {
enabled: false,
type: 'x',
autoScaleYaxis: false,
},
},
dataLabels: {
enabled: false
},
stroke: {
width: 0,
},
plotOptions: {
line: {
borderRadius: 2,
}
},
fill: {
opacity: 0.7
},
markers: {
size: 4,
strokeWidth: 1,
strokeOpacity: 0.5,
strokeDashArray: 0,
fillOpacity: 0.7,
shape: "circle",
radius: 1,
},
xaxis: {
type: 'datetime',
tickAmount: 8,
trim: true,
labels: {
hideOverlappingLabels: true,
tickAmount: 8,
rotateAlways: false,
hideOverlappingLabels: true,
showDuplicates: false,
trim: true,
formatter: function(val, timestamp) {
return moment.unix(timestamp).format("$Extras.Formatting.datetime_graph_archive");
}
}
},
grid: {
show: true,
strokeDashArray: 0,
position: 'back',
xaxis: {
lines: {
show: true
}
},
yaxis: {
lines: {
show: true
}
},
},
tooltip: {
x: {
format: "$Extras.Formatting.datetime_graph_tooltip"
}
},