Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 405: | Rivi 405: | ||
memo.options = { | memo.options = { | ||
backgroundColor: 'transparent', | backgroundColor: 'transparent', | ||
chartArea: { backgroundColor: { fill: '#ffffff', stroke: colors[ 'text' ], strokeWidth: 2 }}, | chartArea: { backgroundColor: { fill: '#ffffff', stroke: colors[ 'text' ], strokeWidth: 2 } }, | ||
legend: { position: 'bottom', textStyle: { color: colors['text'] } }, | legend: { position: 'bottom', textStyle: { color: colors['text'] } }, | ||
crosshair: { trigger: 'both' }, | crosshair: { trigger: 'both' }, | ||
| Rivi 1 626: | Rivi 1 626: | ||
var b = Math.max( memo.margins.bottom, 0.15*h ); | var b = Math.max( memo.margins.bottom, 0.15*h ); | ||
memo.options.chartArea = | memo.options.chartArea.top = t; | ||
memo.options.chartArea.left = l; | |||
memo.options.chartArea.width = (w - l - r); | |||
memo.options.chartArea.height = (h - t - b) }; | |||
for ( var o in memo.data.Wf ) { | for ( var o in memo.data.Wf ) { | ||
for ( var i in memo.data.Wf[ o ].c ) { | for ( var i in memo.data.Wf[ o ].c ) { | ||
| Rivi 1 657: | Rivi 1 661: | ||
s2 = memo.data.Wf[ o ].c[ 6 ]; | s2 = memo.data.Wf[ o ].c[ 6 ]; | ||
} | } | ||
console.log( memo.options ); | console.log( memo.options ); | ||
memo.chart.draw( memo.data, memo.options ); | memo.chart.draw( memo.data, memo.options ); | ||


