This is my favorite graph evar! It has so many cool bars.
Built with blockbuilder.org
If you are puzzled by the bizarre "press conference" put on by the White House press secretary this evening (angrily claiming that Trump's inauguration had the largest audience in history, accusing them of faking photos and lying about attendance), let me help explain it. This spectacle served three purposes: | |
1. Establishing a norm with the press: they will be told things that are obviously wrong and they will have no opportunity to ask questions. That way, they will be grateful if they get anything more at any press conference. This is the PR equivalent of "negging," the odious pick-up practice of a particular kind of horrible person (e.g., Donald Trump). | |
2. Increasing the separation between Trump's base (1/3 of the population) from everybody else (the remaining 2/3). By being todl something that is obviously wrong--that there is no evidence for and all evidence against, that anybody with eyes can see is wrong--they are forced to pick whether they are going to believe Trump or their lying eyes. The gamble |
This is my favorite graph evar! It has so many cool bars.
Built with blockbuilder.org
##Akinetic hypnodots
100% less bouncing. Easier to see what is going on. Lots of fun/maddening ways to play with the spacing of the dots. See if you can figure out how it figures out where the new circles go.
Forkable, tweakable jsfiddle version
##Hypnodots
Featuring: enter() and exit() selections, updates, transitions, easing functions, and more, resulting in an utterly hypnotizing bunch of collapsing and expanding dots.
This has lots of convenient variables to play with if you care to fork and tweak on the jsfiddle version
##change colors 2
If you liked change colors the original, you may or may not prefer this version, which allows the circles to change colors independently.
Forkable and tweakable jsfiddle version
###circle hop
hey, don't poke me. I'm sensitive.
jsfiddle version for forking/tweaking
Uses setInterval() to introduce the concept of updating objects
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script type="text/javascript"> | |
window.onload=function(){ | |
var svg = | |
d3.select('body') |
hex_string = '#008080' | |
def hex_to_floatrgb(hex_string): | |
hex_chunks = [hex_string[1:3],hex_string[3:5],hex_string[5:]] | |
float_rgb = [int(chunk,16)/256. for chunk in hex_chunks] | |
return tuple(float_rgb) | |
hex_to_floatrgb(hex_string) |
s1 = 'stupid string\n ' | |
s2 = '\tstupid string \n\n' | |
s3 = ' stupid\t : String\n\n\n' | |
# here are some strings that are annoying and look bad. | |
# below are string methods for fixing them: | |
s1_fixed = s1.strip() | |
print repr(s1_fixed) | |
#> 'stupid string' |