Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 181: | Rivi 181: | ||
function doResize() { | function doResize() { | ||
var w = memo.widgetEl.width(); | var w = memo.widgetEl.width(); | ||
var l = Math.max( memo.margins.left, 0.1*w ); | var l = Math.max( memo.margins.left, 0.1*w ); | ||
| Rivi 209: | Rivi 209: | ||
// move current observations to top | // move current observations to top | ||
gEl = chartEl.find( 'svg' ).append( 'g' ); | gEl = memo.chartEl.find( 'svg' ).append( 'g' ); | ||
//jQuery( document.getElementById(memo.id) ).find( 'circle[stroke-width="3"]' ).detach().appendTo( gEl ); | //jQuery( document.getElementById(memo.id) ).find( 'circle[stroke-width="3"]' ).detach().appendTo( gEl ); | ||
chartEl.find( 'path[stroke="#3366cc"]' ).detach().appendTo( gEl ); | memo.chartEl.find( 'path[stroke="#3366cc"]' ).detach().appendTo( gEl ); | ||
chartEl.find( 'circle[fill="#3366cc"]' ).detach().appendTo( gEl ); | memo.chartEl.find( 'circle[fill="#3366cc"]' ).detach().appendTo( gEl ); | ||
chartEl.find( 'circle[stroke-width="3"]' ).each( function() { jQuery( this ).parent().append( jQuery( this ) ); }); | memo.chartEl.find( 'circle[stroke-width="3"]' ).each( function() { jQuery( this ).parent().append( jQuery( this ) ); }); | ||
//jQuery( document.getElementById(memo.id) ).find( 'circle[fill="#3366cc"]' ).each( function() { jQuery( this ).parent().append( jQuery( this ) ); }); | //jQuery( document.getElementById(memo.id) ).find( 'circle[fill="#3366cc"]' ).each( function() { jQuery( this ).parent().append( jQuery( this ) ); }); | ||
//jQuery( document.getElementById(memo.id) ).find( 'path[stroke="#3366cc"]' ).each( function() { jQuery( this ).parent().append( jQuery( this ) ); }); | //jQuery( document.getElementById(memo.id) ).find( 'path[stroke="#3366cc"]' ).each( function() { jQuery( this ).parent().append( jQuery( this ) ); }); | ||
chartEl.find( 'text[text-anchor="start"]:contains("' + i18n[memo.obscode].title[memo.lang] + '")' ).attr( 'y', (t-10).toString() ); | memo.chartEl.find( 'text[text-anchor="start"]:contains("' + i18n[memo.obscode].title[memo.lang] + '")' ).attr( 'y', (t-10).toString() ); | ||
if (!!document.fullscreenElement) { | if (!!document.fullscreenElement) { | ||


