diff --git a/sensorspecials/noise.js b/sensorspecials/noise.js index e3ee2f0..9fc18ba 100644 --- a/sensorspecials/noise.js +++ b/sensorspecials/noise.js @@ -10,7 +10,7 @@ import * as noiseChart from "./noiseChart.js"; const setoptionfromtable = (opt,tabval) => { let ret = opt - if ((opt === null) || (opt === '')) { + if ((opt === null) || (opt === '') || (opt < tabval)){ ret = tabval } return ret diff --git a/sensorspecials/noiseChart.js b/sensorspecials/noiseChart.js index a3ca4fe..30ffd97 100644 --- a/sensorspecials/noiseChart.js +++ b/sensorspecials/noiseChart.js @@ -238,7 +238,8 @@ export const havgData = (params, values) => { data: series2, color: utils.colors.peaks, type: 'column', - yAxis: 1 + yAxis: 1, + zIndex: 2 } ] // options.plotOptions.column = { @@ -337,6 +338,7 @@ export const havgData = (params, values) => { color: utils.colors.peaks, type: 'column', yAxis: 1, + zIndex: 2, } ] options.plotOptions.column = { diff --git a/utilities/errortexts.js b/utilities/errortexts.js index 5551124..152136f 100644 --- a/utilities/errortexts.js +++ b/utilities/errortexts.js @@ -10,7 +10,7 @@ export const NOPROPSREAD = `No properties read for sensor ${'xx'}` export const NOPARAMETER = 'No parameter given' export const RESPSTATUS = `Returned status = ${'xx'}` export const NODATA = 'No data found' -export const SYNTAXURL = 'Syntax error in calling url' +export const SYNTAXURL = 'Syntax error in calling url!' export const WRONGTYPE = `Sensor ${'xx'} is not of type ${'yy'}` export const NOLASTDATES = `Problems fetching last dates from database` export const NOPROPSFOUND = `Properties collection not found`