cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

āš ļø This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <script src="//variancecharts.com/cdn/variance-noncommercial-standalone-f47ffcf.min.js" charset="UTF-8"></script>

<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>
      <annotation class="left">{{country}}</annotation>
      <range map-extent="women men"></range>
      <dot class="women"
      <dot class="men"
    <guide-x class="bottom"></guide-x>

              #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;

*, *:before, *:after {
  -moz-box-sizing: border-box; 
  -webkit-box-sizing: border-box; 
  box-sizing: border-box;
šŸ•‘ One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................