|
|
| Rivi 35: |
Rivi 35: |
| | | |
| memo.season = i18n[memo.obscode]['season']; | | memo.season = i18n[memo.obscode]['season']; |
| if ( memo.season == 'summer' || now.getMonth() > 7 ) { | | if ( memo.season == 'summer' || today.getMonth() > 7 ) { |
| memo.curSeason = now.getFullYear(); | | memo.curSeason = today.getFullYear(); |
| } else { | | } else { |
| memo.curSeason = now.getFullYear()-1; | | memo.curSeason = today.getFullYear()-1; |
| } | | } |
| | | |
| Rivi 73: |
Rivi 73: |
| | | |
| function obsesReady() { | | function obsesReady() { |
|
| |
| // margin settings
| |
| memo.margins = { top: 0, right: 25, bottom: 60, left: 60 };
| |
|
| |
| if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; }
| |
|
| |
| // defaults for all charts
| |
| memo.options = {
| |
| title: "", //i18n[memo.obscode]['title'][memo.lang],
| |
| //titleTextStyle: { fontSize: 14 },
| |
| backgroundColor: 'transparent',
| |
| chartArea: { top: memo.margins.top, left: memo.margins.left, width: (memo.container.width() - memo.margins.left - memo.margins.right), height: (memo.container.height() - memo.margins.top - memo.margins.bottom), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }},
| |
| legend: { position: 'bottom' },
| |
| crosshair: { trigger: 'both' },
| |
| tooltip: { isHtml: true },
| |
| seriesType: 'scatter',
| |
| interpolateNulls: true,
| |
|
| |
| vAxis: {
| |
| title: i18n[memo.obscode]['axisTitleV'][memo.lang],
| |
| titleTextStyle: { bold: true },
| |
| slantedText: false,
| |
| maxAlternation: 1,
| |
| direction: memo.vaxisdir,
| |
| gridlines: { color: '#fff' },
| |
| minorGridlines: { count: 0 },
| |
| viewWindow: { }
| |
| },
| |
| hAxis: {
| |
| title: '',
| |
| slantedText: false,
| |
| maxAlternation: 1,
| |
| gridlines: { color: '#fff' },
| |
| minorGridlines: { count: 0 },
| |
| viewWindow: { }
| |
| },
| |
| series: [ ],
| |
| trendlines: [ ]
| |
| };
| |
|
| |
|
| |
| | | |
| data = {}; | | data = {}; |
| Rivi 241: |
Rivi 200: |
| doResize(); | | doResize(); |
| | | |
| } | | }); |
| | |
| | | |
| memo.fullscreenEl.on( 'click', function() { | | memo.fullscreenEl.on( 'click', function() { |