Update process data script to show correct labels in legend