Skip to content

Instantly share code, notes, and snippets.

@nautat
nautat / index.html
Last active December 14, 2015 15:49 — forked from syntagmatic/index.html
<canvas id="canvas"></canvas>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var num = 20000;
var canvas = document.getElementById("canvas");
var width = canvas.width = 960;
var height = canvas.height = 500;
var ctx = canvas.getContext("2d");
@nautat
nautat / index.html
Created December 20, 2012 21:46 — forked from iparwita/index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<script type="text/javascript">
var data = [{value: 1}];
@nautat
nautat / index.html
Created December 8, 2012 21:22 — forked from makoto/index.html
Random update via setInterval
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
<style type="text/css" media="screen">
.svg rect {
stroke: white;
fill: steelblue;
}
</style>
</head>
@nautat
nautat / index.html
Created December 7, 2012 17:51
Contexts
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Context</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
</style>
</head>
<body>
@nautat
nautat / index.html
Created December 1, 2012 05:21
Many events, slow handeler
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
</style>
<body>
<script src="http://d3js.org/d3.v3.js"></script>​
<script>
</script>
@nautat
nautat / README.md
Created November 22, 2012 05:14 — forked from mbostock/.block
U.S. Counties TopoJSON

A demo of TopoJSON on a U.S. counties shapefile from the U.S. census bureau. The original GeoJSON file was 2.2M; the TopoJSON file is 660K, a reduction of 70.5%! (Or gzipped, a 71% reduction from 596K to 176K.)

@nautat
nautat / index.html
Created November 16, 2012 07:10
Nested tables from json
<!DOCTYPE html>
<meta charset="utf-8">
<style type="text/css">
table {
font-family: "Helvetica", "Lucida Sans", "Lucida Sans Unicode", "Luxi Sans", Tahoma, sans-serif;
box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
border-collapse: collapse;
border-spacing: 0;
}
table {
@nautat
nautat / _.md
Created November 1, 2012 00:21
just another inlet to tributary
@nautat
nautat / README.md
Created August 9, 2012 04:50
Force-Directed Layout with 2 panels

Experiment to create 2 panel with d3js Force-Directed Layout.

@nautat
nautat / Adobe.ASE.load.js
Created July 25, 2012 04:32 — forked from GerHobbelt/.gitignore
d3.js: load Adobe Photoshop ASE color palette file to color graph
/*
Copyright (c) 2012, Ger Hobbelt ([email protected])
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.