Skip to content

Instantly share code, notes, and snippets.

Mark DiMarco markmarkoh

Block or report user

Report or block markmarkoh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@markmarkoh
markmarkoh / README.md
Last active Sep 18, 2016 — forked from mbostock/.block
Draw This Graph!
View README.md

Example 'draw this chart' workflow

@markmarkoh
markmarkoh / README.md
Last active May 14, 2018 — forked from jefffriesen/README.md
US Zip Codes
View README.md

This is a d3.js visualization of US zip codes.

Original zip code dataset from Geocommons.

5MB shapefile with properties such as zipcode, state, name, population, area, more.

http://geocommons.com/overlays/54893 (Thank you Bill Greer)

This converts it nicely:

@markmarkoh
markmarkoh / README.md
Last active Mar 15, 2016 — forked from efekarakus/README.md
Find Peaks
View README.md

This example illustrates how to use the findPeaks API. You can download the library from https://github.com/efekarakus/d3-peaks.

The algorithm is based on "Improved peak detection in mass spectrum by incorporating continuous wavelet transform-based pattern matching" by Pan Du, Warren A. Kibbe and Simon M. Lin. The paper can be found here.

View topojson.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@markmarkoh
markmarkoh / README.md
Last active Aug 29, 2015 — forked from markmarkoh/README.md
Centering bubbles with custom map data
View README.md
View README.md
@markmarkoh
markmarkoh / index.html
Last active Aug 29, 2015 — forked from pachevalier/datamaps.html
Datamaps with custom data and custom projection
View index.html
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="http://datamaps.github.io/scripts/datamaps.none.min.js"></script>
<div id="container" style="position: relative; width: 500px; height: 300px;"></div>
<script>
View chart_usda.html
<script id='popup-template' type='text/x-handlebars-template'>
{{{ popup_template }}}
</script>
<script>
var chartParams = {{{ chartParams }}}
chartParams.element = document.getElementById('{{chartId}}')
{{# popup_template }}
var tmplFn = Handlebars.compile(
document.getElementById("popup-template").innerHTML.replace(/\"#!(.*?)!#\"/g, "\\$1")
@markmarkoh
markmarkoh / index.html
Last active May 15, 2019 — forked from mbostock/.block
Animated line graph ( curtain approach )
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
margin: 0;
}
path.line {
You can’t perform that action at this time.