Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 100: | Rivi 100: | ||
function drawVisualization( memo ) { | function drawVisualization( memo ) { | ||
// | //var w = memo.widgetEl.width(); | ||
//var l = Math.max( memo.margins.left, 0.1*w ); | |||
//var r = memo.margins.right; | |||
//var h = memo.widgetEl.height(); | |||
var l = Math.max( memo.margins.left, 0.1*w ); | //var t = memo.margins.top; //Math.max( memo.margins.top, 0.1*h ); | ||
var r = memo.margins.right; | //var b = Math.max( memo.margins.bottom, 0.15*h ); | ||
var h = memo.widgetEl.height(); | |||
var t = memo.margins.top; //Math.max( memo.margins.top, 0.1*h ); | |||
var b = Math.max( memo.margins.bottom, 0.15*h ); | |||
if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; } | if ( typeof i18n[ memo.obscode ].direction != 'undefined' ) { memo.vaxisdir = i18n[ memo.obscode ].direction; } else { memo.vaxisdir = 1; } | ||
| Rivi 1 196: | Rivi 1 193: | ||
memo.margins = { top: 10, right: 10, bottom: 80, left: 80 }; | memo.margins = { top: 10, right: 10, bottom: 80, left: 80 }; | ||
var w = memo.chartEl.width(); | var w = memo.chartEl.width(); | ||


