better prevention of crash on empty results
Added barchart