Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 124: | Rivi 124: | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||
chartArea: { backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}, | chartArea: { backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}, | ||
legend: { position: ' | legend: { position: 'top' }, | ||
crosshair: { trigger: 'both' }, | crosshair: { trigger: 'both' }, | ||
tooltip: { isHtml: true }, | tooltip: { isHtml: true }, | ||
| 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': '#996666', 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>' } ); | ||


