Some fancy on graph
This commit is contained in:
parent
226e9cbbde
commit
a5394e4cbf
|
|
@ -49,7 +49,7 @@ func (c *ViewTempController) Get() {
|
|||
*/
|
||||
|
||||
func formatDataSensor(sensorName string, values []temperature.TempTable) string {
|
||||
ret := "{name : \"" + sensorName + "\", data : ["
|
||||
ret := "{name : \"" + sensorName + "\",marker : {enabled : true, radius : 3}, data : ["
|
||||
for i := 0; i < len(values); i++ {
|
||||
if i > 0 {
|
||||
ret += ","
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
}, {
|
||||
count: 3,
|
||||
type: 'day',
|
||||
text: '3j'
|
||||
text: '3j',
|
||||
}, {
|
||||
count: 5,
|
||||
type: 'day',
|
||||
|
|
@ -49,7 +49,8 @@
|
|||
}, {
|
||||
type: 'all',
|
||||
text: 'All'
|
||||
}]
|
||||
}],
|
||||
selected: 5
|
||||
},
|
||||
yAxis: {
|
||||
title: {
|
||||
|
|
@ -58,6 +59,9 @@
|
|||
},
|
||||
xAxis: {
|
||||
type: 'datetime'
|
||||
},
|
||||
scrollbar : {
|
||||
enabled : false
|
||||
},
|
||||
legend : {
|
||||
enabled : true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue