Add function to generate chart based on nutrition type