pass json to barchart and add barchart.css