Skip to content

Instantly share code, notes, and snippets.

@larsvers
larsvers / .block
Last active April 3, 2024 20:18
d3 canvas tutorial - bind and draw
license: mit
@larsvers
larsvers / .block
Last active April 8, 2023 19:31
Canvas Globe with cities
license: mit
@larsvers
larsvers / .block
Last active February 9, 2023 03:46
Military disputes - with d3-hexgrid
license: mit
height: 500
border: no
@larsvers
larsvers / .block
Last active January 9, 2023 11:16
Number of cities - with d3-hexgrid
license: mit
height: 500
border: no
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 11 columns, instead of 3 in line 8.
section,sub_section,question_index,year,tech,size,question,answer,count,chosen_percent,not_chosen_percent
Retirement,Plan Types,1,2022,All companies,All companies,Does your company sponsor a 401(k) plan?,No,1,1.666666667,98.33333333
Retirement,Plan Types,1,2022,All companies,All companies,Does your company sponsor a 401(k) plan?,Yes,59,98.33333333,1.666666667
Retirement,Plan Types,2,2022,All companies,All companies,Does your company sponsor a 403(b) or 457 plan?,No,58,96.66666667,3.333333333
Retirement,Plan Types,2,2022,All companies,All companies,Does your company sponsor a 403(b) or 457 plan?,Yes,2,3.333333333,96.66666667
Retirement,Plan Types,3,2022,All companies,All companies,Does your company sponsor a Defined Benefits plan?,No,51,85,15
Retirement,Plan Types,3,2022,All companies,All companies,Does your company sponsor a Defined Benefits plan?,Yes,9,15,85
Retirement,Plan Options,5,2022,All companies,All companies,Does your plan offer Roth (post-tax)?,No,10,16.66666667,83.33333333
Retirement,Plan Options,5
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 22 columns, instead of 7 in line 5.
chart_index,section,sub_section_index,sub_section,container,question_index,question,question_label,base_chart,direct_chart,template,chart_type,label,value,facet,filter,height,title,subtitle,x_label,y_label,legend
1,Retirement,1,Plan Types,#PlanTypes,1,Does your company sponsor a 401(k) plan?,401(k),9684911,,line-bar-pie,Pie/donut chart,answer,chosen_percent,size,,100%,{{question}},,,,
2,Retirement,1,Plan Types,#PlanTypes,2,Does your company sponsor a 403(b) or 457 plan?,403(b) or 457,9778277,,line-bar-pie,Pie/donut chart,answer,chosen_percent,size,,100%,{{question}},,,,
3,Retirement,1,Plan Types,#PlanTypes,3,Does your company sponsor a Defined Benefits plan?,Defined Benefits,9684911,,line-bar-pie,Pie/donut chart,answer,chosen_percent,size,,100%,{{question}},,,,
4,Retirement,1,Plan Types,#PlanTypes,4,Does your company sponsor a Non-Qualified Deferred Compensation plan?,Non-Qualified Deferred Compensation,9778277,,,,,,,,100%,{{question}},,,,
5,Retirement,2,Plan Options,#PlanOptions,5,Does your plan offer Roth (
@larsvers
larsvers / .block
Last active November 25, 2021 12:27
d3 canvas tutorial - bind, draw, pick
license: mit
@larsvers
larsvers / .block
Last active November 23, 2019 07:26
A lot of post boxes - with d3-hexgrid
license: mit
height: 500
border: no
@larsvers
larsvers / index.html
Created November 14, 2019 14:41
Bar q
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>main</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="//unpkg.com/d3"></script>
<style type="text/css">
@larsvers
larsvers / .block
Created August 29, 2019 16:34
test
license: mit