added websockets to barcharts