After creating a line chart, then using setData to change the number of series, the markers are not properly updated (they keep their original series number). For example, if you create a Contour graph with three series, then remove the second series, the line will update its class from series s-3 to series s-2 but the markers will start as line-chart-markers markers s-3 and remain the same.
This causes an issue where the line is the proper color and matches the legend, but the markers are incorrectly colored using the original color.