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
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/d3-hexbin |
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
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/clipped-map-tiles |
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
| license: gpl-3.0 |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| .longscroll { | |
| overflow-y: auto; | |
| width: 480px; | |
| height: 500px; | |
| float: left; | |
| } | |
| .longscroll .row { |
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
| (function() { | |
| d3.force_labels = function force_labels() { | |
| var labels = d3.layout.force(); | |
| // Update the position of the anchor based on the center of bounding box | |
| function updateAnchor() { | |
| if (!labels.selection) return; | |
| labels.selection.each(function(d) { | |
| var bbox = this.getBBox(), | |
| x = bbox.x + bbox.width / 2, |
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
| function round(n) { | |
| return Math.round(n*100) / 100; | |
| } | |
| // Represents an edge from source to sink with capacity | |
| var Edge = function(source, sink, capacity) { | |
| this.source = source; | |
| this.sink = sink; | |
| this.capacity = capacity; | |
| }; |
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
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/d3-marimekko-chart |
NewerOlder