Skip to content

Commit

Permalink
few touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwlev committed Sep 21, 2019
1 parent 67a1639 commit 32ae819
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions assets/js/j.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 73,8 @@ function draw_circles(top_key,indicators,sel_tup){
.attr("r", radius)
.style("fill",((is_purple) ? "#6603fc" : "#f77284"))
.style("opacity",((is_purple) ? 1.0 : .5))
.style("stroke", ((is_purple) ? "none" : "#8f045a"));
.style("stroke", ((is_purple) ? "#6603fc" : "#8f045a"))
.style("stroke-width",.8);
if ((is_purple) && (radius<1.5)){
svg.append('path')
.style("fill","none")
Expand Down Expand Up @@ -150,7 151,9 @@ function draw_first_circle(){
.attr("cx", 150)
.attr("cy", 150)
.attr("r", 140)
.style("fill", "#6603fc");
.style("fill", "#6603fc")
.style("stroke-width",.8)
.style("stroke","#6603fc");
$(".results").html("No selection has been made yet so the circle represents all <b>" format_big_number((($("#include_genz").prop("checked")) ? n : n_without)) "</b> people in the dataset.");
if (!($("#triangle").length)){
svg.append("svg:defs").append("svg:marker")
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,7 @@ <h1>How Common Are You</h1>
<li>How common various combinations of characteristics are</li>
</ul>
<b>How does it work?</b><br>
Just click on the characteristics in the form below and the visualization and statistical result will automatically update<br>
Click on the characteristics in the form below and the visualization and statistical result will automatically update. The size of each circle is proportional to the size of one group. The data is as of 2017 (2018 data out soon).<br>
<b>What was this inspired by?</b><br>
This was inspired by an episode of NPR's Planet Money called <a href="https://www.npr.org/2019/08/28/755191639/episode-936-the-modal-american">"The Modal American"</a>. In fact it uses almost the same data and methodology as they describe in their write up<br>
<b>Show me the gory data details!</b><br>
Expand Down

0 comments on commit 32ae819

Please sign in to comment.