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

slider.preview uses graph.config which ends up having the wrong value for 'unstack' #586

Open
pstanton opened this issue Aug 11, 2017 · 0 comments

Comments

@pstanton
Copy link

I have a graph, with 1 set of stacked series (data point each 5 mins) and 1 set of unstacked lines to overlay (data point each 30 mins).

this renders fine with a normal graph with renderer:"multi"

however if i then use a "Rickshaw.Graph.RangeSlider.Preview" I get errors stating that the series must have equal length.

I deduced it down to the fact that the slider uses "parent.config" which has the wrong value for "stack"/"unstack" at the time of render.

I've found that changing the value of stack in graph.config after the graph is constructed solves the issue.

ie
graph = new Rickshaw.Graph({renderer:"multi", series:series});
graph.config.stack = false;

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