Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 503: | Rivi 1 503: | ||
google.visualization.events.addListener( memo.chart, 'ready', function () { | google.visualization.events.addListener( memo.chart, 'ready', function () { | ||
// hide every second vaxis gridline on cat charts | |||
if ( i18n[memo.obscode]['type'] == 'cat') { | |||
var glc = 0; | |||
jQuery( document.getElementById(memo.id) ).find( 'rect[height="1"]' ).each( function() { | |||
if ( ( glc++ % 2 ) == 0 ) { | |||
jQuery( this ).attr( 'fill', 'none' ); | |||
} | |||
}); | |||
} | |||
// add dash to trendlines | |||
jQuery( document.getElementById(memo.id) ).find( 'path[stroke-width="2.33"]' ).each( function() { | |||
jQuery( this ).attr('stroke-dasharray', '5, 5'); | |||
}); | |||
// move current observations to top | // move current observations to top | ||
| Rivi 1 628: | Rivi 1 643: | ||
memo.chart.draw( memo.data, memo.options ); | memo.chart.draw( memo.data, memo.options ); | ||
} | } | ||


