make chart sizes more dynamic