File tree Expand file tree Collapse file tree 4 files changed +13
-23
lines changed Expand file tree Collapse file tree 4 files changed +13
-23
lines changed Original file line number Diff line number Diff line change 17
17
delete settings [ 'height' ] ;
18
18
19
19
v . charts . canvas . settings = settings ;
20
- v . update ( ) ;
20
+ $ ( 'body' ) . trigger ( 'visualizer:render:currentchart:update' , { visualizer : v } ) ;
21
21
} , 1000 ) ;
22
22
}
23
23
Original file line number Diff line number Diff line change 385
385
}
386
386
}
387
387
388
- if ( typeof visualizer !== 'undefined' ) {
389
- // called while updating the chart.
390
- visualizer . update = function ( ) {
391
- renderChart ( 'canvas' , visualizer ) ;
392
- } ;
393
- }
394
-
395
388
$ ( 'body' ) . on ( 'visualizer:render:chart:start' , function ( event , v ) {
396
389
all_charts = v . charts ;
397
390
render ( v ) ;
407
400
renderSpecificChart ( v . id , v . chart , v . v ) ;
408
401
} ) ;
409
402
403
+ $ ( 'body' ) . on ( 'visualizer:render:currentchart:update' , function ( event , v ) {
404
+ renderChart ( 'canvas' , v . visualizer ) ;
405
+ } ) ;
406
+
410
407
// front end actions
411
408
$ ( 'body' ) . on ( 'visualizer:action:specificchart' , function ( event , v ) {
412
409
switch ( v . action ) {
Original file line number Diff line number Diff line change 263
263
}
264
264
}
265
265
266
- if ( typeof visualizer !== 'undefined' ) {
267
- // called while updating the chart.
268
- visualizer . update = function ( ) {
269
- renderSpecificChart ( 'canvas' , all_charts [ 'canvas' ] , visualizer ) ;
270
- } ;
271
- }
272
-
273
266
$ ( 'body' ) . on ( 'visualizer:render:chart:start' , function ( event , v ) {
274
267
all_charts = v . charts ;
275
268
render ( v ) ;
279
272
renderSpecificChart ( v . id , v . chart , v . v ) ;
280
273
} ) ;
281
274
275
+ $ ( 'body' ) . on ( 'visualizer:render:currentchart:update' , function ( event , v ) {
276
+ renderSpecificChart ( 'canvas' , all_charts [ 'canvas' ] , v . visualizer ) ;
277
+ } ) ;
278
+
282
279
// front end actions
283
280
$ ( 'body' ) . on ( 'visualizer:action:specificchart' , function ( event , v ) {
284
281
switch ( v . action ) {
Original file line number Diff line number Diff line change @@ -319,14 +319,6 @@ var __visualizer_chart_images = [];
319
319
}
320
320
}
321
321
322
- if ( typeof visualizer !== 'undefined' ) {
323
- // called while updating the chart.
324
- visualizer . update = function ( ) {
325
- renderChart ( 'canvas' ) ;
326
- } ;
327
- }
328
-
329
-
330
322
var resizeTimeout ;
331
323
332
324
$ ( document ) . ready ( function ( ) {
@@ -421,6 +413,10 @@ var __visualizer_chart_images = [];
421
413
renderSpecificChart ( v . id , v . chart ) ;
422
414
} ) ;
423
415
416
+ $ ( 'body' ) . on ( 'visualizer:render:currentchart:update' , function ( event , v ) {
417
+ renderChart ( 'canvas' ) ;
418
+ } ) ;
419
+
424
420
// front end actions
425
421
$ ( 'body' ) . on ( 'visualizer:action:specificchart' , function ( event , v ) {
426
422
switch ( v . action ) {
You can’t perform that action at this time.
0 commit comments