*** WIP WIP *** load all charts in advance

This commit is contained in:
rxf
2023-04-04 10:39:13 +02:00
parent 5082eb408f
commit 71a59fb9e8
6 changed files with 56 additions and 58 deletions
+16 -2
View File
@@ -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'
}