better visability of peak charts

utilities/errortexts.js
   - typos corrected

sensorspecials/noise.js
   - accept only values for span lower than default values

sensorspecials/noiseChart.js
   - add zIndex to options
This commit is contained in:
rxf
2023-04-05 20:56:08 +02:00
parent 9ef468cf74
commit e66e09e63b
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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 = {
+1 -1
View File
@@ -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`