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 {
|
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++ {
|
for i := 0; i < len(values); i++ {
|
||||||
if i > 0 {
|
if i > 0 {
|
||||||
ret += ","
|
ret += ","
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
}, {
|
}, {
|
||||||
count: 3,
|
count: 3,
|
||||||
type: 'day',
|
type: 'day',
|
||||||
text: '3j'
|
text: '3j',
|
||||||
}, {
|
}, {
|
||||||
count: 5,
|
count: 5,
|
||||||
type: 'day',
|
type: 'day',
|
||||||
|
|
@ -49,7 +49,8 @@
|
||||||
}, {
|
}, {
|
||||||
type: 'all',
|
type: 'all',
|
||||||
text: 'All'
|
text: 'All'
|
||||||
}]
|
}],
|
||||||
|
selected: 5
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
title: {
|
title: {
|
||||||
|
|
@ -58,6 +59,9 @@
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
type: 'datetime'
|
type: 'datetime'
|
||||||
|
},
|
||||||
|
scrollbar : {
|
||||||
|
enabled : false
|
||||||
},
|
},
|
||||||
legend : {
|
legend : {
|
||||||
enabled : true,
|
enabled : true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue