Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 787: | Rivi 1 787: | ||
function wait() { | function wait() { | ||
if ( typeof memo.chartEl != 'undefined' && typeof memo.options != 'undefined' ) { | |||
var w = memo.chartEl.width(); | var w = memo.chartEl.width(); | ||
| Rivi 1 807: | Rivi 1 809: | ||
var t = Math.max( memo.margins.top, 0.02*h ); | var t = Math.max( memo.margins.top, 0.02*h ); | ||
var b = Math.max( memo.margins.bottom, 0.15*h ); | var b = Math.max( memo.margins.bottom, 0.15*h ); | ||
memo.options.chartArea.top = t; | memo.options.chartArea.top = t; | ||
memo.options.chartArea.left = l; | memo.options.chartArea.left = l; | ||
| Rivi 1 854: | Rivi 1 856: | ||
memo.chart.draw( memo.data, memo.options ); | memo.chart.draw( memo.data, memo.options ); | ||
} | } | ||
} else { | |||
seTimeout( wait, 500 ); | |||
} | |||
} | } | ||
//wait(); | //wait(); | ||


