Merged all the diagnostic partition drop down boxes to use the same code
If maxSamples=1 then keep one sample around (not 0)