Skip to content

Commit

Permalink
Add visual test for small values
Browse files Browse the repository at this point in the history
  • Loading branch information
pa7 committed Dec 22, 2015
1 parent 1c47578 commit da177c9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests/visual/small-values/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Multiply Alpha</title>
<style>
body, html { margin:0; padding:0; }
#heatmapContainerWrapper { width:1000px; height:1000px; margin:auto; background:rgba(0,0,0,.1); }
#heatmapContainer { width:100%; height:100%;}
</style>
<script src="/build/heatmap.js"></script>
</head>
<body>
<h1>Multiply Alpha</h1>
<div id="heatmapContainerWrapper">
<div id="heatmapContainer">

</div>
</div>
<script>

window.onload = function() {
var heatmap = h337.create({
container: document.getElementById('heatmapContainer'),
opacity:1,
gradient: {
'0': 'yellow',
'1': 'red'
}
});
window.h = heatmap;

var d = [
{ x: 200, y: 150, value: 1900, radius: 50 },
{ x: 400, y: 150, value: 100, radius: 20 },
{ x: 600, y: 150, value: 10, radius: 10 },
{ x: 800, y: 150, value: 2000, radius: 50 }];
h.setData({
min: 1,
max: 1000000,
data: d
});

};
</script>
</body>
</html>

0 comments on commit da177c9

Please sign in to comment.