Chart updates based on dropdown input