Dynamically set curve color