Last active
August 29, 2015 14:02
-
-
Save domitry/f215d5ff3bd3f5fec2ad to your computer and use it in GitHub Desktop.
A demo for Ecoli.js (Another theme)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang='en'> | |
<head> | |
<title>Nyaplotjs example -- Another Theme</title> | |
<script src='http://d3js.org/d3.v3.min.js'></script> | |
<script src='https://rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js'></script> | |
</head> | |
<body> | |
<div id='vis'></div> | |
<script> | |
var values = d3.range(100).map(function(val){return {val1: d3.random.bates(10)(val)};}); | |
models = {data:{data1: values},panes: [{type:'rectangular', diagrams:[{type: 'histogram', data: 'data1', options: {value:'val1'}}], options:{width:500, height:500, xrange: [0,1], yrange: [0,30], bg_color:'#fff', grid:false, grid_color:'#000'}}]}; | |
window.onload = function(){Nyaplot.core.parse(models, '#vis');}; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment