Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 352: | Rivi 352: | ||
memo.jwR.loadObses( { "obscode": memo.refcode, "siteid": memo.siteid, "sort": "SiteID", "custom": memo.reffilter }, function( r ) { | memo.jwR.loadObses( { "obscode": memo.refcode, "siteid": memo.siteid, "sort": "SiteID", "custom": memo.reffilter }, function( r ) { | ||
memo.refs = memo.jwR.obs; | memo.refs = memo.jwR.obs; | ||
− | |||
− | |||
drawVisualization(memo); | drawVisualization(memo); | ||
}); | }); | ||
Rivi 523: | Rivi 521: | ||
} | } | ||
− | + | ||
if ( typeof memo.refs != 'undefined' ) { | if ( typeof memo.refs != 'undefined' ) { | ||
var refs = {}; | var refs = {}; | ||
Rivi 1 089: | Rivi 1 087: | ||
// series for trend line | // series for trend line | ||
//memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['trend'], lineWidth: 2, opacity: 0.5, type: 'linear', visibleInLegend: memo.trendType!='moving' }; | //memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: false, color: colors['trend'], lineWidth: 2, opacity: 0.5, type: 'linear', visibleInLegend: memo.trendType!='moving' }; | ||
− | + | console.log( memo.obsesA ); | |
for (var o in memo.obsesA) { | for (var o in memo.obsesA) { | ||
dateStr = memo.obsesA[o].popup.match( /\([^)]*\)/g ); | dateStr = memo.obsesA[o].popup.match( /\([^)]*\)/g ); | ||
Rivi 1 268: | Rivi 1 266: | ||
} else { | } else { | ||
if ( memo.obscode == 'secchi' ) { | if ( memo.obscode == 'secchi' ) { | ||
− | console.log('secchi'); | + | //console.log('secchi'); |
memo.options.series[sc++] = { type: 'area', curveType: 'function', color: colors['curObses'], pointSize: 3, lineWidth: 4, visibleInLegend: true, hideThis: false, origSize: 10 }; | memo.options.series[sc++] = { type: 'area', curveType: 'function', color: colors['curObses'], pointSize: 3, lineWidth: 4, visibleInLegend: true, hideThis: false, origSize: 10 }; | ||
} else { | } else { |