Fix multiple line colors with dynamically updated lines

Line colors weren't working properly when dynamically adding data.