remove warnings in bar and stackedbar charts