Skip to content

Instantly share code, notes, and snippets.

@ElaineYu
Last active March 5, 2020 06:03
Show Gist options
  • Save ElaineYu/f3e2af567dcf2e7c236e6db6f9cb475a to your computer and use it in GitHub Desktop.
Save ElaineYu/f3e2af567dcf2e7c236e6db6f9cb475a to your computer and use it in GitHub Desktop.
Real oil prices annotated line chart
license: mit
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-annotation/1.12.1/d3-annotation.min.js"></script>
<style>
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.x.axis path {
display: none;
}
.overlay {
fill: none;
pointer-events: all;
}
.focus circle {
fill: none;
stroke: steelblue;
}
.hover-line {
stroke: #6F257F;
stroke-width: 2px;
stroke-dasharray: 3,3;
}
.annotation path {
stroke: #E8336D;
fill: none;
}
.annotation path.connector-arrow,
.annotation path.connector-dot,
.title text, .annotation text {
fill: #E8336D;
}
.annotation-note-bg {
fill: rgba(0, 0, 0, 0);
}
.annotation-note-title, text.title {
font-weight: bold;
}
text.title {
font-size: 1.2em
}
.badge path {
stroke: #00cc66;
stroke-width: 3px;
stroke-linecap: round;
}
.annotation.badge path.subject-pointer, .annotation.badge path.subject, .annotation.badge path.subject-ring {
fill: #00cc66;
stroke-width: 3px;
stroke-linecap: round;
}
.annotation.badge path.subject-ring {
fill: white;
stroke-width: 3px;
}
.annotation.badge .badge-text {
fill: white;
font-size: .7em;
}
text.hover {
font-size: 1em;
fill: black;
font-weight: bold;
stroke: green;
}
</style>
</head>
<body>
<script>
// Source: https://www.eia.gov/outlooks/steo/realprices/
var margin = {top: 20, right: 50, bottom: 30, left: 50},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom
var parseTime = d3.timeParse("%B %Y"),
formatTime = d3.timeFormat("%b %Y"),
bisectDate = d3.bisector(function(d) {return d.Month;}).left,
formatValue = d3.format(",.2f"),
formatCurrency = function(d){ return "$" + formatValue(d)};
var svg = d3.select("body").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
var x = d3.scaleTime()
.range([0, width]);
var y = d3.scaleLinear()
.range([height, 0]);
var line = d3.line()
.x(function(d) { return x(d.Month); })
.y(function(d) { return y(d.Real_Imported_Crude_Oil_Price); });
d3.csv("real_oil_prices.csv", function(d){
d.Month = parseTime(d.Month);
d.Real_Imported_Crude_Oil_Price = parseInt(d.Real_Imported_Crude_Oil_Price);
d.Nominal_Imported_Crude_Oil_Price = parseInt(d.Nominal_Imported_Crude_Oil_Price);
return d;
}, function(error, data) {
console.log(data);
x.domain(d3.extent(data, function(d) { return d.Month; }));
y.domain(d3.extent(data, function(d) { return d.Real_Imported_Crude_Oil_Price; }));
svg.append("g")
.attr("transform", "translate(0," + height + ")")
.call(d3.axisBottom(x))
.select(".domain")
.remove();
svg.append("g")
.call(d3.axisLeft(y))
.append("text")
.attr("fill", "#000")
.attr("transform", "rotate(-90)")
.attr("y", 6)
.attr("dy", "0.71em")
.attr("text-anchor", "end")
.text("Real Imported Crude Oil Price ($)");
svg.append("path")
.datum(data)
.attr("fill", "none")
.attr("stroke", "steelblue")
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("stroke-width", 1.5)
.attr("d", line);
var focus = svg.append("g")
.attr("class", "focus")
.style("display", "none");
focus.append("line")
.attr("class", "x-hover-line hover-line")
.attr("y1", 0)
.attr("y2", height);
focus.append("line")
.attr("class", "y-hover-line hover-line")
.attr("x1", width)
.attr("x2", width);
focus.append("circle")
.attr("r", 4.5);
focus.append("text")
.attr("x", 9)
.attr("dy", ".31em");
svg.append("rect")
.attr("class", "overlay")
.attr("width", width)
.attr("height", height)
.on("mouseover", function() { focus.style("display", null); })
.on("mouseout", function() { focus.style("display", "none"); })
.on("mousemove", mousemove);
function mousemove() {
var x0 = x.invert(d3.mouse(this)[0]),
i = bisectDate(data, x0, 1),
d0 = data[i - 1],
d1 = data[i],
d = x0 - d0.date > d1.date - x0 ? d1 : d0;
focus.attr("transform", "translate(" + x(d.Month) + "," + y(d.Real_Imported_Crude_Oil_Price) + ")");
focus.select("text").text(formatCurrency(d.Real_Imported_Crude_Oil_Price) + " " + formatTime(d.Month));
focus.select(".x-hover-line").attr("y2", height - y(d.Real_Imported_Crude_Oil_Price));
focus.select(".y-hover-line").attr("x2", width + width)
}
const annotations = [
{
type: d3.annotationLabel,
note: {
label: "Iraq invades Kuwait. Kuwaiti exports cut until 1994",
title: "1991 Gulf War",
wrap: 140
},
x: 372,
y: 302,
dy: -20,
dx: 20
},{
//below in makeAnnotations has type set to d3.annotationLabel
//you can add this type value below to override that default
type: d3.annotationCalloutCircle,
note: {
label: "Exports from region slow; U.S. flags oil tankers to protect flow of oil in Persian Gulf.",
title: "1980-88 Iran-Iraq War",
wrap: 150
},
//settings for the subject, in this case the circle radius
subject: {
radius: 110
},
x: 208,
y: 227,
dy: -90,
dx: 150
},
{
type: d3.annotationLabel,
note: {
title: "2001 - 2003",
label: "9/11 and the invasion of Iraq. Venezuelan oil workers strike",
wrap: 140
},
x: 550,
y: 280
},
{
type: d3.annotationLabel,
note: {
title: "2007-2008 Global Financial Crisis",
wrap: 150
},
x: 720,
y: 381,
dy: 20,
dx: 0
},
{
type: d3.annotationLabel,
note: {
title: "Mid-2000s",
label: "Asia drives rising demand as production stagnates and Saudi spare capacity declines",
wrap: 140
},
x: 635,
y: 40,
},
{
type: d3.annotationLabel,
note: {
title: "2011 Arab Spring",
label: "Civil war disrupts Libyan output",
wrap: 150
},
x: 820,
y: 20,
},
{
type: d3.annotationBadge,
//can use x, y directly instead of data
// data: { Month: parseTime("June 1980"), Real_Imported_Crude_Oil_Price: 102.5125925 },
note: {
title: "1980 Energy Security Act",
label: "",
wrap: 150
},
x: 170,
y: 160,
dy: 137,
dx: 162,
subject: {
text: "A",
radius: 14
}
},
{
type: d3.annotationBadge,
//can use x, y directly instead of data
// data: { Month: parseTime("June 1980"), Real_Imported_Crude_Oil_Price: 102.5125925 },
note: {
title: "1992 Energy Security Act",
label: "",
wrap: 150
},
x: 407,
y: 397,
dy: 400,
dx: 400,
subject: {
text: "B",
radius: 14,
y: "top",
x: "right"
}
}, {
type: d3.annotationBadge,
//can use x, y directly instead of data
// data: { Month: parseTime("June 1980"), Real_Imported_Crude_Oil_Price: 102.5125925 },
note: {
title: "2005 Energy Security Act",
label: "",
wrap: 150
},
x: 650,
y: 295,
dy: 400,
dx: 400,
subject: {
text: "C",
radius: 14
}
},
{
type: d3.annotationBadge,
//can use x, y directly instead of data
// data: { Month: parseTime("June 1980"), Real_Imported_Crude_Oil_Price: 102.5125925 },
note: {
title: "2007 Energy Independence and Security Act",
label: "",
wrap: 150
},
x: 695,
y: 180,
dy: 400,
dx: 400,
subject: {
text: "D",
radius: 14,
y: "bottom"
}
}, {
type: d3.annotationBadge,
//can use x, y directly instead of data
// data: { Month: parseTime("June 1980"), Real_Imported_Crude_Oil_Price: 102.5125925 },
note: {
title: "2008 Energy and Tax Extenders Act",
label: "",
wrap: 150
},
x: 715,
y: 260,
dy: 400,
dx: 400,
subject: {
text: "E",
radius: 14,
y: "bottom"
}
},
{
type: d3.annotationBadge,
note: {
title: "2009 American Recovery and Reinvestment Act",
label: "",
wrap: 150
},
x: 725,
y: 355,
dy: 400,
dx: 400,
subject: {
text: "F",
radius: 14,
y: "bottom",
x: "right"
}
}
]
// const type = d3.annotationBadge;
// const makeAnnotations = d3.annotation()
// .type(type)
// //accessors & accessorsInverse not needed
// //if using x, y in annotations JSON
// .accessors({
// x: d => x(d.Month),
// y: d => y(d.Real_Imported_Crude_Oil_Price)
// })
// .accessorsInverse({
// Month: d => formatTime(x.invert(d.x)),
// Real_Imported_Crude_Oil_Price: d => y.invert(d.y)
// })
// .annotations(annotations)
const makeAnnotations = d3.annotation()
.annotations(annotations)
.on('subjectover', function (annotation) {
//cannot reference this if you are using es6 function syntax
this.append('text')
.attr('class', 'hover')
.text(annotation.note.title)
.attr('text-anchor', 'middle')
.attr('y', annotation.subject.y && annotation.subject.y == "bottom" ? 50 : -40)
.attr('x', -15);
this.append('text')
.attr('class', 'hover')
.text(annotation.note.label)
.attr('text-anchor', 'middle')
.attr('y', annotation.subject.y && annotation.subject.y == "bottom" ? 70 : -60)
.attr('x', -15);
}).on('subjectout', function (annotation) {
this.selectAll('text.hover').remove();
});
d3.select("svg")
.append("g")
.attr("class", "annotation-group")
.call(makeAnnotations)
});
</script>
</body>
<!-- https://en.wikipedia.org/wiki/List_of_United_States_energy_acts -->
<!-- http://www.zerohedge.com/sites/default/files/images/user3303/imageroot/2014/07/20140722_oilprice1.jpg -->
Month Consumer_Price_Index_(1982-84=1) Nominal_Imported_Crude_Oil_Price Real_Imported_Crude_Oil_Price Forecast_Values
January 1974 0.468 9.59 50.26164081 0
February 1974 0.473 12.45 64.56127801 0
March 1974 0.478 12.73 65.32274331 0
April 1974 0.481 12.72 64.86433098 0
May 1974 0.486 13.02 65.71108272 0
June 1974 0.49 13.06 65.3748951 0
July 1974 0.493 12.75 63.43474138 0
August 1974 0.499 12.68 62.32791743 0
September 1974 0.506 12.53 60.73855593 0
October 1974 0.51 12.44 59.82932627 0
November 1974 0.515 12.53 59.67710544 0
December 1974 0.519 12.82 60.58771522 0
January 1975 0.523 12.77 59.88983499 0
February 1975 0.526 13.05 60.85393631 0
March 1975 0.528 13.28 61.69188788 0
April 1975 0.53 13.26 61.36652943 0
May 1975 0.531 13.27 61.29715386 0
June 1975 0.535 14.15 64.87338598 0
July 1975 0.54 14.03 63.72763759 0
August 1975 0.542 14.25 64.48808579 0
September 1975 0.546 14.04 63.07225714 0
October 1975 0.549 14.66 65.49762222 0
November 1975 0.553 15.04 66.70933526 0
December 1975 0.556 14.81 65.33474119 0
January 1976 0.558 13.27 58.33116254 0
February 1976 0.559 13.26 58.18293488 0
March 1976 0.56 13.51 59.17404125 0
April 1976 0.561 13.39 58.54389643 0
May 1976 0.564 13.41 58.31947181 0
June 1976 0.567 13.48 58.31371922 0
July 1976 0.57 13.51 58.13590018 0
August 1976 0.573 13.58 58.13116894 0
September 1976 0.576 13.47 57.35998385 0
October 1976 0.579 13.49 57.1475076 0
November 1976 0.581 13.58 57.33073976 0
December 1976 0.584 13.71 57.58223476 0
January 1977 0.587 14.11 58.95936814 0
February 1977 0.593 14.5 59.97596121 0
March 1977 0.596 14.54 59.83868691 0
April 1977 0.6 14.36 58.70391933 0
May 1977 0.602 14.62 59.56824286 0
June 1977 0.605 14.63 59.31340545 0
July 1977 0.608 14.44 58.2542375 0
August 1977 0.611 14.68 58.9316707 0
September 1977 0.613 14.5 58.01915987 0
October 1977 0.616 14.56 57.97550909 0
November 1977 0.62 14.61 57.79928081 0
December 1977 0.623 14.76 58.11151782 0
January 1978 0.627 14.52 56.80191579 0
February 1978 0.63 14.41 56.10316206 0
March 1978 0.634 14.57 56.36820457 0
April 1978 0.639 14.4 55.27459155 0
May 1978 0.645 14.51 55.17871798 0
June 1978 0.65 14.54 54.86747292 0
July 1978 0.655 14.49 54.26139985 0
August 1978 0.659 14.46 53.82038331 0
September 1978 0.665 14.53 53.59297639 0
October 1978 0.671 14.63 53.4793 0
November 1978 0.675 14.74 53.56210281 0
December 1978 0.679 14.94 53.96904477 0
January 1979 0.685 15.5 55.50154015 0
February 1979 0.692 15.88 56.28702717 0
March 1979 0.699 16.41 57.58313605 0
April 1979 0.706 17.58 61.07705354 0
May 1979 0.714 19 65.27085434 0
June 1979 0.722 21.03 71.44403643 0
July 1979 0.73 23.09 77.5827163 0
August 1979 0.737 23.98 79.80784776 0
September 1979 0.744 25.06 82.61749812 0
October 1979 0.752 25.05 81.70597141 0
November 1979 0.76 27.02 87.20385026 0
December 1979 0.769 28.91 92.21162172 0
January 1980 0.78 30.75 96.69731731 0
February 1980 0.79 32.4 100.5962582 0
March 1980 0.801 33.42 102.338215 0
April 1980 0.809 33.54 101.6900462 0
May 1980 0.817 34.33 103.0660554 0
June 1980 0.825 34.48 102.5125925 0
July 1980 0.826 34.51 102.4775703 0
August 1980 0.832 34.44 101.5321832 0
September 1980 0.839 34.46 100.743543 0
October 1980 0.847 34.63 100.2843097 0
November 1980 0.856 35.09 100.5480174 0
December 1980 0.864 35.63 101.1500235 0
January 1981 0.872 38.85 109.2794364 0
February 1981 0.88 39 108.7040795 0
March 1981 0.886 38.31 106.0577326 0
April 1981 0.891 38.41 105.7378587 0
May 1981 0.897 37.84 103.4719402 0
June 1981 0.905 37.03 100.3619385 0
July 1981 0.915 36.58 98.05878667 0
August 1981 0.922 35.82 95.29246659 0
September 1981 0.931 35.44 93.37012503 0
October 1981 0.934 35.43 93.04395964 0
November 1981 0.938 36.21 94.6868338 0
December 1981 0.941 35.95 93.70724708 0
January 1982 0.944 35.54 92.34413919 0
February 1982 0.947 35.48 91.89619725 0
March 1982 0.947 34.07 88.24417814 0
April 1982 0.95 32.82 84.73813074 0
May 1982 0.959 32.78 83.84057539 0
June 1982 0.97 33.79 85.44376278 0
July 1982 0.975 33.44 84.12509374 0
August 1982 0.977 32.95 82.72271187 0
September 1982 0.977 33.03 82.92355609 0
October 1982 0.981 33.28 83.21051662 0
November 1982 0.98 33.09 82.81988051 0
December 1982 0.977 32.85 82.4716566 0
January 1983 0.979 31.4 78.67031052 0
February 1983 0.98 30.76 76.98819959 0
March 1983 0.981 28.43 71.083984 0
April 1983 0.988 27.95 69.38870395 0
May 1983 0.992 28.53 70.54301341 0
June 1983 0.994 29.23 72.12840674 0
July 1983 0.998 28.76 70.68418397 0
August 1983 1.001 29.5 72.28560939 0
September 1983 1.004 29.54 72.16733805 0
October 1983 1.008 29.67 72.19729435 0
November 1983 1.011 29.09 70.57590791 0
December 1983 1.014 29.3 70.87508185 0
January 1984 1.021 28.8 69.18798041 0
February 1984 1.026 28.91 69.11377885 0
March 1984 1.029 28.95 69.00762828 0
April 1984 1.033 29.11 69.12032827 0
May 1984 1.035 29.26 69.34224213 0
June 1984 1.037 29.19 69.04293529 0
July 1984 1.041 29 68.32996158 0
August 1984 1.044 28.92 67.94565632 0
September 1984 1.047 28.7 67.23557498 0
October 1984 1.051 28.79 67.18972398 0
November 1984 1.053 28.74 66.94564046 0
December 1984 1.055 28.02 65.14477365 0
January 1985 1.057 27.49 63.79162431 0
February 1985 1.063 26.99 62.2778381 0
March 1985 1.068 27.2 62.46856929 0
April 1985 1.07 27.59 63.24582047 0
May 1985 1.072 27.6 63.15070522 0
June 1985 1.075 27.25 62.1758814 0
July 1985 1.077 26.57 60.51175645 0
August 1985 1.079 26.61 60.4905228 0
September 1985 1.081 26.56 60.26515597 0
October 1985 1.085 26.79 60.56293078 0
November 1985 1.09 27.12 61.02771303 0
December 1985 1.095 26.21 58.71063936 0
January 1986 1.099 24.93 55.64017589 0
February 1986 1.097 18.11 40.49260629 0
March 1986 1.091 14.22 31.96971421 0
April 1986 1.087 13.15 29.67290846 0
May 1986 1.09 13.17 29.6362456 0
June 1986 1.094 12.25 27.46519424 0
July 1986 1.095 10.91 24.43849963 0
August 1986 1.096 11.87 26.56464845 0
September 1986 1.1 12.85 28.65328045 0
October 1986 1.102 12.78 28.4454735 0
November 1986 1.104 13.46 29.90473062 0
December 1986 1.108 14.17 31.36851778 0
January 1987 1.114 16.45 36.21968088 0
February 1987 1.118 16.98 37.2528746 0
March 1987 1.122 17.26 37.73217522 0
April 1987 1.127 17.89 38.93591029 0
May 1987 1.13 18.25 39.61396681 0
June 1987 1.135 18.71 40.43354634 0
July 1987 1.138 19.26 41.51240826 0
August 1987 1.143 19.32 41.4595706 0
September 1987 1.147 18.57 39.71114359 0
October 1987 1.15 18.53 39.52223417 0
November 1987 1.154 18.14 38.55630277 0
December 1987 1.156 17.2 36.49509689 0
January 1988 1.16 15.45 32.66889181 0
February 1988 1.162 15.43 32.57044604 0
March 1988 1.165 14.73 31.01278223 0
April 1988 1.172 15.62 32.69018106 0
May 1988 1.175 15.93 33.25384111 0
June 1988 1.18 15.5 32.21911441 0
July 1988 1.185 14.81 30.6549503 0
August 1988 1.19 14.32 29.51616739 0
September 1988 1.195 13.84 28.40743967 0
October 1988 1.199 13.05 26.69655588 0
November 1988 1.203 12.66 25.81261397 0
December 1988 1.207 14.11 28.67369437 0
January 1989 1.212 16.04 32.46128086 0
February 1989 1.216 16.61 33.50425502 0
March 1989 1.222 17.77 35.66811268 0
April 1989 1.231 19.59 39.03375134 0
May 1989 1.237 19.05 37.77367057 0
June 1989 1.241 18.27 36.11026487 0
July 1989 1.245 17.99 35.44261197 0
August 1989 1.245 17.23 33.9453143 0
September 1989 1.248 17.62 34.63021811 0
October 1989 1.254 18.29 35.77503581 0
November 1989 1.259 18.32 35.69140524 0
December 1989 1.263 20.05 38.93811599 0
January 1990 1.275 20.51 39.45657498 0
February 1990 1.28 19.78 37.90357953 0
March 1990 1.286 18.94 36.12458896 0
April 1990 1.289 16.66 31.70195081 0
May 1990 1.291 16.07 30.53187971 0
June 1990 1.299 15.15 28.60667552 0
July 1990 1.305 16.54 31.08772215 0
August 1990 1.316 24.26 45.21669498 0
September 1990 1.325 29.88 55.31317947 0
October 1990 1.334 32.88 60.45606657 0
November 1990 1.337 30.19 55.38544046 0
December 1990 1.342 25.56 46.71670909 0
January 1991 1.347 22.3 40.60702524 0
February 1991 1.348 18.3 33.29853338 0
March 1991 1.348 17.58 31.98842715 0
April 1991 1.351 18.32 33.26090244 0
May 1991 1.356 18.36 33.21061327 0
June 1991 1.36 17.78 32.06688368 0
July 1991 1.362 18.14 32.66811557 0
August 1991 1.366 18.71 33.59595542 0
September 1991 1.37 19 34.01707299 0
October 1991 1.372 19.86 35.50496108 0
November 1991 1.378 19.35 34.44257874 0
December 1991 1.382 17.17 30.47376823 0
January 1992 1.383 16.1 28.55404266 0
February 1992 1.386 16 28.31526696 0
March 1992 1.391 16.36 28.84829015 0
April 1992 1.394 17.37 30.56334986 0
May 1992 1.397 18.79 32.99090902 0
June 1992 1.401 19.83 34.71750343 0
July 1992 1.405 19.74 34.46154406 0
August 1992 1.408 19.25 33.53451172 0
September 1992 1.411 19.26 33.48059575 0
October 1992 1.417 19.34 33.47730797 0
November 1992 1.421 18.4 31.76052357 0
December 1992 1.423 16.94 29.19929824 0
January 1993 1.428 16.8 28.85658824 0
February 1993 1.431 17.41 29.84166464 0
March 1993 1.433 17.82 30.50179637 0
April 1993 1.438 18.35 31.29976599 0
May 1993 1.442 17.89 30.430493 0
June 1993 1.443 16.8 28.5566237 0
July 1993 1.445 15.81 26.83662706 0
August 1993 1.448 15.64 26.49305829 0
September 1993 1.45 15.32 25.91520634 0
October 1993 1.456 15.59 26.26326092 0
November 1993 1.46 14.05 23.60409623 0
December 1993 1.463 12.56 21.05761695 0
January 1994 1.463 12.93 21.67794484 0
February 1994 1.467 12.9 21.56867689 0
March 1994 1.471 13.18 21.97691081 0
April 1994 1.472 14.54 24.22816399 0
May 1994 1.475 15.74 26.17439281 0
June 1994 1.479 17.04 28.25955538 0
July 1994 1.484 17.52 28.95770296 0
August 1994 1.49 16.66 27.42537893 0
September 1994 1.493 15.91 26.13811594 0
October 1994 1.494 16.27 26.7116591 0
November 1994 1.498 16.46 26.95143698 0
December 1994 1.501 15.78 25.78637029 0
January 1995 1.505 16.56 26.98905887 0
February 1995 1.509 17.21 27.97406236 0
March 1995 1.512 17.21 27.91855827 0
April 1995 1.518 18.7 30.21577536 0
May 1995 1.521 18.56 29.93040999 0
June 1995 1.524 17.43 28.05280728 0
July 1995 1.526 16.5 26.52120904 0
August 1995 1.529 16.54 26.53334035 0
September 1995 1.531 16.71 26.77103534 0
October 1995 1.535 16.29 26.03014651 0
November 1995 1.537 16.52 26.36331893 0
December 1995 1.539 17.53 27.93876498 0
January 1996 1.547 17.48 27.71500892 0
February 1996 1.55 17.77 28.12027981 0
March 1996 1.555 19.9 31.38965852 0
April 1996 1.561 21.33 33.51597521 0
May 1996 1.564 20.12 31.55405192 0
June 1996 1.567 19.32 30.24140983 0
July 1996 1.57 19.6 30.62106752 0
August 1996 1.572 20.53 32.0331993 0
September 1996 1.577 22.04 34.28023614 0
October 1996 1.582 23.22 36.00142111 0
November 1996 1.587 22.66 35.02247927 0
December 1996 1.591 23.22 35.79776757 0
January 1997 1.594 23.02 35.42263877 0
February 1997 1.597 20.88 32.06930044 0
March 1997 1.598 19.16 29.4091612 0
April 1997 1.599 17.83 27.35059556 0
May 1997 1.599 18.55 28.45505034 0
June 1997 1.602 17.35 26.56445287 0
July 1997 1.604 17.49 26.74541577 0
August 1997 1.608 17.96 27.39581318 0
September 1997 1.612 17.85 27.16045813 0
October 1997 1.615 18.73 28.44652093 0
November 1997 1.617 17.88 27.12198071 0
December 1997 1.618 15.95 24.17943109 0
January 1998 1.62 14.33 21.69676994 0
February 1998 1.62 13.32 20.16754889 0
March 1998 1.62 12.34 18.68375025 0
April 1998 1.622 12.81 19.37145259 0
May 1998 1.626 12.61 19.02209969 0
June 1998 1.628 11.61 17.49209097 0
July 1998 1.632 11.55 17.35904136 0
August 1998 1.634 11.34 17.02256144 0
September 1998 1.635 12.77 19.15742122 0
October 1998 1.639 12.11 18.12295857 0
November 1998 1.641 10.99 16.42680189 0
December 1998 1.644 9.39 14.00966296 0
January 1999 1.647 10.16 15.13087407 0
February 1999 1.647 10.33 15.38404815 0
March 1999 1.648 12.1 18.00910255 0
April 1999 1.659 14.82 21.91117794 0
May 1999 1.66 15.57 23.00617572 0
June 1999 1.66 15.91 23.50855849 0
July 1999 1.667 18.05 26.55862058 0
August 1999 1.671 19.56 28.71152819 0
September 1999 1.678 21.64 31.63218617 0
October 1999 1.681 21.62 31.54655098 0
November 1999 1.684 23.14 33.70428943 0
December 1999 1.688 24.35 35.3826561 0
January 2000 1.693 25.29 36.64002652 0
February 2000 1.7 27.39 39.51909759 0
March 2000 1.71 27.7 39.73265322 0
April 2000 1.709 24.29 34.86176413 0
May 2000 1.712 26.35 37.7520698 0
June 2000 1.722 28.91 41.17928984 0
July 2000 1.727 28 39.76762015 0
August 2000 1.727 28.8 40.90383787 0
September 2000 1.736 30.56 43.17849862 0
October 2000 1.739 29.71 41.90510932 0
November 2000 1.742 30 42.2412744 0
December 2000 1.746 25.19 35.38733328 0
January 2001 1.756 24.49 34.20803924 0
February 2001 1.76 24.97 34.79924188 0
March 2001 1.761 23.01 32.04949353 0
April 2001 1.764 22.99 31.96717795 0
May 2001 1.773 24.63 34.07372267 0
June 2001 1.777 23.95 33.05841277 0
July 2001 1.774 22.76 31.46897159 0
August 2001 1.774 23.77 32.86544177 0
September 2001 1.781 22.51 31.00098433 0
October 2001 1.776 18.76 25.90918671 0
November 2001 1.775 16.06 22.19274851 0
December 2001 1.774 15.95 22.0531677 0
January 2002 1.777 17.04 23.52047406 0
February 2002 1.78 18.24 25.13441258 0
March 2002 1.785 22.29 30.62920723 0
April 2002 1.793 23.98 32.80445276 0
May 2002 1.795 24.44 33.3964771 0
June 2002 1.796 23.45 32.02583213 0
July 2002 1.8 24.99 34.05317883 0
August 2002 1.805 25.68 34.89648798 0
September 2002 1.808 27.14 36.81928285 0
October 2002 1.812 25.99 35.181309 0
November 2002 1.815 23.68 32.00139989 0
December 2002 1.818 26.68 35.99613355 0
January 2003 1.826 30.3 40.70106407 0
February 2003 1.836 32.23 43.05777032 0
March 2003 1.839 29.23 38.98620788 0
April 2003 1.832 24.48 32.77553974 0
May 2003 1.829 25.15 33.72781383 0
June 2003 1.831 27.22 36.46394768 0
July 2003 1.837 27.95 37.31956424 0
August 2003 1.845 28.5 37.88893496 0
September 2003 1.851 25.66 34.00275775 0
October 2003 1.849 27.32 36.24162747 0
November 2003 1.85 27.47 36.42091389 0
December 2003 1.855 28.63 37.85657698 0
January 2004 1.863 30.11 39.64257064 0
February 2004 1.867 30.69 40.31962448 0
March 2004 1.871 32.16 42.1605396 0
April 2004 1.874 32.34 42.32864216 0
May 2004 1.882 35.68 46.50173262 0
June 2004 1.889 33.45 43.43382451 0
July 2004 1.891 35.89 46.55280323 0
August 2004 1.892 39.46 51.15638615 0
September 2004 1.898 40.42 52.23528988 0
October 2004 1.908 45.36 58.31208679 0
November 2004 1.917 39.89 51.03943187 0
December 2004 1.917 34.07 43.59271607 0
January 2005 1.916 37.56 48.0832691 0
February 2005 1.924 39.72 50.6370131 0
March 2005 1.931 45.73 58.08752009 0
April 2005 1.937 45.25 57.29976897 0
May 2005 1.936 43.19 54.71945449 0
June 2005 1.937 49.28 62.40293072 0
July 2005 1.949 52.79 66.43603894 0
August 2005 1.961 58.67 73.38417272 0
September 2005 1.988 58.79 72.53556333 0
October 2005 1.991 55.31 68.13908644 0
November 2005 1.981 49.97 61.87123458 0
December 2005 1.981 50.85 62.96082206 0
January 2006 1.993 55.85 68.73529277 0
February 2006 1.994 52.8 64.94903109 0
March 2006 1.997 55.31 67.93436209 0
April 2006 2.007 62.41 76.27298062 0
May 2006 2.013 64.39 78.45823939 0
June 2006 2.018 63.79 77.53456388 0
July 2006 2.029 67.99 82.19149921 0
August 2006 2.038 66.45 79.97508562 0
September 2006 2.028 57.29 69.29067303 0
October 2006 2.019 52.7 64.02332194 0
November 2006 2.02 52.7 63.99162723 0
December 2006 2.031 54.97 66.38649222 0
January 2007 2.034 49.57 59.76582023 0
February 2007 2.042 53.77 64.57923756 0
March 2007 2.053 56.31 67.2799828 0
April 2007 2.059 60.45 72.01043423 0
May 2007 2.068 61.55 73.01901066 0
June 2007 2.072 65.24 77.21769806 0
July 2007 2.076 70.75 83.59046232 0
August 2007 2.077 68.28 80.64731845 0
September 2007 2.085 72.34 85.08215194 0
October 2007 2.092 78.61 92.17237636 0
November 2007 2.108 85.53 99.50427317 0
December 2007 2.114 83.21 96.52548895 0
January 2008 2.122 84.82 98.05506056 0
February 2008 2.127 87.41 100.8054663 0
March 2008 2.134 96.96 111.4203261 0
April 2008 2.139 104.72 120.0597654 0
May 2008 2.152 116.55 132.8366071 0
June 2008 2.175 126.22 142.3661396 0
July 2008 2.19 127.77 143.0925292 0
August 2008 2.187 111.19 124.7098376 0
September 2008 2.189 96.38 108.0067014 0
October 2008 2.17 70.84 80.07422309 0
November 2008 2.132 49.1 56.50071592 0
December 2008 2.114 35.59 41.29438684 0
January 2009 2.119 36.84 42.63683353 0
February 2009 2.127 38.56 44.46550556 0
March 2009 2.125 45.96 53.05120008 0
April 2009 2.127 49.58 57.17215529 0
May 2009 2.13 56.77 65.36696853 0
June 2009 2.148 66.37 75.79170338 0
July 2009 2.147 63.46 72.49020733 0
August 2009 2.154 68.09 77.51947499 0
September 2009 2.159 67.65 76.87011387 0
October 2009 2.165 72.06 81.636093 0
November 2009 2.172 74.4 84.00575601 0
December 2009 2.173 72.67 82.00973683 0
January 2010 2.175 75.07 84.66326726 0
February 2010 2.173 73.73 83.23124493 0
March 2010 2.174 76.77 86.63428786 0
April 2010 2.174 80.03 90.29239905 0
May 2010 2.173 71.15 80.31544549 0
June 2010 2.172 71.91 81.20735689 0
July 2010 2.176 73.27 82.588814 0
August 2010 2.179 73.52 82.74968278 0
September 2010 2.183 73.15 82.20045882 0
October 2010 2.19 76.9 86.11458854 0
November 2010 2.196 79.92 89.27026513 0
December 2010 2.205 85.59 95.22116545 0
January 2011 2.212 87.61 97.15339694 0
February 2011 2.219 91.42 101.0535878 0
March 2011 2.23 102.43 112.6410374 0
April 2011 2.241 113.02 123.7060445 0
May 2011 2.248 107.98 117.8146597 0
June 2011 2.248 105.38 114.9778555 0
July 2011 2.254 105.94 115.2868038 0
August 2011 2.261 99 107.3957303 0
September 2011 2.266 101.05 109.3820529 0
October 2011 2.268 101.99 110.3250681 0
November 2011 2.272 107.67 116.2544417 0
December 2011 2.272 106.52 114.9854201 0
January 2012 2.278 105.25 113.3058227 0
February 2012 2.283 108.08 116.1042639 0
March 2012 2.288 111 118.9919495 0
April 2012 2.292 108.54 116.1619103 0
May 2012 2.287 103.26 110.7401681 0
June 2012 2.285 92.18 98.93929119 0
July 2012 2.286 92.99 99.77986872 0
August 2012 2.299 97.04 103.5241618 0
September 2012 2.31 101.82 108.1077481 0
October 2012 2.316 100.92 106.8639797 0
November 2012 2.312 98.07 104.0208073 0
December 2012 2.312 93.7 99.39767452 0
January 2013 2.316 97.91 103.6883353 0
February 2013 2.33 99.23 104.4669555 0
March 2013 2.323 99.11 104.6487497 0
April 2013 2.318 96.45 102.0615304 0
May 2013 2.319 98.5 104.1764195 0
June 2013 2.324 97.17 102.5672182 0
July 2013 2.329 101.56 106.9639973 0
August 2013 2.333 104.16 109.4982876 0
September 2013 2.336 103.49 108.6500595 0
October 2013 2.337 97.84 102.6805511 0
November 2013 2.341 90.36 94.66724967 0
December 2013 2.347 90.57 94.64390013 0
January 2014 2.354 89.71 93.48156641 0
February 2014 2.357 96.1 100.0182631 0
March 2014 2.36 97.13 100.9591722 0
April 2014 2.365 97.33 100.9561415 0
May 2014 2.368 98.46 101.9725681 0
June 2014 2.37 100.26 103.7504823 0
July 2014 2.374 98.75 102.0179036 0
August 2014 2.373 93.23 96.38343237 0
September 2014 2.375 89.38 92.31371862 0
October 2014 2.375 82.75 85.45890525 0
November 2014 2.371 74.34 76.89922123 0
December 2014 2.363 57.36 59.54258818 0
January 2015 2.349 44.74 46.71462175 0
February 2015 2.355 47.18 49.141818 0
March 2015 2.36 47.22 49.07927412 0
April 2015 2.362 51.62 53.60436755 0
May 2015 2.369 57.51 59.54683931 0
June 2015 2.374 58.89 60.84011006 0
July 2015 2.379 52.42 54.051817 0
August 2015 2.378 43.23 44.5879191 0
September 2015 2.375 41.12 42.47307929 0
October 2015 2.378 42.03 43.35368906 0
November 2015 2.382 39.05 40.21877973 0
December 2015 2.378 33.16 34.1965724 0
January 2016 2.381 27.48 28.30807237 0
February 2016 2.378 26.66 27.49777745 0
March 2016 2.381 32.24 33.21541444 0
April 2016 2.389 35.9 36.8576519 0
May 2016 2.394 40.88 41.89089028 0
June 2016 2.398 44.13 45.13075496 0
July 2016 2.399 41.48 42.41075741 0
August 2016 2.404 41.21 42.04863787 0
September 2016 2.41 40.86 41.58478071 0
October 2016 2.417 44.76 45.42428674 0
November 2016 2.422 41.8 42.33190806 0
December 2016 2.428 46.72 47.19331656 0
January 2017 2.442 48.12 48.34132701 0
February 2017 2.445 49.38 49.54664962 0
March 2017 2.438 46.58 46.87218558 0
April 2017 2.442 47.38 47.59792339 0
May 2017 2.438 45.02 45.28493648 0
June 2017 2.445 41.68 41.8110574 1
July 2017 2.453 44.5 44.5 1
August 2017 2.458 44.5 44.41496582 1
September 2017 2.462 44.5 44.33706268 1
October 2017 2.465 44.5 44.28054789 1
November 2017 2.469 44.5 44.20585421 1
December 2017 2.474 44.5 44.12743343 1
January 2018 2.479 44.5 44.03752528 1
February 2018 2.483 44.5 43.95761103 1
March 2018 2.487 44.5 43.87983844 1
April 2018 2.492 44.5 43.80613775 1
May 2018 2.496 44.5 43.73115985 1
June 2018 2.5 44.5 43.65685724 1
July 2018 2.504 45.5 44.56714272 1
August 2018 2.509 46.5 45.46689652 1
September 2018 2.513 47.5 46.36040584 1
October 2018 2.518 48.5 47.23566914 1
November 2018 2.523 48.5 47.15293264 1
December 2018 2.527 49.5 48.04686637 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment