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


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <script src="//" charset="UTF-8"></script>

<link id="temps" rel="variance-data" href="//">

<figure id="line_datalabels">

  <h3>Change in Global Surface Temperature, 5 Year Mean</h3>

  <chart data="#temps"
         map-xy="year five_year_mean"
         scale-x-linear="1882 2010"
         scale-y-linear="-0.8 0.8">
      <span class="label">{{value}}&deg;</span>
    <range literal-x-extent="1966 2005"></range>
    <repeat class="data-labels">



                #line_datalabels {
  margin: 0;
  padding: 60px 80px 80px 120px;
  color: #444444;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
#line_datalabels h3 {
  text-align: center;
  margin: 0 0 28px 0;
#line_datalabels chart {
  width: 80%;
  margin: 0 auto;
  height: 400px;
#line_datalabels line path {
  stroke-width: 3px;
  stroke: #66a8d4;
#line_datalabels point {
  background-color: rgba(102, 168, 212, 0.6);
#line_datalabels datum point, #line_datalabels datum annotation {
  display: none;
#line_datalabels datum:nth-child(10n+9) point, #line_datalabels datum:nth-child(10n+9) annotation {
  display: block;
#line_datalabels annotation {
  width: auto;
  height: auto;
  margin-left: -5px;
  margin-bottom: 12px;
  padding: 3px 6px;
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.8);
#line_datalabels annotation:after {
  top: 100%;
  left: 0;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  border-width: 5px;