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.

Quick-add: + add another resource

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.

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