forio / contour

Apache License 2.0
120 stars 21 forks source link

Line Markers not properly updating after setData #281

Open safetybelt opened 6 years ago

safetybelt commented 6 years ago

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.