Skip to content

Instantly share code, notes, and snippets.

View elipousson's full-sized avatar

Eli Pousson elipousson

View GitHub Profile
@elipousson
elipousson / .block
Last active January 30, 2017 01:58 — forked from mbostock/.block
Curved Links
license: gpl-3.0
@elipousson
elipousson / .block
Last active May 13, 2016 01:31 — forked from mbostock/.block
Collapsible Force Layout
license: gpl-3.0
@elipousson
elipousson / README.md
Last active November 10, 2015 03:26 — forked from mstanaland/README.md
Stacked bar chart with tooltips

A simple stacked coloumn graph built using d3's stack layout.

The SVG tooltip is based on this gist by Mike Bostock. In short, the tooltip's group, comprised of a rect and a text element, are created when the chart is first drawn and set to be hidden. Action is applied to the stacks' rects: on mouseover the group become visible; on mousemove the mouse's XY position is captured and used to transform/translate the group.

If you ajust the tooltip's XY offset, keep in mind that there can be no overlap between the group and the mouse's position or the group's visibility will remain hidden.

@elipousson
elipousson / index.html
Last active October 28, 2015 00:51 — forked from d3noob/.block
Property Demolition Decision Tree (Simple vertical d3.js tree diagram)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Collapsible Tree Example</title>
<style>
.node circle {
@elipousson
elipousson / abandoned-property-types-triggers.json
Last active January 16, 2020 10:59 — forked from d3noob/.block
Abandoned Property Types/Triggers (D3.js tree diagram)
[
{
"name": "Property Types",
"parent": "null",
"children": [
{
"name": "Multifamily Rental Property",
"parent": "Property Types",
"children": [
{
@elipousson
elipousson / 0_reuse_code.js
Created May 29, 2014 02:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console