check indentation of everything and fix it
trailing whitespace
simplify logic by using local variables

mostly to reduce duplicate code
but dataCount was also building the text twice in the all case
artifacts
Merge branch 'pr/619'
artifact
do not set y domain to NaNs when there are no values

use zeros instead - ?
was getting lots of warnings on y axis when brushing empty areas
fixes #613