Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 32: | Rivi 32: | ||
// add chart container | // add chart container | ||
− | memo.widgetEl.append( '<div class=" | + | memo.widgetEl.append( '<div class="jwChartContainer" style="position: absolute; z-index: 110; width: 100%; height: 100%;"></div>' ); |
− | memo.chartEl = jQuery( this ).find( '. | + | memo.chartEl = jQuery( this ).find( '.jwChartContainer' ); |
− | memo. | + | memo.widgetEl.append( '<div class="jwloading"></div>' ); |
for (var a in memo.chartEl[0].attributes ) { | for (var a in memo.chartEl[0].attributes ) { | ||
Rivi 132: | Rivi 132: | ||
memo.chart = new google.visualization.CandlestickChart( memo.chartEl[0] ); | memo.chart = new google.visualization.CandlestickChart( memo.chartEl[0] ); | ||
memo.chart.draw( memo.dataTable, memo.options); | memo.chart.draw( memo.dataTable, memo.options); | ||
− | memo. | + | memo.widgetEl.find( '.jwloading' ).remove(); |
}); | }); |