title: Working with D3.js and Immutable.js
body: <p>In my application I use D3.js for some visualizations.</p>
  
  <p>Now D3 works with <strong>mutable</strong> native JavaScript data structures. </p>
  
  <p>So some data marshalling would be necessary for this to work with Immutable.js.</p>
  
  <p>I also use Reflux with React, so in my Store I manage an Immutable Map. Since this Map becomes a new thing on every change I cannot just pass it to D3 Force Layout because that works with mutable data so each time it recalculates everything from scratch.</p>
  
  <p>I end up with managing both immutable and mutable data structures but this feels very wrong.</p>
  
  <p>I found an article, <a href="http://blog.getliquidlandscape.com/2015/01/08/practical-time-series-visualization-using-d3-om/" rel="nofollow noreferrer">Practical Time Series Visualization using D3 + OM</a>,
  which seems to touch on the subject and suggests to use <em>Cursors</em>. The problem is it uses Clojure(Script) when I'm using just JavaScript.</p>
  
  <p>I understand this is very abstract without code examples but any suggestion on the subject of working/syncing both immutable and mutable data will be appreciated!</p>