add component and resource in line graph legend if they are required by the wizard