d3js: D.R.Y. update/enter/exit paragraph with Select input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Determine average duration for each step across all sessions """ | |
import sys | |
STREAM = [ | |
# session, step, timestamp | |
[1001, 1, 100000010], # duration = 11 | |
[1001, 2, 100000021], # duration = 12 | |
[1001, 3, 100000033], # duration = 13 | |
[1001, 4, 100000046], # duration = None (there's no next step) | |
[1002, 1, 100000010], # duration = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Determine product usage over the last 7 days """ | |
import sys | |
DATALIST = { | |
"android": [0,1,1,0,1,1,1], | |
"iphone": [0,1,1,0,1,1,0], | |
"web": [0,0,0,1,1,1,1] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import tableauserverclient as tsc | |
TABLEAU_CREDENTIALS = { | |
"server_url": "", | |
"username": "", | |
"password": "", | |
"site": "" | |
} |
d3js: Return, Cumulative Return, Drawdown, and Drought line graphs with tooltips.
d3js: Return, Cumulative Return, and Drawdown line graphs.
d3js: Line chart changing with select input.
d3js: d3.nest() and filter() using Select box and svg circles.
d3js: Allocation, return, and attribution example. Sortable, horizontal bar chart with positive and negative values that change on select input.
http://bl.ocks.org/mbostock/5977197 http://bl.ocks.org/mbostock/3885705
sublime text settings
NewerOlder