Add a line by just adding 3 hyphens
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
<script> | |
var body = d3.select('body'); | |
var an_object = {key1:"value1", key2:"value2"} | |
body.append("text").text("1: ",an_object['key1']) | |
body.append("text").text("2: ",an_object.key1) | |
for (one_key in an_object){ |
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 RKAggregation_version(){ | |
return "0.1.0" | |
} | |
//*********************** | |
//Aggregation - 'Objects' | |
//object that defines and administrates a polygonal feature | |
//Object-definition -- Feature-Object ... contains all necessary functions and variables of one feature: |
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
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<style> | |
#text{ | |
font-size:24; | |
} | |
</style> | |
</head> | |
<body> |
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> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script> | |
<!--<script src="https://gist.github.com/milkbread/5713629/raw/RKMapping_0.4.js"></script>--> | |
<script src="http://bl.ocks.org/milkbread/raw/5779939/RKMapping_0.4.js"></script> |
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
//adding an overlay to an existing leaflet map object | |
function mapOverlay(map_){ | |
this.map=map_; | |
this.overlaySVG = d3.select(this.map.getPanes().overlayPane).append("svg"); | |
this.overlay=this.overlaySVG.append("g").attr("class", "leaflet-zoom-hide") | |
var path_geo = d3.geo.path().projection(project); | |
//necessary for zooming the map...corresponded to: map.on("viewreset", reset); | |
this.resetView=resetView; | |
function resetView(bounds_map_){ | |
var bottomLeft = project(bounds_map_[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
//adding an overlay to an existing leaflet map object | |
function mapOverlay(map_){ | |
this.map=map_; | |
this.overlaySVG = d3.select(this.map.getPanes().overlayPane).append("svg"); | |
this.overlay=this.overlaySVG.append("g").attr("class", "leaflet-zoom-hide") | |
var path_geo = d3.geo.path().projection(project); | |
//necessary for zooming the map...corresponded to: map.on("viewreset", reset); | |
this.resetView=resetView; | |
function resetView(bounds_map_){ | |
var bottomLeft = project(bounds_map_[0]), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script> | |
<script type="text/plain" src="https://raw.github.com/square/crossfilter/master/crossfilter.min.js"></script> | |
<script src="milkbread/raw/5727801/testfunction.js"></script> | |
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
//SLIDER - 1 indicator | |
function slider(container,width,height){ | |
//initialize some variables | |
var indicWidth = 12, clickListenerTest=false, hoverListenerTest=false, clickListener, hoverListener, indicPos = width/2; | |
var indicatorStartPosition = 0; | |
var axisScale = d3.scale.linear(); | |
var sliderSVG = container.append("svg") | |
.attr("width", width) |