Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
license: gpl-3.0 |
height: 540 |
var multiCrowbar = (function() { | |
/* | |
* SVG Export | |
* converts html labels to svg text nodes | |
* will produce incorrect results when used with multi-line html texts | |
* | |
* Author: Gregor Aisch | |
* based on https://github.com/NYTimes/svg-crowbar/blob/gh-pages/svg-crowbar-2.js | |
*/ |
This is the first example of my blog on Beautiful color blending effects with SVGs & D3
The hexagon introduction to the Color blending section of my OpenVis 2016 talk "SVGs beyond mere shapes". In this example the circles are given the mix-blend-mode of screen to get nice effects when the circles overlap each other.
Another color blending example can be found here
Built with blockbuilder.org
scrolling: yes | |
license: MIT |
license: mit |
# Dummy object, only required for name resolution. | |
set = structure(list(), class = 'set') | |
print.set = function (x, ...) invisible(x) | |
`[.set` = function (set, expr, filter) { | |
expr = substitute(expr) | |
filter = substitute(filter) | |
stopifnot(identical(expr[[1]], quote(`<-`))) | |
stopifnot(identical(expr[[2]][[1]], quote(`|`))) |
Using a new updatable chart format. Update functions are made accessible to the caller, handing over chart controls with full functionality to the caller in a modular manner. Data binding is done with method chaining, like any other configuration variable, and can be changed after initialization. This allows for changes to be rendered in the context of chart history, leveraging D3's transitions and update logic.
# Script to make a word cloud of your google searches. Get your google search | |
# history at http://history.google.com. This script assumes the JSON files | |
# exported are in a 'Searches' subfolder | |
library(jsonlite) | |
library(rlist) | |
library(magrittr) | |
library(stringi) | |
library(wordcloud) | |
library(tm) |