only render chart if exists
change assignment