Skip to content

Instantly share code, notes, and snippets.

@chrtze
chrtze / chart.js
Created Nov 23, 2015
Line Chart Example
View chart.js
var Chart = (function(window,d3) {
var svg, data, x, y, xAxis, yAxis, dim, chartWrapper, line, path, margin = {}, width, height, locator;
var breakPoint = 768;
d3.csv('data.csv', init); //load data, then initialize chart
//called once the data is loaded
function init(csv) {
@syntagmatic
syntagmatic / index.html
Last active Mar 5, 2020 — forked from syntagmatic/index.html
Nutrient Parallel Coordinates
View index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Nutrient Database Explorer</title>
<link rel="stylesheet" type="text/css" href="parallel.css" />
</head>
<body>
<div id="header">
<h1>Nutrient Explorer</h1>
You can’t perform that action at this time.