File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -55,22 +55,15 @@ var __visualizer_chart_images = [];
55
55
settings [ 'animation' ] [ 'duration' ] = parseInt ( settings [ 'animation' ] [ 'duration' ] ) ;
56
56
}
57
57
58
- if ( settings [ 'explorer_enabled' ] && settings [ 'explorer_enabled' ] == true ) {
59
- var $explorer = [ ] ;
58
+ if ( settings [ 'explorer_enabled' ] && settings [ 'explorer_enabled' ] == ' true' ) { // jshint ignore:line
59
+ var $explorer = { } ;
60
60
$explorer [ 'keepInBounds' ] = true ;
61
61
62
62
if ( settings [ 'explorer_actions' ] ) {
63
- //settings['explorer']['actions'] = settings['explorer_actions'];
64
- delete settings [ 'explorer_actions' ] ;
63
+ $explorer [ 'actions' ] = settings [ 'explorer_actions' ] ;
65
64
}
66
- $explorer [ 'actions' ] = [ 'dragToZoom' , 'rightClickToReset' ] ;
67
- console . log ( $explorer ) ;
68
- console . log ( JSON . stringify ( $explorer ) ) ;
69
- var options = JSON . parse ( JSON . stringify ( $explorer ) ) ;
70
- console . log ( options ) ;
71
- //$.extend(settings, options);
65
+ settings [ 'explorer' ] = $explorer ;
72
66
}
73
- if ( id . indexOf ( '1579' ) !== - 1 ) console . log ( settings [ 'explorer' ] ) ;
74
67
75
68
switch ( chart . type ) {
76
69
case 'pie' :
You can’t perform that action at this time.
0 commit comments