Add field updating when selecting chart types, error handling on broken queries.