Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 1 198: | Rivi 1 198: | ||
memo.options.series[sc++] = { type: 'line', curveType: 'function', lineWidth: 3, pointSize: 5, color: colors['average'], dataOpacity: 0.75, lineDashStyle: [6,3], enableInteractivity: false, visibleInLegend: memo.trendType=='moving' }; | memo.options.series[sc++] = { type: 'line', curveType: 'function', lineWidth: 3, pointSize: 5, color: colors['average'], dataOpacity: 0.75, lineDashStyle: [6,3], enableInteractivity: false, visibleInLegend: memo.trendType=='moving' }; | ||
} | } | ||
+ | memo.data.addColumn( { id: 'dev', type: 'number', role: 'interval' } ); | ||
+ | memo.data.addColumn( { id: 'dev', type: 'number', role: 'interval' } ); | ||
+ | |||
if ( memo.seasonsA.length == 1 && memo.seasonsA[0] == memo.curSeason ) { | if ( memo.seasonsA.length == 1 && memo.seasonsA[0] == memo.curSeason ) { | ||
memo.options.series[ sc-1 ].lineWidth = 0; | memo.options.series[ sc-1 ].lineWidth = 0; | ||
Rivi 1 204: | Rivi 1 207: | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
// series for trend line | // series for trend line | ||
memo.data.addColumn( 'number', 'trend' ); | memo.data.addColumn( 'number', 'trend' ); | ||
Rivi 1 426: | Rivi 1 425: | ||
} | } | ||
− | memo.options.intervals = { 'style':' | + | memo.options.intervals = { 'style':'none' }; |
} else if (memo.trendType == 'moving') { | } else if (memo.trendType == 'moving') { |