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

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

Projects

None yet

3 participants

@radiodario

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

Maybe graph.series.addData() works?

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

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

@vhmth

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