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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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="temps" rel="variance-data" href="//variancecharts.com/data/global_temp_fiveyear_mean.csv">

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

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................