Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 376: | Rivi 376: | ||
s = obs.seriesId; | s = obs.seriesId; | ||
if ( typeof memo.seriesO[ s ] == 'undefined' ) { | if ( typeof memo.seriesO[ s ] == 'undefined' ) { | ||
memo.seriesO[ s ] = { 'id': s, 'type': 'scatter', 'color': i18n[ s ].color, 'obses': [] }; | memo.seriesO[ s ] = { 'id': s, 'title': i18n[ s ].title[ obs.lang ], 'type': 'scatter', 'color': i18n[ s ].color, 'obses': [] }; | ||
//memo.seriesO[ s + '_trend' ] = { 'type': 'linear', 'obses': [] }; | //memo.seriesO[ s + '_trend' ] = { 'type': 'linear', 'obses': [] }; | ||
} | } | ||
| Rivi 427: | Rivi 427: | ||
memo.data.addColumn( { type: 'string', role: 'annotation' } ); | memo.data.addColumn( { type: 'string', role: 'annotation' } ); | ||
memo.options.series.push( { type: 'scatter', pointType: 'circle', pointSize: 9, color: memo.seriesA[ s ].color, x: '#3366cc' } ); | memo.options.series.push( { 'title': 'asdfasd', type: 'scatter', pointType: 'circle', pointSize: 9, color: memo.seriesA[ s ].color, x: '#3366cc' } ); | ||
memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, color: i18n[ memo.seriesA[ s ].id ].color, visibleInLegend: false }; | memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, color: i18n[ memo.seriesA[ s ].id ].color, visibleInLegend: false }; | ||
| Rivi 1 337: | Rivi 1 337: | ||
'catName': 'Jäätilanne', | 'catName': 'Jäätilanne', | ||
}, | }, | ||
'ice_cat_2': { color: '#d5da26' }, | 'ice_cat_2': { 'title': { 'fi': 'Jäätyminen', 'en': 'Freezing', 'sv': 'Förfrysning', 'ru': '???' }, color: '#d5da26' }, | ||
'ice_cat_5': { color: '#0076b0' }, | 'ice_cat_5': { 'title': { 'fi': 'Jäänlähtö', 'en': 'Ice-break up', 'sv': 'Islossning', 'ru': '???' }, color: '#0076b0' }, | ||
'ice_cat_2,5': { | 'ice_cat_2,5': { | ||
'type': 'date', | 'type': 'date', | ||


