Handle chart preferences correctly

Before this fix, trying to use a chart default would fail because the
code wasn't written to allow for String-valued preferences, and "cows"
isn't a number.

Also set the default chart more explicitly, in the absence of a chart
preference.

Signed-off-by: Matt Wozniski <godlygeek@gmail.com>