Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 719: | Rivi 719: | ||
// do Y axis min and max for this chart type | // do Y axis min and max for this chart type | ||
memo.options.vAxis.viewWindow.min = new Date( memo.obsMinCompDate.getTime() ); | memo.options.vAxis.viewWindow.min = new Date( memo.obsMinCompDate.getTime() ); | ||
memo.options.vAxis.viewWindow.min.setDate(1); | memo.options.vAxis.viewWindow.min.setDate(1); | ||
memo.options.vAxis.viewWindow.min.setHours( 0, 0, 0 ); | memo.options.vAxis.viewWindow.min.setHours( 0, 0, 0 ); | ||
memo.options.vAxis.viewWindow.max = new Date( memo.obsMaxCompDate.getTime() ); | memo.options.vAxis.viewWindow.max = new Date( memo.obsMaxCompDate.getTime() ); | ||
memo.options.vAxis.viewWindow.max.setMonth( memo.options.vAxis.viewWindow.max.getMonth()+1 ); | memo.options.vAxis.viewWindow.max.setMonth( memo.options.vAxis.viewWindow.max.getMonth()+1 ); | ||
| Rivi 822: | Rivi 817: | ||
memo.options.series.push( { type: 'scatter', pointType: 'circle', pointSize: 10, color: memo.seriesA[ s ].color, XstrokeWidth: 2, Xstroke: '#000000' } ); | memo.options.series.push( { type: 'scatter', pointType: 'circle', pointSize: 10, color: memo.seriesA[ s ].color, XstrokeWidth: 2, Xstroke: '#000000' } ); | ||
if ( memo.seriesA[ s ].obses.length > | if ( memo.seriesA[ s ].obses.length > 4 ) { | ||
memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, lineWidth: 2.33, visibleInLegend: false, tooltip: false }; | memo.options.trendlines[ memo.options.series.length - 1 ] = { type: 'linear', title: i18n.trendline, lineWidth: 2.33, visibleInLegend: false, tooltip: false }; | ||
} else { | } else { | ||
| Rivi 906: | Rivi 901: | ||
} | } | ||
} | } | ||
memo.options.hAxis.gridlines.color = ' | memo.options.hAxis.gridlines.color = 'transparent'; | ||
memo.options.vAxis.gridlines.color = '#cccccc'; | memo.options.vAxis.gridlines.color = '#cccccc'; | ||


