Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/img/background-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
104 changes: 104 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
.google-visualization-tooltip{
width:50% !important;
border: 1px solid lightgrey !important;

}

body {
margin: 0;
padding: 0;
}

span {
display: block;;
}

#hero {
background: linear-gradient(
rgba(255,255,255,.5),
rgba(255,255,255,.9)),
url(../assets/img/background-image.jpg);
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
height: 70vh;
width: 100%;
}

hr {
width: 25%;
margin: 45px auto;
}

h2 > span, h4 > span {
display: block;
}

.highcharts-button {
visibility: hidden !important;
}

.nav-link.active {
background-color: #e95122!important ;
}

.nav-link {
background-color: lightgrey;
}

/* for D# charts styling */

.arc text {
font: 10px sans-serif;
text-anchor: middle;
}

.arc path {
stroke: #fff;
}

.arc2 text {
font: 10px sans-serif;
text-anchor: middle;
}

.arc2 path {
stroke: #fff;
}

#men_pieChart1, #men_pieChart2, #women_pieChart1, #women_pieChart2 {
height: 360px;
margin: 0 auto;
position: relative;
width: 360px;
}

.tooltipMen1, .tooltipMen2, .tooltipWomen1, .tooltipWomen2 {
background: #eee;
box-shadow: 0 0 5px #999999;
color: #333;
display: none;
font-size: 12px;
left: 130px;
padding: 10px;
position: absolute;
text-align: center;
top: 95px;
width: 80px;
z-index: 10;
}
.legend {
font-size: 12px;
}
rect {
cursor: pointer;
stroke-width: 2;
}
rect.disabled {
fill: transparent !important;
}

13 changes: 13 additions & 0 deletions data/data-gender-age.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Preparedness,Age,Gender,Percent Value
ready,19 to 27,men,0.04
somewhat ready,19 to 27,men,0.33
not ready,19 to 27,men,0.63
ready,28 to 36,men,0.12
somewhat ready,28 to 36,men,0.36
not ready,28 to 36,men,0.52
ready,19 to 27,women,0.08
somewhat ready,19 to 27,women,0.33
not ready,19 to 27,women,0.59
ready,28 to 36,women,0.18
somewhat ready,28 to 36,women,0.53
not ready,28 to 36,women,0.29
Loading