make chart more generic