Ero sivun ”Widget:JwObsCharts2” versioiden välillä
Järvi-meriwikistä
Rivi 1 144: | Rivi 1 144: | ||
//console.log( memo.dataA ); | //console.log( memo.dataA ); | ||
− | //memo.options.hAxis.ticks = []; | + | // make ticks for x axis |
− | + | memo.options.hAxis.ticks = []; | |
− | + | for (i=0; i<12; i++) { | |
− | + | m = i+1; | |
− | + | middleOfMonth = new Date( memo.curSeason, m, 16 ); | |
+ | memo.options.hAxis.ticks.push({v: middleOfMonth, f: i18n.months[m]['roman'] }); | ||
+ | } | ||
memo.options.seriesType = 'line'; | memo.options.seriesType = 'line'; | ||
Rivi 1 154: | Rivi 1 156: | ||
memo.options.curveType = 'function'; | memo.options.curveType = 'function'; | ||
memo.options.intervals = { 'style': 'area' }; | memo.options.intervals = { 'style': 'area' }; | ||
− | memo.options.series[1] = { type: 'line', pointSize: 3, color: '#3366cc' }; | + | memo.options.series[1] = { type: 'line', pointSize: 3, color: '#3366cc', lineWidth: 3 }; |
memo.options.vAxis.viewWindow.min = 80.5; | memo.options.vAxis.viewWindow.min = 80.5; |