Join GitHub today
Enable graph update by series data replacement #211
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
While we get this (or other) solution merged into rickshaw, here's a dirty hack to update the whole series - keep using the same
series = getInitialSeries() # can be  graph = new Rickshaw.Graph( element: elem, series: series ) updatedSeries = getUpdatedSeries() # override series with updatedSeries for item,i in newSeries series[i] = newSeries[i] series.pop() while series.length > newSeries.length #update the graph graph.update()
Ugly, but it works.