File size: 979 Bytes
bd9ac5f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
window.thresholds = [0, 0.2, 0.4, 0.6, 0.8, 1];  
window.emojis = ['☀️','🌧️'];
window.constant_score = 0.5;

window.ttSel = d3.select('body').selectAppend('div.tooltip.tooltip-hidden')


window.init = function(){

    var graphSel = d3.select('#graph')
    var width = height = graphSel.node().offsetWidth
    if (innerWidth <= 925){
        width = innerWidth
        height = innerHeight*.65
        window.isMobile = true
    }
    fig_height = height/2
    fig_width = width


    window.util = window.initUtil()
    window.weatherGraph = window.drawWeatherGraph(graphSel, fig_height, fig_width);
    window.calibrationCurve = window.drawCalibrationCurve(graphSel, fig_height, fig_width);
    // window.calibrationSlider = window.drawCalibrationSlider(weatherGraph, calibrationCurve, fig_width/2)
    // window.modelRemapper = window.drawModelRemapping(fig_width/2);


    window.slides = window.drawSlides()
    weatherGraph.renderThresholds()

}

window.init()