display dynamically for barchart