*** WIP WIP *** load all charts in advance
This commit is contained in:
@@ -24,6 +24,9 @@ export function createGlobObtions() {
|
||||
// Options, die für alle Plots identisch sind
|
||||
let globObject = {
|
||||
chart: {
|
||||
accessibility: {
|
||||
enabled: false
|
||||
},
|
||||
height: 600,
|
||||
// width: 1000,
|
||||
spacingRight: 20,
|
||||
@@ -160,7 +163,7 @@ export function calcDays(data, isyear) {
|
||||
|
||||
export async function addSensorID2chart(chart, sensor, width) {
|
||||
console.log('widht: ',width);
|
||||
let indoor =sensor.indoor
|
||||
let indoor = sensor.indoor || false
|
||||
console.log('indoor: ',indoor)
|
||||
let sens = chart.renderer.label(
|
||||
`Sensor: ${sensor.sid} ${indoor ? ' (indoor)' : ''}`,
|
||||
@@ -179,4 +182,15 @@ export const showError = (err) => {
|
||||
document.querySelector('.modal-body').setHTML(err)
|
||||
let myModal = new bootstrap.Modal(document.getElementById('dialogError'))
|
||||
myModal.show()
|
||||
}
|
||||
}
|
||||
|
||||
// remove the taps (if shownig the map)
|
||||
export const removeTabs = () => {
|
||||
document.querySelector('#navi').style.display = 'none'
|
||||
}
|
||||
|
||||
// show thw tabs again
|
||||
export const showTabs = () => {
|
||||
document.querySelector('#navi').style.display = 'block'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user