Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 26: | Rivi 26: | ||
var chartEl = jQuery( this ); | var chartEl = jQuery( this ); | ||
if ( typeof chartEl.prop( 'id' ) == 'undefined' ) { chartEl.prop( 'id', 'jwChart_' + now.getTime() ); } | if ( typeof chartEl.prop( 'id' ) == 'undefined' ) { chartEl.prop( 'id', 'jwChart_' + now.getTime() ); } | ||
+ | |||
+ | chartEl.addClass( 'jwloading' ); | ||
var jw = new jwApi(); | var jw = new jwApi(); | ||
Rivi 112: | Rivi 114: | ||
var chart = new google.visualization.CandlestickChart( chartEl[0] ); | var chart = new google.visualization.CandlestickChart( chartEl[0] ); | ||
− | chart.draw( dataTable, options); | + | chart.draw( dataTable, options); |
+ | |||
+ | chartEl.removeClass( 'jwloading' ); | ||
}); | }); |