Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 429: | Rivi 429: | ||
if ( typeof memo.obsesS[ obs.season ][ 'low' ] != 'undefined' && typeof memo.obsesS[ obs.season ][ 'high' ] != 'undefined' ) { | if ( typeof memo.obsesS[ obs.season ][ 'low' ] != 'undefined' && typeof memo.obsesS[ obs.season ][ 'high' ] != 'undefined' ) { | ||
if ( typeof memo.seriesO[ 'ice_cat_2,5' ] == 'undefined' ) { | if ( typeof memo.seriesO[ 'ice_cat_2,5' ] == 'undefined' ) { | ||
memo.seriesO[ 'ice_cat_2,5' ] = { 'id': 'ice_cat_2,5', 'type': 'candlestick', 'color': '# | memo.seriesO[ 'ice_cat_2,5' ] = { 'id': 'ice_cat_2,5', 'type': 'candlestick', 'color': '#ffffff', obses: [] }; | ||
} | } | ||
memo.seriesO[ 'ice_cat_2,5' ].obses.push( { 'xvalue': obs.seasonmiddle, 'low': memo.obsesS[ obs.season ][ 'low' ], 'high': memo.obsesS[ obs.season ][ 'high' ], 'tooltip': '<p><b>Talvi ' + obs.season + '–' + (obs.season+1) + '</b></p><p>Jääpeitekausi: ' + Math.round( ( memo.obsesS[ obs.season ][ 'high' ].getTime() - memo.obsesS[ obs.season ][ 'low' ].getTime() ) / ( 1000*60*60*24 ) ) + ' päivää</p>' } ); | memo.seriesO[ 'ice_cat_2,5' ].obses.push( { 'xvalue': obs.seasonmiddle, 'low': memo.obsesS[ obs.season ][ 'low' ], 'high': memo.obsesS[ obs.season ][ 'high' ], 'tooltip': '<p><b>Talvi ' + obs.season + '–' + (obs.season+1) + '</b></p><p>Jääpeitekausi: ' + Math.round( ( memo.obsesS[ obs.season ][ 'high' ].getTime() - memo.obsesS[ obs.season ][ 'low' ].getTime() ) / ( 1000*60*60*24 ) ) + ' päivää</p>' } ); | ||


