Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 284: | Rivi 284: | ||
} else if (memo.graphType == 'dateofyear') { | } else if (memo.graphType == 'dateofyear') { | ||
addDataToDateOfYearChart(memo); | addDataToDateOfYearChart( memo ); | ||
} | } | ||
| Rivi 346: | Rivi 346: | ||
memo.vAxisGridlines = []; | memo.vAxisGridlines = []; | ||
if (mi > 0) { | if (mi > 0) { | ||
memo.vAxisGridlines.push( new Date( startOfMonth.getTime() ) ); | //memo.vAxisGridlines.push( new Date( startOfMonth.getTime() ) ); | ||
} | } | ||
} | } | ||
| Rivi 370: | Rivi 370: | ||
// linear trend line | // linear trend line | ||
memo.options.trendlines[0] = { labelInLegend: i18n['trendline'][memo.lang], tooltip: | 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' }; | ||
// data columns for vAxis gridlines | // data columns for vAxis gridlines | ||
| Rivi 1 095: | Rivi 1 095: | ||
} | } | ||
memo.options.chartArea = { top: t, left: l, width: (w - l - r), height: (h - t - b), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | memo.options.chartArea = { top: t, left: l, width: (w - l - r), height: (h - t - b), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}; | ||
console.log(memo.options); | |||
memo.chart.draw( memo.data, memo.options ); | memo.chart.draw( memo.data, memo.options ); | ||


