barchart vs line plot snippet