title: In Plotly 2D histogram, how can I specify a z value instead of relying on the density of my data?
body: <p>Looking at <a href="https://plot.ly/javascript/2D-Histogram/" rel="nofollow">https://plot.ly/javascript/2D-Histogram/</a> I see that they give 500 points and they plot the heatmap of the density.</p>
  
  <p>But I have data like</p>
  
  <pre><code>(x=0-1, y=0-1, z00)
  (x=0-1, y=1-2, z01)
  (x=0-1, y=2-3, z02)
  (x=1-2, y=0-1, z10)
  (x=1-2, y=1-2, z11)
  (x=1-2, y=2-3, z12)
  </code></pre>
  
  <p>and I would like to achieve what they show. How can I do it?
  I have thought of duplicating my data to give Plotly what seems to him like a distribution (i.e repeat (0, 0, 1) z00 times, repeat (0, 1, 1) z01 times, etc) but it doesn't feel right</p>
  
  <p>Any idea?</p>
  
  <p>Note: x=0-1 means I have a bucket of points from x=0 to x=1, same for y.
  So I want my square from x,y=0,0 to x,y=1,1 to have the value z00, the square above (x,y=0,1 to x,y=1,2) to have the value z01 etc)</p>