Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paper.linechart() does not support valuesy > 10 #193

Open
drmarduk opened this issue Oct 10, 2013 · 0 comments
Open

Paper.linechart() does not support valuesy > 10 #193

drmarduk opened this issue Oct 10, 2013 · 0 comments

Comments

@drmarduk
Copy link

"does not support" is not quite right, it does support > 10 dataarrays but they do not have a color setting via default settings. It works well, if

opts.colors.length == valuesy.length

One fix: Generate more than 10 default colors in g.raphael.js line 703,
or: add something like

if(valuesy.length > colors.lengt) {
    var missingcolorcount = valuesy.length - colors.length;
    for(var i = 0; i < missingcolorcount; i++) {
       colors.push('hsb(0.75, 0.75, 0.75'); // static color, can be changed.
    }
}

in g.line.js at line 78++ after the color settings are set from g.color.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant