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

.configure() doesn't accept new series array #113

Open
radiodario opened this issue Aug 30, 2012 · 2 comments
Open

.configure() doesn't accept new series array #113

radiodario opened this issue Aug 30, 2012 · 2 comments

Comments

@radiodario
Copy link

I'm trying to update a charts time series without having to create a new one. At the moment i'm having to do:

 //  really - do i have to do it like this?
// series is our new time serieses, which might be
// longer, higher time resolution (or lower), have more categories, etc.
for (i in series) {
    chart.series[i] = series[i];
}

// remove any elements larger than the lenght of the new series.
if (chart.series.length > series.length) {
    chart.series.splice(series.length, chart.series.length - series.length);
}
chart.update();

where series is my new series object, and chart is a RickshawGraph object.

I've tried using

chart.configure({series : series})
chart.update();

but it isn't working. is this expected behaviour?

cheers

@Jellyfrog
Copy link

Maybe graph.series.addData() works?

graph.series.addData(data);
graph.render();

Found here: http://code.shutterstock.com/rickshaw/examples/fixed.html

@vhmth
Copy link

vhmth commented Oct 1, 2012

Not sure if this helps you, but I stumbled on this issue a bit lower on the issues list:

#89

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

3 participants