Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 56: | Rivi 56: | ||
obsesReady( memo ); | obsesReady( memo ); | ||
}); | }); | ||
function obsesReady( memo ) { | function obsesReady( memo ) { | ||
| Rivi 68: | Rivi 67: | ||
// defaults for all charts | // defaults for all charts | ||
memo.options = { | memo.options = { | ||
title: | title: i18n[memo.obscode]['title'][memo.lang], | ||
//titleTextStyle: { fontSize: 14 }, | //titleTextStyle: { fontSize: 14 }, | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||
| Rivi 99: | Rivi 98: | ||
trendlines: [ ] | trendlines: [ ] | ||
}; | }; | ||
memo.obsesTotal = 0; | |||
memo.obsMinValue = Infinity; | |||
memo.obsMaxValue = -Infinity; | |||
memo.obsMinDateMs = Infinity; | |||
memo.obsMaxDateMs = -Infinity; | |||
memo.obsMinCompDateMs = Infinity; | |||
memo.obsMaxCompDateMs = -Infinity; | |||
memo.season = i18n[memo.obscode]['season']; | |||
if ( memo.season == 'summer' || today.getMonth() > 7 ) { | |||
memo.curSeason = today.getFullYear(); | |||
} else { | |||
memo.curSeason = today.getFullYear()-1; | |||
} | |||
| Rivi 467: | Rivi 479: | ||
} | } | ||
}); | |||
} | } | ||


