There seems to be a bug in voronoi clipping; setting .clipExtent([[-1, -10], [width + 1, height + 1]])
works around the issue for these particular points.
This file contains 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
.DS_Store | |
build | |
node_modules |
A test for wrapping using the d3.geo.tile plugin.
Based on Mike Bostock’s example.
This file contains 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
(function (exports) { | |
// because the anonymous function is being called without a scope being set, | |
// "this" will refer to the global scope. In a browser, that's the window, but | |
// will be "undefined" in strict mode. In other JS platforms, it may be some | |
// other thing. | |
// my code here. | |
// don't make accidental globals. | |
// hang a small number of things on the "exports" object. |
This example is a simple loupe using Polymaps. Drag the center of the loupe to move it around, or drag the thick border to resize it. Loupes are normally used to magnify, showing focus and context, but in this example we're using it to show two different tilesets. You can enable magnification (or minification) using the zoomDelta
property.
A quick example demonstrating the use of "show" event handlers and reshow, which allows you to restyle GeoJSON features dynamically from an external event. In this example, you can use the jQuery UI slider in the top-left corner to resize the points.
This file contains 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
//Eragrostis ciliaris dry-after ripening germination data | |
var ddays = ["0630°/days","1260°/days","1890°/days","2520°/days"]; | |
var RH = [20, 35, 50, 65]; | |
var data = [{"temp":"30°C","RH":20,"ddays":"0630°/days","days":0,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":1,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":4,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":8,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":14,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":28,"germ":0}, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Hexagons Test</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.min.js"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.behavior.min.js"></script> | |
<style type="text/css"> | |
svg { | |
border: solid 1px #aaa; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script> | |
<style type="text/css"> | |
.link { | |
stroke: #ccc; |
This file contains 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> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/jasondavies/conrec.js/master/conrec.js"></script> | |
<script type="text/javascript" src="multiplot.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var c = new Conrec(), | |
xs = d3.range(0, data[0].length), |
OlderNewer