info table added to return value on live chart

sensorspecials/noiseChart.js
   - infotable added
This commit is contained in:
rxf
2023-04-06 17:19:07 +02:00
parent e66e09e63b
commit 492aa1c3f3
+3 -2
View File
@@ -13,6 +13,7 @@ export const liveData = (params, values) => {
let series1 = [] let series1 = []
let series2 = [] let series2 = []
let series3 = [] let series3 = []
let infoTafel
// save the current (actual) values here // save the current (actual) values here
let aktVal = {} let aktVal = {}
@@ -35,7 +36,7 @@ export const liveData = (params, values) => {
aktVal['LAMin'] = values[lastidx].noise_LA_min aktVal['LAMin'] = values[lastidx].noise_LA_min
// InfoTafel füllen // InfoTafel füllen
let infoTafel = infoTafel =
'<table class="infoTafel"><tr >' + '<table class="infoTafel"><tr >' +
'<th colspan="3">Aktuelle Werte</th>' + '<th colspan="3">Aktuelle Werte</th>' +
'</tr><tr>' + '</tr><tr>' +
@@ -174,7 +175,7 @@ export const liveData = (params, values) => {
let navtxt = ['-24h', '-12h', 'live', '+12h', '+24h'] let navtxt = ['-24h', '-12h', 'live', '+12h', '+24h']
let navtime = [-24, -12, 0, 12, 24] let navtime = [-24, -12, 0, 12, 24]
return { options: options, params: params} return { options: options, params: params, info: {class: 'infoTafel', text:infoTafel}}
} }