diff --git a/App/teacher.html b/App/teacher.html index 09caf07..d95913d 100644 --- a/App/teacher.html +++ b/App/teacher.html @@ -739,7 +739,12 @@ var LIVE_PRIMARY_FIELDS = { {k:'temp', label:'Temp', unit:'°C', fmt:function(v){ return _liveBar(v, 14, 20, 'low', 1); }}, {k:'floodedPct', label:'Geflutet', unit:'%', fmt:function(v){ return _liveBar(v, 0, 100, 'low'); }}, {k:'budget', label:'Budget', unit:'Mio €', fmt:function(v){ return _liveBar(v, -500, 3000, 'high'); }}, - {k:'population', label:'Bev.', fmt:function(v){ return _liveBar(v, 1500, 4500, 'high'); }}, + {k:'population', label:'Bev.', fmt:function(v, row){ + // Relativ zur Startbevölkerung (Level 3 = 7000, sonst 6000): unter Start = rot, + // gehalten = gelb, gewachsen = grün. Fixe Skala klemmte sonst alle bei 100 %. + var sp = (((row&&row.state)||{}).level >= 3) ? 7000 : 6000; + return _liveBar(v, sp*0.3, sp*1.6, 'high'); + }}, {k:'measures', label:'Maßn.'}, {k:'speed', label:'Speed', unit:'×'}, ],