Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 101: | Rivi 101: | ||
// margin settings | // margin settings | ||
memo.margins = { top: 0, right: 30, bottom: 160, left: 60 }; | memo.margins = { top: 0, right: 30, bottom: 160, left: 60 }; | ||
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 t = 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 109: | Rivi 116: | ||
//titleTextStyle: { fontSize: 14 }, | //titleTextStyle: { fontSize: 14 }, | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||
chartArea: { top: memo.margins.top, left: memo.margins.left, width: (memo.widgetEl.width() - memo.margins.left - memo.margins.right), height: (memo.widgetEl.height() - memo.margins.top - memo.margins.bottom), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}, | chartArea: { top: t, left: l, width: (w - l - r), height: (h - t - b), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }};, | ||
//{ top: memo.margins.top, left: memo.margins.left, width: (memo.widgetEl.width() - memo.margins.left - memo.margins.right), height: (memo.widgetEl.height() - memo.margins.top - memo.margins.bottom), backgroundColor: { fill: '#daf0fa', stroke: '#fff', strokeWidth: 6 }}, | |||
legend: { position: 'bottom' }, | legend: { position: 'bottom' }, | ||
crosshair: { trigger: 'both' }, | crosshair: { trigger: 'both' }, | ||


