Change in Global Surface Temperature, 5 Year Mean

{{value}}° {{five_year_mean}}°
Edit with CodePen

html

<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">
    <guide-y>
      <span class="label">{{value}}&deg;</span>
    </guide-y>
    <guide-x></guide-x>
    <range literal-x-extent="1966 2005"></range>
    <line></line>
    <points></points>
    <repeat class="data-labels">
      <annotation>{{five_year_mean}}&deg;</annotation>
    </repeat>
  </chart>

</figure>

css

#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: 100%;
  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;
}