Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 116: | Rivi 116: | ||
obs = req.query.results[o]; | obs = req.query.results[o]; | ||
console.log(obs); | //console.log(obs); | ||
obsDate = new Date(parseInt(obs.printouts['Päivämäärä'][0].timestamp)*1000); | obsDate = new Date(parseInt(obs.printouts['Päivämäärä'][0].timestamp)*1000); | ||
| Rivi 209: | Rivi 209: | ||
function obsesLoaded(memo) { | function obsesLoaded(memo) { | ||
if (--memo.loadStarts == 0) { drawVisualization(memo); memo.loaderEl.fadeOut( "slow" ); } | if (--memo.loadStarts == 0) { drawVisualization(memo); memo.loaderEl.fadeOut( "slow" ); } | ||
| Rivi 218: | Rivi 216: | ||
// margin settings | // margin settings | ||
memo.margins = { top: 30, right: 15, bottom: 60, left: | memo.margins = { top: 30, right: 15, bottom: 60, left: 60 }; | ||
if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; } | if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; } | ||
| Rivi 224: | Rivi 222: | ||
// defaults for all charts | // defaults for all charts | ||
memo.options = { | memo.options = { | ||
title: i18n[memo.obscode]['title'][memo.lang], | //title: i18n[memo.obscode]['title'][memo.lang], | ||
//titleTextStyle: { fontSize: 14 }, | //titleTextStyle: { fontSize: 14 }, | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||


