Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 98: | Rivi 98: | ||
} | } | ||
function drawVisualization(memo) { | function drawVisualization( memo ) { | ||
// margin settings | // margin settings | ||
| Rivi 117: | Rivi 117: | ||
//titleTextStyle: { fontSize: 14 }, | //titleTextStyle: { fontSize: 14 }, | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||
chartArea: { top: t, left: l, width: (w - l - r), height: (h - t - b), 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 }}, | ||
legend: { position: 'bottom' }, | legend: { position: 'bottom' }, | ||
crosshair: { trigger: 'both' }, | crosshair: { trigger: 'both' }, | ||
| Rivi 1 204: | Rivi 1 204: | ||
var r = memo.margins.right; | var r = memo.margins.right; | ||
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. | var b = Math.max( memo.margins.bottom, 0.1*h ); | ||
console.log( (h) ); | console.log( (h) ); | ||


