Skip to content

Instantly share code, notes, and snippets.

@biovisualize
biovisualize / index.html
Last active Dec 23, 2018
Générateur de noms de villages français
View index.html
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.min.js"></script>
</head>
<body>
<div id="display"></div>
<script>
var start = ['peu', 'prou', 'fil', '', 'che', 'mir', 'tré',
'cor', 'fèri', 'mol', 'fente', 'chon', 'plume', 'mériè',
'mis', 'motte', 'saint-', 'bi', 'glu'];
View index.js
const ChartManager = function() {
function init() { }
function config() { }
function setData() { }
function render() { }
return {
@biovisualize
biovisualize / .block
Last active Nov 20, 2018
Sankey from CSV II
View .block
license: gpl-3.0
@biovisualize
biovisualize / index.html
Last active Oct 30, 2017
MapD3 chart update
View index.html
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./mapd3.min.css">
<style>
.chart1 {
margin-top: 80px;
margin-left: 40px;
}
.mapd3 {
@biovisualize
biovisualize / index.html
Created Sep 12, 2017
MapD3 early example
View index.html
<html>
<head>
<link rel="stylesheet" href="mapd3.min.css">
</head><body>
<div class="chart1"></div>
<div class="chart2"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.5.0/d3.min.js"></script>
<script src="mapd3.min.js"></script>
<script>
@biovisualize
biovisualize / .block
Last active Sep 4, 2017
Badge for d3 unconf using a superformula
View .block
license: mit
@biovisualize
biovisualize / interactors.js
Last active Aug 18, 2017
Simple Britecharts interactor plugin
View interactors.js
define(function(require) {
const d3Selection = require('d3-selection');
/**
* Toggles selection on clickable elements. Will set classes "selected" and "dimmed".
* @param {Number} selector A valid selector of the elements to toggle
* @example
* barChart.on('customClick', britecharts.interactors.multiToggle('rect.bar'))
*
@biovisualize
biovisualize / chart.js
Created Jul 21, 2017
Empty interface example - refactoring blog post
View chart.js
var chartManager = {}
chartManager.line = function(selector) {
var config = {
height: 200,
width: 200
}
var dataCache = []
var events = function(eventName, cb) {
You can’t perform that action at this time.