File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,17 @@ proto.merge = function(sceneLayout) {
74
74
for ( var i = 0 ; i < 3 ; ++ i ) {
75
75
var axes = sceneLayout [ AXES_NAMES [ i ] ] ;
76
76
77
+ if ( ! axes . visible ) {
78
+ opts . tickEnable [ i ] = false ;
79
+ opts . labelEnable [ i ] = false ;
80
+ opts . lineEnable [ i ] = false ;
81
+ opts . lineTickEnable [ i ] = false ;
82
+ opts . gridEnable [ i ] = false ;
83
+ opts . zeroEnable [ i ] = false ;
84
+ opts . backgroundEnable [ i ] = false ;
85
+ continue ;
86
+ }
87
+
77
88
// Axes labels
78
89
opts . labels [ i ] = convertHTMLToUnicode ( axes . title ) ;
79
90
if ( 'titlefont' in axes ) {
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ proto.merge = function(sceneLayout) {
28
28
for ( var i = 0 ; i < 3 ; ++ i ) {
29
29
var axes = sceneLayout [ AXES_NAMES [ i ] ] ;
30
30
31
+ if ( ! axes . visible ) {
32
+ this . enabled [ i ] = false ;
33
+ this . drawSides [ i ] = false ;
34
+ continue ;
35
+ }
36
+
31
37
this . enabled [ i ] = axes . showspikes ;
32
38
this . colors [ i ] = str2RGBArray ( axes . spikecolor ) ;
33
39
this . drawSides [ i ] = axes . spikesides ;
You can’t perform that action at this time.
0 commit comments