info table added to return value on live chart
sensorspecials/noiseChart.js - infotable added
This commit is contained in:
@@ -13,6 +13,7 @@ export const liveData = (params, values) => {
|
||||
let series1 = []
|
||||
let series2 = []
|
||||
let series3 = []
|
||||
let infoTafel
|
||||
|
||||
// save the current (actual) values here
|
||||
let aktVal = {}
|
||||
@@ -35,7 +36,7 @@ export const liveData = (params, values) => {
|
||||
aktVal['LAMin'] = values[lastidx].noise_LA_min
|
||||
|
||||
// InfoTafel füllen
|
||||
let infoTafel =
|
||||
infoTafel =
|
||||
'<table class="infoTafel"><tr >' +
|
||||
'<th colspan="3">Aktuelle Werte</th>' +
|
||||
'</tr><tr>' +
|
||||
@@ -174,7 +175,7 @@ export const liveData = (params, values) => {
|
||||
let navtxt = ['-24h', '-12h', 'live', '+12h', '+24h']
|
||||
let navtime = [-24, -12, 0, 12, 24]
|
||||
|
||||
return { options: options, params: params}
|
||||
return { options: options, params: params, info: {class: 'infoTafel', text:infoTafel}}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user