d3.js - Transition Data Animation after array.shift() -


when using d3 or nvd3, i'm able change data chart using following:

  d3.select('#test1 svg')       .datum(somedataarr)       .call(chart); 

pushing item onto end of somedataarr works expected - new item appears in graph. however, if shift first item off , push new item end, d3 (understandably) transitions each data point according index.

in case of scatterplot, example, undesirable. prefer remove first item of array keep plot points associated prior array index position.

does know how keep association between array[index] , chart points while removing items beginning of array?

thanks in advance time.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -