*** WIP WIP *** All charts work (mostly)

This commit is contained in:
rxf
2023-03-31 17:38:55 +02:00
parent 1cdf03b064
commit a1c1c93bc4
7 changed files with 69 additions and 19 deletions
+1 -11
View File
@@ -10,7 +10,7 @@ import * as chart_dayavg from './chart_dayavg.js'
import * as chart_daynight from './chart_daynight.js'
import * as chart_lden from './chart_lden.js'
import * as utils from "./chart_utilities.js";
import {showChart} from './showcharts.js'
import {tabtable} from './showcharts.js'
(async () => {
@@ -34,16 +34,6 @@ import {showChart} from './showcharts.js'
}
// END global variables
// table to distribute the different charts
const tabtable = [
{id: 'kartentab', type: 'map', container: 'map', func: map.showMap},
{id: 'livetab', type: 'live', container: 'dlive', func: showChart},
{id: 'houravgtab', type: 'havg', container: 'dhour', func: showChart},
{id: 'dayavgtab', type: 'davg', container: 'dday', func: showChart},
{id: 'daynighttab', type: 'daynight', container: 'ddaynight', func: showChart},
{id: 'ldentab', type: 'lden', container: 'dlden', func: showChart},
]
// remove the taps (if shownig the map)
const removeTabs = () => {