visualization update bar and pie charts