Skip to content

Instantly share code, notes, and snippets.

View shobhitg's full-sized avatar

Shobhit Gupta shobhitg

View GitHub Profile

Creating a pattern for diagrams gthat require a bit of circuit style visualization.

  • So we go sortest path or not.
  • If we change object's positoin, do the wiring/lines automatically realign?
  • Paths/wiring will have configurations ... e.g width / smoothing curve.
  • Layouts (shortest distance, relation between objects, length of path)
  • Force (pi nnned objects).
  • Collision detection
  • Treat the problem as a graph and for detecting path intersections use this as example: http://www.jasondavies.com/planarity/ Mike Bostocks Spline Editor: http://bl.ocks.org/mbostock/4342190
@shobhitg
shobhitg / index.html
Created February 24, 2014 17:18
Reddit - D3 update
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>D3 General update pattern using tables</title>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"/>
</head>
@shobhitg
shobhitg / Readme.md
Last active August 29, 2015 13:56
General Update Pattern example (using Yahoo Finance API)

This is a non-graphical exmaple to demonstrate the general update pattern in d3.

Similar to mBostock's General Update Pattern, I

In console we can chage the array tickers and the comma separated string fields to query from Yahoo Finance API.

The table only updates during US trading hours.