fix bug in Barchart where label and sort columns were inverted
bug with log function