Use barchart in qvis if x is categorical
Fix incorrect variable name