Fix issue where old bar labels stick around on dataset change.

Add unit test.
double texts declaration

At the very least, remove the var