Y.Chart doesn't reset markercolors right #1664

ItsAsbreuk opened this Issue Feb 27, 2014 · 0 comments


None yet
1 participant

Concerning example: http://yuilibrary.com/yui/docs/charts/charts-seriesupdate.html

When you do this with a line-chart and use code to change the color of both line and marker like this:

var color, line, marker;
line = {};
marker = {fill:{}, border:{}};
// color=...
if (color) {
    line.color = color;
    marker.fill.color = color;
    marker.border.color = color;
serie.set("styles", {line:line, marker:marker});

then you see an issue with the markercolor. The markercolor is not reset when color is undefined. It keeps the former colorvalue instead of the auto-generated color, which leads to a linecolor different from markercolor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment