Skip to content

Instantly share code, notes, and snippets.

@alansmithy alansmithy/.block

Last active May 31, 2017
What would you like to do?
log bar
license: mit
<!DOCTYPE html>
<meta charset="utf-8">
<script src=""></script>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
// Feel free to change or delete any of the code you see in this editor!
var margin = {left:100,right:20,top:50,bottom:20}
var svg ="body").append("svg")
.attr("width", 580)
.attr("height", 500);
var mydata = [
var names =,function(d){
var xScale = d3.scaleLog()
var yScale = d3.scaleOrdinal()
return * 20);
.attr("width",function(d){return xScale(d.value)})
return * 20)+10;
var xAxis = d3.axisBottom()
.ticks(20, ",.1s");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.