Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 108: | Rivi 108: | ||
//titleTextStyle: { fontSize: 14 }, | //titleTextStyle: { fontSize: 14 }, | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||
chartArea: { top: memo.margins.top, left: memo.margins.left, width: (memo.widgetEl.width() - memo.margins.left - memo.margins.right), height: (memo.widgetEl.height() - memo.margins.top - memo.margins.bottom), backgroundColor: { fill | chartArea: { top: memo.margins.top, left: memo.margins.left, width: (memo.widgetEl.width() - memo.margins.left - memo.margins.right), height: (memo.widgetEl.height() - memo.margins.top - memo.margins.bottom), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}, | ||
legend: { position: 'bottom' }, | legend: { position: 'bottom' }, | ||
crosshair: { trigger: 'both' }, | crosshair: { trigger: 'both' }, | ||
| Rivi 387: | Rivi 387: | ||
if ( memo.obscode == 'ice_cat_2,5' ) { | if ( memo.obscode == 'ice_cat_2,5' ) { | ||
memo.obsesS = {}; | memo.obsesS = {}; | ||
memo.options.chartArea.backgroundColor = '#3366cc'; | memo.options.chartArea.backgroundColor.fill = '#3366cc'; | ||
for ( var o in memo.obsesA ) { | for ( var o in memo.obsesA ) { | ||
var obs = memo.obsesA[ o ]; | var obs = memo.obsesA[ o ]; | ||
| Rivi 404: | Rivi 404: | ||
memo.seriesO[ 'icecover' ] = { 'type': 'candlestick', obses: [] }; | memo.seriesO[ 'icecover' ] = { 'type': 'candlestick', obses: [] }; | ||
} | } | ||
memo.seriesO[ 'icecover' ].obses.push( { 'xvalue': obs.seasonmiddle, 'low': memo.obsesS[ obs.season ][ 'low' ], 'high': memo.obsesS[ obs.season ][ 'high' ], 'color': ' | memo.seriesO[ 'icecover' ].obses.push( { 'xvalue': obs.seasonmiddle, 'low': memo.obsesS[ obs.season ][ 'low' ], 'high': memo.obsesS[ obs.season ][ 'high' ], 'color': '#ffffff', 'tooltip': '<p><b>Talvi ' + obs.season + '–' + (obs.season+1) + '</b></p><p>Jääpeiteaika: ' + Math.round( ( memo.obsesS[ obs.season ][ 'high' ].getTime() - memo.obsesS[ obs.season ][ 'low' ].getTime() ) / ( 1000*60*60*24 ) ) + ' päivää</p>' } ); | ||
} | } | ||
} | } | ||
| Rivi 435: | Rivi 435: | ||
} | } | ||
console.log(memo.options); | |||
// add data to table | // add data to table | ||
cc = memo.data.getNumberOfColumns(); | cc = memo.data.getNumberOfColumns(); | ||


