% of Employed Who Are Senior Managers, By Gender (2008)

{{country}}
Edit with CodePen

html

<link id="employment-shares" rel="variance-data" href="//variancecharts.com/data/employment_shares.csv">

<div id="employment">

  <h3 class="title">% of Employed Who Are Senior Managers, By Gender (2008)</h3>

  <chart id="dotplot_horizontal_range" data="#employment-shares"
         scale-x-linear="0 20">
    <guide-x class="top"></guide-x>
    <repeat>
      <annotation class="left">{{country}}</annotation>
      <range map-extent="women men"></range>
      <dot class="women"
           map-position="women"></dot>
      <dot class="men"
           map-position="men"></dot>
    </repeat>
    <guide-x class="bottom"></guide-x>
  </chart>

</div>

css

#employment {
  width: 100%;
  padding: 60px 80px 100px 140px;
  color: #444444;
  font-family: Helvetica, Arial, sans-serif;
}
#employment h3, #employment h4 {
  text-align: center;
  margin: 0 0 80px 0;
}
#employment chart {
  width: 100%;
  height: 540px;
}
#employment guide-x.top {
  top: -60px;
}
#employment guide-x.bottom {
  bottom: -60px;
}
#employment datum:after {
  content: "";
  border-bottom: 1px dashed #dddddd;
  width: 100%;
  display: block;
}
#employment range {
  height: 3px;
  background-color: #cccccc;
  top: calc(50% - 1.5px);
}
#employment dot.men {
  background-color: #66a8d4;
}
#employment dot.women {
  background-color: #d4668a;
}
#employment annotation {
  font-size: 12px;
  font-weight: normal;
  left: -6px;
}