File tree 1 file changed +18
-8
lines changed
1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,24 @@ define([
86
86
// discrete option
87
87
$ ( that . wrapSelector ( '.vp-pd-display-option.dist' ) ) . show ( ) ;
88
88
89
- // set size to 100
90
- $ ( that . wrapSelector ( '#size' ) ) . val ( 100 ) ;
91
- that . state . size = 100 ;
92
-
93
- // hide continuous action
94
- if ( that . state . action === 'stats-to-pvalue' || that . state . action === 'pvalue-to-stats' ) {
95
- $ ( that . wrapSelector ( '#action' ) ) . val ( 'random-number' ) ;
96
- $ ( that . wrapSelector ( '#action' ) ) . trigger ( 'change' ) ;
89
+ // set size to 1000
90
+ $ ( that . wrapSelector ( '#size' ) ) . val ( 1000 ) ;
91
+ that . state . size = 1000 ;
92
+
93
+ // hide distribution plot for multinomial
94
+ if ( distType === 'multinomial' ) {
95
+ $ ( that . wrapSelector ( '.vp-pd-display-option.dist-plot' ) ) . hide ( ) ;
96
+ // hide other actions
97
+ if ( that . state . action !== 'random-number' ) {
98
+ $ ( that . wrapSelector ( '#action' ) ) . val ( 'random-number' ) ;
99
+ $ ( that . wrapSelector ( '#action' ) ) . trigger ( 'change' ) ;
100
+ }
101
+ } else {
102
+ // hide continuous action
103
+ if ( that . state . action === 'stats-to-pvalue' || that . state . action === 'pvalue-to-stats' ) {
104
+ $ ( that . wrapSelector ( '#action' ) ) . val ( 'random-number' ) ;
105
+ $ ( that . wrapSelector ( '#action' ) ) . trigger ( 'change' ) ;
106
+ }
97
107
}
98
108
} else {
99
109
// continuous option
You can’t perform that action at this time.
0 commit comments