@@ -86,14 +86,24 @@ define([
8686// discrete option
8787$ ( that . wrapSelector ( '.vp-pd-display-option.dist' ) ) . show ( ) ;
8888
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+ }
97107}
98108} else {
99109// continuous option