title: heatmap.js - plotting multiple data points from .csv
body: <p>I am trying to plot x1,y1 co-ordinates using heatmap.js, I read the values from .csv file using d3.csv() method. I tried with example in <a href="https://www.patrick-wied.at/static/heatmapjs/" rel="nofollow noreferrer">https://www.patrick-wied.at/static/heatmapjs/</a>, Got only one point plotted, but there are seven points in the .csv file.
  Below is the code.</p>
  
  <pre><code>enter code here
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;script src="heatmap.js"&gt;&lt;/script&gt;
  &lt;script src="http://d3js.org/d3.v3.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
  function point()
  {
  alert("alert");
  var points = []; 
  var heatmap = h337.create({
    container: domElement
  });
  
  d3.csv("files/trial5.csv", function(error,data) {
  
     data.forEach(function(d) {
      d.x1 = +d.x1;
      d.y1 = +d.y1;
      console.log("data : " +data + " " + error);
         heatmap.setData({
                max: 5,
                data:[{ x: d.x1, y: d.y1, value: 5}]
  
              }); 
         console.log("x:" + d.x1, "y:" + d.y1);
  
      }) 
    });
  
  
   }
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="domElement" style="width: 1000px; height: 1000px; border: solid;"&gt;&lt;/div&gt;                        
  &lt;input type="button" value="Click" id="clickButton" onclick="point()"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>