Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio timelyportfolio/Readme.md
Last active Aug 29, 2015

Embed
What would you like to do?
rCharts dimplejs rendition of bfast on S&P 500

rCharts + dimplejs Visualization of bfast on S&P 500

Analyze breakpoints with the R package bfast with an interactive d3.js visualization using rCharts and the dimplejs library.

R bfast code from blog post

For a better understanding of bfast please see the following paper.

Verbesselt J, Hyndman R, Newnham G, Culvenor D (2010) Detecting Trend and Seasonal Changes in Satellite Image Time Series. Remote Sensing of Environment, 114(1), 106–115. http://dx.doi.org/10.1016/j.rse.2009.08.014

S&P 500 data from Yahoo! Finance - used for personal education purposes

#sample bfast code from blog post
#http://timelyportfolio.blogspot.com/2012/04/structural-breaks-bull-or-bear.html
#analyze breakpoints with the R package bfast
#please read the paper
#Verbesselt J, Hyndman R, Newnham G, Culvenor D (2010)
#Detecting Trend and Seasonal Changes in Satellite Image Time Series.
#Remote Sensing of Environment, 114(1), 106–115.
#http://dx.doi.org/10.1016/j.rse.2009.08.014
require(bfast)
require(quantmod)
getSymbols("^GSPC",from="1950-01-01")
#convert to log price
GSPC.monthly <- log(to.monthly(GSPC)[,4])
#get monthly returns for the close price
#not necessary, leave in price form
#GSPC.return <- monthlyReturn(GSPC[,4])
#need ts representation so do some brute force conversion
GSPC.ts <- ts(as.vector(GSPC.monthly["1951-01::"]),start=c(1951,1),frequency=12)
#look at the stl Seasonal-Trend decomposition procedure already in R
GSPC.stl <- stl(GSPC.ts,s.window="periodic")
plot(GSPC.stl,main="STL Decomposition of S&P 500")
#get the results from bfast
#adjusting h lower will result in more breakpoints
GSPC.bfast <- bfast(GSPC.ts,h=0.2,max.iter=1,season="none")
plot(GSPC.bfast,type="components",ylim=c(3,max(GSPC.monthly)+1),main="S&P 500 with bfast Breakpoints and Components")
plot(GSPC.bfast,type="trend",ylim=c(3,max(GSPC.monthly)+1),main="S&P 500 with bfast Trend Breakpoints")
#see everything with type="all" but in bfast calculation set seasonal to "none"
#play away with this
#plot(GSPC.bfast,type="all")
#do some additional plotting
#[[1]] is used since for speed I only did one iteration
#could plot each iteration if I did multiple
plot(GSPC.bfast$Yt/GSPC.bfast$output[[1]]$Tt-1,
main="bfast Remainder as % of S&P 500 Price",
xlab=NA, ylab="remainder (% of price)",bty="l")
#add vertical line for the breakpoints
abline(v=breakdates(GSPC.bfast$output[[1]]$bp.Vt),col="gray70")
#add horizontal line at 0
abline(h=0,col="black",lty=2)
text(x=breakdates(GSPC.bfast$output[[1]]$bp.Vt),y=par("usr")[3]+.01,
labels=breakdates(GSPC.bfast$output[[1]]$bp.Vt,format.times=TRUE),
srt=90,pos=4,cex=0.75)
require(rCharts)
options(viewer=NULL)
bfast.df <- data.frame(
date = format(index(as.xts(GSPC.bfast$output[[1]]$Tt)),"%Y-%m-%d")#as.Date(index(as.xts(GSPC.bfast$output[[1]]$Tt)))
,bfast = as.numeric(GSPC.bfast$output[[1]]$Tt)
)
#just use dimple to start
dBfast <- dPlot(
price ~ date,
data = data.frame(
date = format(as.Date(index(GSPC.monthly)),"%Y-%m-%d"),#as.numeric(as.Date(index(GSPC.monthly)))
price = as.numeric(GSPC.monthly)
),
type = "line"
)
#set up a time based x axis
dBfast$xAxis(
#type = "addCategoryAxis",
type = "addTimeAxis"
,inputFormat = "%Y-%m-%d"
,outputFormat = "%Y"
)
dBfast$yAxis(
overrideMin = 0,
overrideMax = 8
)
dBfast
#add the bfast layer
#with new dataset for layer
dBfast$templates$script = "../rCharts/inst/libraries/dimple/layouts/chart.html"
dBfast$layer(
x = "date",
y = "bfast",
data = bfast.df,
type = "line"
)
dBfast
# various cleanup experiments
# what should be in dimple/rCharts by default
# or made easier
dBfast$setTemplate(
afterScript = '
<script>
myChart.series[2].shapes
.transition().duration(10).delay(1000)
.style("stroke","#AD5277")
.style("stroke-dasharray",[10,5])
//delete some of the ticks
myChart.svg.select(".axis").selectAll(".tick")[0].forEach(function(d,i){
if (!(+d3.time.format("%Y")(new Date(+d3.select(d).datum())) % 10 == 0)) {
d.remove()
}
})
myChart.svg.select(".axis").selectAll(".tick text")
.attr("transform","none")
.style("text-anchor","middle");
</script>
'
)
dBfast
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://dimplejs.org/dist/dimple.v1.1.5.min.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
}
.tooltip {
opacity:1;
}
</style>
</head>
<body >
<div id = 'chart35607324f46' class = 'rChart dimple'></div>
<script type="text/javascript">
var opts = {
"dom": "chart35607324f46",
"width": 800,
"height": 400,
"xAxis": {
"type": "addTimeAxis",
"showPercent": false,
"inputFormat": "%Y-%m-%d",
"outputFormat": "%Y"
},
"yAxis": {
"type": "addMeasureAxis",
"showPercent": false,
"overrideMin": 0,
"overrideMax": 8
},
"zAxis": [],
"colorAxis": [],
"defaultColors": [],
"layers": [
{
"x": "date",
"y": "bfast",
"data": {
"date": [ "1951-01-01", "1951-02-01", "1951-03-01", "1951-04-01", "1951-05-01", "1951-06-01", "1951-07-01", "1951-08-01", "1951-09-01", "1951-10-01", "1951-11-01", "1951-12-01", "1952-01-01", "1952-02-01", "1952-03-01", "1952-04-01", "1952-05-01", "1952-06-01", "1952-07-01", "1952-08-01", "1952-09-01", "1952-10-01", "1952-11-01", "1952-12-01", "1953-01-01", "1953-02-01", "1953-03-01", "1953-04-01", "1953-05-01", "1953-06-01", "1953-07-01", "1953-08-01", "1953-09-01", "1953-10-01", "1953-11-01", "1953-12-01", "1954-01-01", "1954-02-01", "1954-03-01", "1954-04-01", "1954-05-01", "1954-06-01", "1954-07-01", "1954-08-01", "1954-09-01", "1954-10-01", "1954-11-01", "1954-12-01", "1955-01-01", "1955-02-01", "1955-03-01", "1955-04-01", "1955-05-01", "1955-06-01", "1955-07-01", "1955-08-01", "1955-09-01", "1955-10-01", "1955-11-01", "1955-12-01", "1956-01-01", "1956-02-01", "1956-03-01", "1956-04-01", "1956-05-01", "1956-06-01", "1956-07-01", "1956-08-01", "1956-09-01", "1956-10-01", "1956-11-01", "1956-12-01", "1957-01-01", "1957-02-01", "1957-03-01", "1957-04-01", "1957-05-01", "1957-06-01", "1957-07-01", "1957-08-01", "1957-09-01", "1957-10-01", "1957-11-01", "1957-12-01", "1958-01-01", "1958-02-01", "1958-03-01", "1958-04-01", "1958-05-01", "1958-06-01", "1958-07-01", "1958-08-01", "1958-09-01", "1958-10-01", "1958-11-01", "1958-12-01", "1959-01-01", "1959-02-01", "1959-03-01", "1959-04-01", "1959-05-01", "1959-06-01", "1959-07-01", "1959-08-01", "1959-09-01", "1959-10-01", "1959-11-01", "1959-12-01", "1960-01-01", "1960-02-01", "1960-03-01", "1960-04-01", "1960-05-01", "1960-06-01", "1960-07-01", "1960-08-01", "1960-09-01", "1960-10-01", "1960-11-01", "1960-12-01", "1961-01-01", "1961-02-01", "1961-03-01", "1961-04-01", "1961-05-01", "1961-06-01", "1961-07-01", "1961-08-01", "1961-09-01", "1961-10-01", "1961-11-01", "1961-12-01", "1962-01-01", "1962-02-01", "1962-03-01", "1962-04-01", "1962-05-01", "1962-06-01", "1962-07-01", "1962-08-01", "1962-09-01", "1962-10-01", "1962-11-01", "1962-12-01", "1963-01-01", "1963-02-01", "1963-03-01", "1963-04-01", "1963-05-01", "1963-06-01", "1963-07-01", "1963-08-01", "1963-09-01", "1963-10-01", "1963-11-01", "1963-12-01", "1964-01-01", "1964-02-01", "1964-03-01", "1964-04-01", "1964-05-01", "1964-06-01", "1964-07-01", "1964-08-01", "1964-09-01", "1964-10-01", "1964-11-01", "1964-12-01", "1965-01-01", "1965-02-01", "1965-03-01", "1965-04-01", "1965-05-01", "1965-06-01", "1965-07-01", "1965-08-01", "1965-09-01", "1965-10-01", "1965-11-01", "1965-12-01", "1966-01-01", "1966-02-01", "1966-03-01", "1966-04-01", "1966-05-01", "1966-06-01", "1966-07-01", "1966-08-01", "1966-09-01", "1966-10-01", "1966-11-01", "1966-12-01", "1967-01-01", "1967-02-01", "1967-03-01", "1967-04-01", "1967-05-01", "1967-06-01", "1967-07-01", "1967-08-01", "1967-09-01", "1967-10-01", "1967-11-01", "1967-12-01", "1968-01-01", "1968-02-01", "1968-03-01", "1968-04-01", "1968-05-01", "1968-06-01", "1968-07-01", "1968-08-01", "1968-09-01", "1968-10-01", "1968-11-01", "1968-12-01", "1969-01-01", "1969-02-01", "1969-03-01", "1969-04-01", "1969-05-01", "1969-06-01", "1969-07-01", "1969-08-01", "1969-09-01", "1969-10-01", "1969-11-01", "1969-12-01", "1970-01-01", "1970-02-01", "1970-03-01", "1970-04-01", "1970-05-01", "1970-06-01", "1970-07-01", "1970-08-01", "1970-09-01", "1970-10-01", "1970-11-01", "1970-12-01", "1971-01-01", "1971-02-01", "1971-03-01", "1971-04-01", "1971-05-01", "1971-06-01", "1971-07-01", "1971-08-01", "1971-09-01", "1971-10-01", "1971-11-01", "1971-12-01", "1972-01-01", "1972-02-01", "1972-03-01", "1972-04-01", "1972-05-01", "1972-06-01", "1972-07-01", "1972-08-01", "1972-09-01", "1972-10-01", "1972-11-01", "1972-12-01", "1973-01-01", "1973-02-01", "1973-03-01", "1973-04-01", "1973-05-01", "1973-06-01", "1973-07-01", "1973-08-01", "1973-09-01", "1973-10-01", "1973-11-01", "1973-12-01", "1974-01-01", "1974-02-01", "1974-03-01", "1974-04-01", "1974-05-01", "1974-06-01", "1974-07-01", "1974-08-01", "1974-09-01", "1974-10-01", "1974-11-01", "1974-12-01", "1975-01-01", "1975-02-01", "1975-03-01", "1975-04-01", "1975-05-01", "1975-06-01", "1975-07-01", "1975-08-01", "1975-09-01", "1975-10-01", "1975-11-01", "1975-12-01", "1976-01-01", "1976-02-01", "1976-03-01", "1976-04-01", "1976-05-01", "1976-06-01", "1976-07-01", "1976-08-01", "1976-09-01", "1976-10-01", "1976-11-01", "1976-12-01", "1977-01-01", "1977-02-01", "1977-03-01", "1977-04-01", "1977-05-01", "1977-06-01", "1977-07-01", "1977-08-01", "1977-09-01", "1977-10-01", "1977-11-01", "1977-12-01", "1978-01-01", "1978-02-01", "1978-03-01", "1978-04-01", "1978-05-01", "1978-06-01", "1978-07-01", "1978-08-01", "1978-09-01", "1978-10-01", "1978-11-01", "1978-12-01", "1979-01-01", "1979-02-01", "1979-03-01", "1979-04-01", "1979-05-01", "1979-06-01", "1979-07-01", "1979-08-01", "1979-09-01", "1979-10-01", "1979-11-01", "1979-12-01", "1980-01-01", "1980-02-01", "1980-03-01", "1980-04-01", "1980-05-01", "1980-06-01", "1980-07-01", "1980-08-01", "1980-09-01", "1980-10-01", "1980-11-01", "1980-12-01", "1981-01-01", "1981-02-01", "1981-03-01", "1981-04-01", "1981-05-01", "1981-06-01", "1981-07-01", "1981-08-01", "1981-09-01", "1981-10-01", "1981-11-01", "1981-12-01", "1982-01-01", "1982-02-01", "1982-03-01", "1982-04-01", "1982-05-01", "1982-06-01", "1982-07-01", "1982-08-01", "1982-09-01", "1982-10-01", "1982-11-01", "1982-12-01", "1983-01-01", "1983-02-01", "1983-03-01", "1983-04-01", "1983-05-01", "1983-06-01", "1983-07-01", "1983-08-01", "1983-09-01", "1983-10-01", "1983-11-01", "1983-12-01", "1984-01-01", "1984-02-01", "1984-03-01", "1984-04-01", "1984-05-01", "1984-06-01", "1984-07-01", "1984-08-01", "1984-09-01", "1984-10-01", "1984-11-01", "1984-12-01", "1985-01-01", "1985-02-01", "1985-03-01", "1985-04-01", "1985-05-01", "1985-06-01", "1985-07-01", "1985-08-01", "1985-09-01", "1985-10-01", "1985-11-01", "1985-12-01", "1986-01-01", "1986-02-01", "1986-03-01", "1986-04-01", "1986-05-01", "1986-06-01", "1986-07-01", "1986-08-01", "1986-09-01", "1986-10-01", "1986-11-01", "1986-12-01", "1987-01-01", "1987-02-01", "1987-03-01", "1987-04-01", "1987-05-01", "1987-06-01", "1987-07-01", "1987-08-01", "1987-09-01", "1987-10-01", "1987-11-01", "1987-12-01", "1988-01-01", "1988-02-01", "1988-03-01", "1988-04-01", "1988-05-01", "1988-06-01", "1988-07-01", "1988-08-01", "1988-09-01", "1988-10-01", "1988-11-01", "1988-12-01", "1989-01-01", "1989-02-01", "1989-03-01", "1989-04-01", "1989-05-01", "1989-06-01", "1989-07-01", "1989-08-01", "1989-09-01", "1989-10-01", "1989-11-01", "1989-12-01", "1990-01-01", "1990-02-01", "1990-03-01", "1990-04-01", "1990-05-01", "1990-06-01", "1990-07-01", "1990-08-01", "1990-09-01", "1990-10-01", "1990-11-01", "1990-12-01", "1991-01-01", "1991-02-01", "1991-03-01", "1991-04-01", "1991-05-01", "1991-06-01", "1991-07-01", "1991-08-01", "1991-09-01", "1991-10-01", "1991-11-01", "1991-12-01", "1992-01-01", "1992-02-01", "1992-03-01", "1992-04-01", "1992-05-01", "1992-06-01", "1992-07-01", "1992-08-01", "1992-09-01", "1992-10-01", "1992-11-01", "1992-12-01", "1993-01-01", "1993-02-01", "1993-03-01", "1993-04-01", "1993-05-01", "1993-06-01", "1993-07-01", "1993-08-01", "1993-09-01", "1993-10-01", "1993-11-01", "1993-12-01", "1994-01-01", "1994-02-01", "1994-03-01", "1994-04-01", "1994-05-01", "1994-06-01", "1994-07-01", "1994-08-01", "1994-09-01", "1994-10-01", "1994-11-01", "1994-12-01", "1995-01-01", "1995-02-01", "1995-03-01", "1995-04-01", "1995-05-01", "1995-06-01", "1995-07-01", "1995-08-01", "1995-09-01", "1995-10-01", "1995-11-01", "1995-12-01", "1996-01-01", "1996-02-01", "1996-03-01", "1996-04-01", "1996-05-01", "1996-06-01", "1996-07-01", "1996-08-01", "1996-09-01", "1996-10-01", "1996-11-01", "1996-12-01", "1997-01-01", "1997-02-01", "1997-03-01", "1997-04-01", "1997-05-01", "1997-06-01", "1997-07-01", "1997-08-01", "1997-09-01", "1997-10-01", "1997-11-01", "1997-12-01", "1998-01-01", "1998-02-01", "1998-03-01", "1998-04-01", "1998-05-01", "1998-06-01", "1998-07-01", "1998-08-01", "1998-09-01", "1998-10-01", "1998-11-01", "1998-12-01", "1999-01-01", "1999-02-01", "1999-03-01", "1999-04-01", "1999-05-01", "1999-06-01", "1999-07-01", "1999-08-01", "1999-09-01", "1999-10-01", "1999-11-01", "1999-12-01", "2000-01-01", "2000-02-01", "2000-03-01", "2000-04-01", "2000-05-01", "2000-06-01", "2000-07-01", "2000-08-01", "2000-09-01", "2000-10-01", "2000-11-01", "2000-12-01", "2001-01-01", "2001-02-01", "2001-03-01", "2001-04-01", "2001-05-01", "2001-06-01", "2001-07-01", "2001-08-01", "2001-09-01", "2001-10-01", "2001-11-01", "2001-12-01", "2002-01-01", "2002-02-01", "2002-03-01", "2002-04-01", "2002-05-01", "2002-06-01", "2002-07-01", "2002-08-01", "2002-09-01", "2002-10-01", "2002-11-01", "2002-12-01", "2003-01-01", "2003-02-01", "2003-03-01", "2003-04-01", "2003-05-01", "2003-06-01", "2003-07-01", "2003-08-01", "2003-09-01", "2003-10-01", "2003-11-01", "2003-12-01", "2004-01-01", "2004-02-01", "2004-03-01", "2004-04-01", "2004-05-01", "2004-06-01", "2004-07-01", "2004-08-01", "2004-09-01", "2004-10-01", "2004-11-01", "2004-12-01", "2005-01-01", "2005-02-01", "2005-03-01", "2005-04-01", "2005-05-01", "2005-06-01", "2005-07-01", "2005-08-01", "2005-09-01", "2005-10-01", "2005-11-01", "2005-12-01", "2006-01-01", "2006-02-01", "2006-03-01", "2006-04-01", "2006-05-01", "2006-06-01", "2006-07-01", "2006-08-01", "2006-09-01", "2006-10-01", "2006-11-01", "2006-12-01", "2007-01-01", "2007-02-01", "2007-03-01", "2007-04-01", "2007-05-01", "2007-06-01", "2007-07-01", "2007-08-01", "2007-09-01", "2007-10-01", "2007-11-01", "2007-12-01", "2008-01-01", "2008-02-01", "2008-03-01", "2008-04-01", "2008-05-01", "2008-06-01", "2008-07-01", "2008-08-01", "2008-09-01", "2008-10-01", "2008-11-01", "2008-12-01", "2009-01-01", "2009-02-01", "2009-03-01", "2009-04-01", "2009-05-01", "2009-06-01", "2009-07-01", "2009-08-01", "2009-09-01", "2009-10-01", "2009-11-01", "2009-12-01", "2010-01-01", "2010-02-01", "2010-03-01", "2010-04-01", "2010-05-01", "2010-06-01", "2010-07-01", "2010-08-01", "2010-09-01", "2010-10-01", "2010-11-01", "2010-12-01", "2011-01-01", "2011-02-01", "2011-03-01", "2011-04-01", "2011-05-01", "2011-06-01", "2011-07-01", "2011-08-01", "2011-09-01", "2011-10-01", "2011-11-01", "2011-12-01", "2012-01-01", "2012-02-01", "2012-03-01", "2012-04-01", "2012-05-01", "2012-06-01", "2012-07-01", "2012-08-01", "2012-09-01", "2012-10-01", "2012-11-01", "2012-12-01", "2013-01-01", "2013-02-01", "2013-03-01", "2013-04-01", "2013-05-01", "2013-06-01", "2013-07-01", "2013-08-01", "2013-09-01", "2013-10-01", "2013-11-01", "2013-12-01", "2014-01-01", "2014-02-01", "2014-03-01" ],
"bfast": [ 3.1168, 3.1249, 3.1331, 3.1412, 3.1493, 3.1574, 3.1656, 3.1737, 3.1818, 3.1899, 3.198, 3.2062, 3.2143, 3.2224, 3.2305, 3.2386, 3.2468, 3.2549, 3.263, 3.2711, 3.2792, 3.2874, 3.2955, 3.3036, 3.3117, 3.3198, 3.328, 3.3361, 3.3442, 3.3523, 3.3604, 3.3686, 3.3767, 3.3848, 3.3929, 3.401, 3.4092, 3.4173, 3.4254, 3.4335, 3.4416, 3.4498, 3.4579, 3.466, 3.4741, 3.4823, 3.4904, 3.4985, 3.5066, 3.5147, 3.5229, 3.531, 3.5391, 3.5472, 3.5553, 3.5635, 3.5716, 3.5797, 3.5878, 3.5959, 3.6041, 3.6122, 3.6203, 3.6284, 3.6365, 3.6447, 3.6528, 3.6609, 3.669, 3.6771, 3.6853, 3.6934, 3.7015, 3.7096, 3.7177, 3.7259, 3.734, 3.7421, 3.7502, 3.7584, 3.7665, 3.7746, 3.7827, 3.7908, 3.799, 3.8071, 3.8152, 3.8233, 3.8314, 3.8396, 3.8477, 3.8558, 3.8639, 3.872, 3.8802, 3.8883, 3.8964, 3.9045, 3.9126, 3.9208, 3.9289, 3.937, 3.9451, 3.9532, 3.9614, 3.9695, 3.9776, 3.9857, 3.9938, 4.002, 4.0101, 4.0182, 4.0263, 4.0344, 4.0426, 4.0507, 4.0588, 4.0669, 4.0751, 4.0832, 4.0913, 4.0994, 4.1075, 4.1157, 4.1238, 4.1319, 4.14, 4.1481, 4.1563, 4.1644, 4.1725, 4.1806, 4.1887, 4.1969, 4.205, 4.2131, 4.2212, 4.2293, 4.2375, 4.2456, 4.2537, 4.2618, 4.2699, 4.2781, 4.2862, 4.2943, 4.3024, 4.3105, 4.3187, 4.3268, 4.3349, 4.343, 4.3511, 4.3593, 4.3674, 4.3755, 4.3836, 4.3918, 4.3999, 4.408, 4.4161, 4.4242, 4.4324, 4.4405, 4.4486, 4.4567, 4.4648, 4.473, 4.4811, 4.4892, 4.4973, 4.5054, 4.5086, 4.5091, 4.5095, 4.51, 4.5105, 4.5109, 4.5114, 4.5118, 4.5123, 4.5127, 4.5132, 4.5136, 4.5141, 4.5146, 4.515, 4.5155, 4.5159, 4.5164, 4.5168, 4.5173, 4.5177, 4.5182, 4.5187, 4.5191, 4.5196, 4.52, 4.5205, 4.5209, 4.5214, 4.5218, 4.5223, 4.5228, 4.5232, 4.5237, 4.5241, 4.5246, 4.525, 4.5255, 4.5259, 4.5264, 4.5268, 4.5273, 4.5278, 4.5282, 4.5287, 4.5291, 4.5296, 4.53, 4.5305, 4.5309, 4.5314, 4.5319, 4.5323, 4.5328, 4.5332, 4.5337, 4.5341, 4.5346, 4.535, 4.5355, 4.536, 4.5364, 4.5369, 4.5373, 4.5378, 4.5382, 4.5387, 4.5391, 4.5396, 4.5401, 4.5405, 4.541, 4.5414, 4.5419, 4.5423, 4.5428, 4.5432, 4.5437, 4.5441, 4.5446, 4.5451, 4.5455, 4.546, 4.5464, 4.5469, 4.5473, 4.5478, 4.5482, 4.5487, 4.5492, 4.5496, 4.5501, 4.5505, 4.551, 4.5514, 4.5519, 4.5523, 4.5528, 4.5533, 4.5537, 4.5542, 4.5546, 4.5551, 4.5555, 4.556, 4.5564, 4.5569, 4.5574, 4.5578, 4.5583, 4.5587, 4.5592, 4.5596, 4.5601, 4.5605, 4.561, 4.5615, 4.5619, 4.5624, 4.5628, 4.5633, 4.5637, 4.5642, 4.5646, 4.5651, 4.5655, 4.566, 4.5665, 4.5669, 4.5674, 4.5678, 4.5683, 4.5687, 4.5692, 4.5696, 4.5701, 4.5706, 4.571, 4.5715, 4.5719, 4.5724, 4.5728, 4.5733, 4.5737, 4.5742, 4.5747, 4.5751, 4.5756, 4.576, 4.5765, 4.5769, 4.5774, 4.5778, 4.5783, 4.5788, 4.5792, 4.5797, 4.5801, 4.5806, 4.581, 4.5815, 4.546, 4.5551, 4.5641, 4.5732, 4.5823, 4.5913, 4.6004, 4.6094, 4.6185, 4.6276, 4.6366, 4.6457, 4.6547, 4.6638, 4.6728, 4.6819, 4.691, 4.7, 4.7091, 4.7181, 4.7272, 4.7363, 4.7453, 4.7544, 4.7634, 4.7725, 4.7816, 4.7906, 4.7997, 4.8087, 4.8178, 4.8269, 4.8359, 4.845, 4.854, 4.8631, 4.8721, 4.8812, 4.8903, 4.8993, 4.9084, 4.9174, 4.9265, 4.9356, 4.9446, 4.9537, 4.9627, 4.9718, 4.9809, 4.9899, 4.999, 5.008, 5.0171, 5.0262, 5.0352, 5.0443, 5.0533, 5.0624, 5.0714, 5.0805, 5.0896, 5.0986, 5.1077, 5.1167, 5.1258, 5.1349, 5.1439, 5.153, 5.162, 5.1711, 5.1802, 5.1892, 5.1983, 5.2073, 5.2164, 5.2255, 5.2345, 5.2436, 5.2526, 5.2617, 5.2707, 5.2798, 5.2889, 5.2979, 5.307, 5.316, 5.3251, 5.3342, 5.3432, 5.3523, 5.3613, 5.3704, 5.3795, 5.3885, 5.3976, 5.4066, 5.4157, 5.4248, 5.4338, 5.4429, 5.4519, 5.461, 5.47, 5.4791, 5.4882, 5.4972, 5.5063, 5.5153, 5.5244, 5.5335, 5.5425, 5.5516, 5.5606, 5.5697, 5.5788, 5.5878, 5.5969, 5.6059, 5.615, 5.6241, 5.6331, 5.6422, 5.6512, 5.6603, 5.6693, 5.6784, 5.6875, 5.6965, 5.7056, 5.7146, 5.7237, 5.7328, 5.7418, 5.7509, 5.7599, 5.769, 5.7781, 5.7871, 5.7962, 5.8052, 5.8143, 5.8234, 5.8324, 5.8415, 5.8505, 5.8596, 5.8687, 5.8777, 5.8868, 5.8958, 5.9049, 5.9139, 5.923, 5.9321, 5.9411, 5.9502, 5.9592, 5.9683, 5.9774, 5.9864, 5.9955, 6.0045, 6.0136, 6.0227, 6.0317, 6.0408, 6.0498, 6.0589, 6.068, 6.077, 6.0861, 6.0951, 6.1042, 6.1132, 6.1223, 6.1314, 6.1404, 6.1495, 6.1585, 6.1676, 6.1767, 6.1857, 6.1948, 6.2038, 6.2129, 6.222, 6.231, 6.2401, 6.2491, 6.2582, 6.2673, 6.2763, 6.2854, 6.2944, 6.3035, 6.3125, 6.3216, 6.3307, 6.3397, 6.3488, 6.3578, 6.3669, 6.376, 6.385, 6.3941, 6.4031, 6.4122, 6.4213, 6.4303, 6.4394, 6.4484, 6.4575, 6.4666, 6.4756, 6.4847, 6.4937, 6.5028, 6.5118, 6.5209, 6.53, 6.539, 6.5481, 6.5571, 6.5662, 6.9818, 6.983, 6.9842, 6.9854, 6.9865, 6.9877, 6.9889, 6.9901, 6.9912, 6.9924, 6.9936, 6.9948, 6.996, 6.9971, 6.9983, 6.9995, 7.0007, 7.0018, 7.003, 7.0042, 7.0054, 7.0065, 7.0077, 7.0089, 7.0101, 7.0113, 7.0124, 7.0136, 7.0148, 7.016, 7.0171, 7.0183, 7.0195, 7.0207, 7.0218, 7.023, 7.0242, 7.0254, 7.0266, 7.0277, 7.0289, 7.0301, 7.0313, 7.0324, 7.0336, 7.0348, 7.036, 7.0371, 7.0383, 7.0395, 7.0407, 7.0419, 7.043, 7.0442, 7.0454, 7.0466, 7.0477, 7.0489, 7.0501, 7.0513, 7.0525, 7.0536, 7.0548, 7.056, 7.0572, 7.0583, 7.0595, 7.0607, 7.0619, 7.063, 7.0642, 7.0654, 7.0666, 7.0678, 7.0689, 7.0701, 7.0713, 7.0725, 7.0736, 7.0748, 7.076, 7.0772, 7.0783, 7.0795, 7.0807, 7.0819, 7.0831, 7.0842, 7.0854, 7.0866, 7.0878, 7.0889, 7.0901, 7.0913, 7.0925, 7.0937, 7.0948, 7.096, 7.0972, 7.0984, 7.0995, 7.1007, 7.1019, 7.1031, 7.1042, 7.1054, 7.1066, 7.1078, 7.109, 7.1101, 7.1113, 7.1125, 7.1137, 7.1148, 7.116, 7.1172, 7.1184, 7.1195, 7.1207, 7.1219, 7.1231, 7.1243, 7.1254, 7.1266, 7.1278, 7.129, 7.1301, 7.1313, 7.1325, 7.1337, 7.1348, 7.136, 7.1372, 7.1384, 7.1396, 7.1407, 7.1419, 7.1431, 7.1443, 7.1454, 7.1466, 7.1478, 7.149, 7.1502, 7.1513, 7.1525, 7.1537, 7.1549, 7.156, 7.1572, 7.1584, 7.1596, 7.1607, 7.1619, 7.1631, 7.1643, 7.1655, 7.1666, 7.1678, 7.169, 7.1702, 7.1713, 7.1725, 7.1737, 7.1749, 7.176, 7.1772, 7.1784, 7.1796, 7.1808, 7.1819, 7.1831, 7.1843, 7.1855, 7.1866, 7.1878, 7.189, 7.1902, 7.1914, 7.1925, 7.1937, 7.1949, 7.1961, 7.1972, 7.1984, 7.1996, 7.2008, 7.2019, 7.2031, 7.2043, 7.2055, 7.2067, 7.2078, 7.209, 7.2102, 7.2114, 7.2125, 7.2137, 7.2149, 7.2161, 7.2172, 7.2184 ]
},
"facet": null,
"type": "line"
},
{
"x": "date",
"y": "bfast",
"data": {
"date": [ "1951-01-01", "1951-02-01", "1951-03-01", "1951-04-01", "1951-05-01", "1951-06-01", "1951-07-01", "1951-08-01", "1951-09-01", "1951-10-01", "1951-11-01", "1951-12-01", "1952-01-01", "1952-02-01", "1952-03-01", "1952-04-01", "1952-05-01", "1952-06-01", "1952-07-01", "1952-08-01", "1952-09-01", "1952-10-01", "1952-11-01", "1952-12-01", "1953-01-01", "1953-02-01", "1953-03-01", "1953-04-01", "1953-05-01", "1953-06-01", "1953-07-01", "1953-08-01", "1953-09-01", "1953-10-01", "1953-11-01", "1953-12-01", "1954-01-01", "1954-02-01", "1954-03-01", "1954-04-01", "1954-05-01", "1954-06-01", "1954-07-01", "1954-08-01", "1954-09-01", "1954-10-01", "1954-11-01", "1954-12-01", "1955-01-01", "1955-02-01", "1955-03-01", "1955-04-01", "1955-05-01", "1955-06-01", "1955-07-01", "1955-08-01", "1955-09-01", "1955-10-01", "1955-11-01", "1955-12-01", "1956-01-01", "1956-02-01", "1956-03-01", "1956-04-01", "1956-05-01", "1956-06-01", "1956-07-01", "1956-08-01", "1956-09-01", "1956-10-01", "1956-11-01", "1956-12-01", "1957-01-01", "1957-02-01", "1957-03-01", "1957-04-01", "1957-05-01", "1957-06-01", "1957-07-01", "1957-08-01", "1957-09-01", "1957-10-01", "1957-11-01", "1957-12-01", "1958-01-01", "1958-02-01", "1958-03-01", "1958-04-01", "1958-05-01", "1958-06-01", "1958-07-01", "1958-08-01", "1958-09-01", "1958-10-01", "1958-11-01", "1958-12-01", "1959-01-01", "1959-02-01", "1959-03-01", "1959-04-01", "1959-05-01", "1959-06-01", "1959-07-01", "1959-08-01", "1959-09-01", "1959-10-01", "1959-11-01", "1959-12-01", "1960-01-01", "1960-02-01", "1960-03-01", "1960-04-01", "1960-05-01", "1960-06-01", "1960-07-01", "1960-08-01", "1960-09-01", "1960-10-01", "1960-11-01", "1960-12-01", "1961-01-01", "1961-02-01", "1961-03-01", "1961-04-01", "1961-05-01", "1961-06-01", "1961-07-01", "1961-08-01", "1961-09-01", "1961-10-01", "1961-11-01", "1961-12-01", "1962-01-01", "1962-02-01", "1962-03-01", "1962-04-01", "1962-05-01", "1962-06-01", "1962-07-01", "1962-08-01", "1962-09-01", "1962-10-01", "1962-11-01", "1962-12-01", "1963-01-01", "1963-02-01", "1963-03-01", "1963-04-01", "1963-05-01", "1963-06-01", "1963-07-01", "1963-08-01", "1963-09-01", "1963-10-01", "1963-11-01", "1963-12-01", "1964-01-01", "1964-02-01", "1964-03-01", "1964-04-01", "1964-05-01", "1964-06-01", "1964-07-01", "1964-08-01", "1964-09-01", "1964-10-01", "1964-11-01", "1964-12-01", "1965-01-01", "1965-02-01", "1965-03-01", "1965-04-01", "1965-05-01", "1965-06-01", "1965-07-01", "1965-08-01", "1965-09-01", "1965-10-01", "1965-11-01", "1965-12-01", "1966-01-01", "1966-02-01", "1966-03-01", "1966-04-01", "1966-05-01", "1966-06-01", "1966-07-01", "1966-08-01", "1966-09-01", "1966-10-01", "1966-11-01", "1966-12-01", "1967-01-01", "1967-02-01", "1967-03-01", "1967-04-01", "1967-05-01", "1967-06-01", "1967-07-01", "1967-08-01", "1967-09-01", "1967-10-01", "1967-11-01", "1967-12-01", "1968-01-01", "1968-02-01", "1968-03-01", "1968-04-01", "1968-05-01", "1968-06-01", "1968-07-01", "1968-08-01", "1968-09-01", "1968-10-01", "1968-11-01", "1968-12-01", "1969-01-01", "1969-02-01", "1969-03-01", "1969-04-01", "1969-05-01", "1969-06-01", "1969-07-01", "1969-08-01", "1969-09-01", "1969-10-01", "1969-11-01", "1969-12-01", "1970-01-01", "1970-02-01", "1970-03-01", "1970-04-01", "1970-05-01", "1970-06-01", "1970-07-01", "1970-08-01", "1970-09-01", "1970-10-01", "1970-11-01", "1970-12-01", "1971-01-01", "1971-02-01", "1971-03-01", "1971-04-01", "1971-05-01", "1971-06-01", "1971-07-01", "1971-08-01", "1971-09-01", "1971-10-01", "1971-11-01", "1971-12-01", "1972-01-01", "1972-02-01", "1972-03-01", "1972-04-01", "1972-05-01", "1972-06-01", "1972-07-01", "1972-08-01", "1972-09-01", "1972-10-01", "1972-11-01", "1972-12-01", "1973-01-01", "1973-02-01", "1973-03-01", "1973-04-01", "1973-05-01", "1973-06-01", "1973-07-01", "1973-08-01", "1973-09-01", "1973-10-01", "1973-11-01", "1973-12-01", "1974-01-01", "1974-02-01", "1974-03-01", "1974-04-01", "1974-05-01", "1974-06-01", "1974-07-01", "1974-08-01", "1974-09-01", "1974-10-01", "1974-11-01", "1974-12-01", "1975-01-01", "1975-02-01", "1975-03-01", "1975-04-01", "1975-05-01", "1975-06-01", "1975-07-01", "1975-08-01", "1975-09-01", "1975-10-01", "1975-11-01", "1975-12-01", "1976-01-01", "1976-02-01", "1976-03-01", "1976-04-01", "1976-05-01", "1976-06-01", "1976-07-01", "1976-08-01", "1976-09-01", "1976-10-01", "1976-11-01", "1976-12-01", "1977-01-01", "1977-02-01", "1977-03-01", "1977-04-01", "1977-05-01", "1977-06-01", "1977-07-01", "1977-08-01", "1977-09-01", "1977-10-01", "1977-11-01", "1977-12-01", "1978-01-01", "1978-02-01", "1978-03-01", "1978-04-01", "1978-05-01", "1978-06-01", "1978-07-01", "1978-08-01", "1978-09-01", "1978-10-01", "1978-11-01", "1978-12-01", "1979-01-01", "1979-02-01", "1979-03-01", "1979-04-01", "1979-05-01", "1979-06-01", "1979-07-01", "1979-08-01", "1979-09-01", "1979-10-01", "1979-11-01", "1979-12-01", "1980-01-01", "1980-02-01", "1980-03-01", "1980-04-01", "1980-05-01", "1980-06-01", "1980-07-01", "1980-08-01", "1980-09-01", "1980-10-01", "1980-11-01", "1980-12-01", "1981-01-01", "1981-02-01", "1981-03-01", "1981-04-01", "1981-05-01", "1981-06-01", "1981-07-01", "1981-08-01", "1981-09-01", "1981-10-01", "1981-11-01", "1981-12-01", "1982-01-01", "1982-02-01", "1982-03-01", "1982-04-01", "1982-05-01", "1982-06-01", "1982-07-01", "1982-08-01", "1982-09-01", "1982-10-01", "1982-11-01", "1982-12-01", "1983-01-01", "1983-02-01", "1983-03-01", "1983-04-01", "1983-05-01", "1983-06-01", "1983-07-01", "1983-08-01", "1983-09-01", "1983-10-01", "1983-11-01", "1983-12-01", "1984-01-01", "1984-02-01", "1984-03-01", "1984-04-01", "1984-05-01", "1984-06-01", "1984-07-01", "1984-08-01", "1984-09-01", "1984-10-01", "1984-11-01", "1984-12-01", "1985-01-01", "1985-02-01", "1985-03-01", "1985-04-01", "1985-05-01", "1985-06-01", "1985-07-01", "1985-08-01", "1985-09-01", "1985-10-01", "1985-11-01", "1985-12-01", "1986-01-01", "1986-02-01", "1986-03-01", "1986-04-01", "1986-05-01", "1986-06-01", "1986-07-01", "1986-08-01", "1986-09-01", "1986-10-01", "1986-11-01", "1986-12-01", "1987-01-01", "1987-02-01", "1987-03-01", "1987-04-01", "1987-05-01", "1987-06-01", "1987-07-01", "1987-08-01", "1987-09-01", "1987-10-01", "1987-11-01", "1987-12-01", "1988-01-01", "1988-02-01", "1988-03-01", "1988-04-01", "1988-05-01", "1988-06-01", "1988-07-01", "1988-08-01", "1988-09-01", "1988-10-01", "1988-11-01", "1988-12-01", "1989-01-01", "1989-02-01", "1989-03-01", "1989-04-01", "1989-05-01", "1989-06-01", "1989-07-01", "1989-08-01", "1989-09-01", "1989-10-01", "1989-11-01", "1989-12-01", "1990-01-01", "1990-02-01", "1990-03-01", "1990-04-01", "1990-05-01", "1990-06-01", "1990-07-01", "1990-08-01", "1990-09-01", "1990-10-01", "1990-11-01", "1990-12-01", "1991-01-01", "1991-02-01", "1991-03-01", "1991-04-01", "1991-05-01", "1991-06-01", "1991-07-01", "1991-08-01", "1991-09-01", "1991-10-01", "1991-11-01", "1991-12-01", "1992-01-01", "1992-02-01", "1992-03-01", "1992-04-01", "1992-05-01", "1992-06-01", "1992-07-01", "1992-08-01", "1992-09-01", "1992-10-01", "1992-11-01", "1992-12-01", "1993-01-01", "1993-02-01", "1993-03-01", "1993-04-01", "1993-05-01", "1993-06-01", "1993-07-01", "1993-08-01", "1993-09-01", "1993-10-01", "1993-11-01", "1993-12-01", "1994-01-01", "1994-02-01", "1994-03-01", "1994-04-01", "1994-05-01", "1994-06-01", "1994-07-01", "1994-08-01", "1994-09-01", "1994-10-01", "1994-11-01", "1994-12-01", "1995-01-01", "1995-02-01", "1995-03-01", "1995-04-01", "1995-05-01", "1995-06-01", "1995-07-01", "1995-08-01", "1995-09-01", "1995-10-01", "1995-11-01", "1995-12-01", "1996-01-01", "1996-02-01", "1996-03-01", "1996-04-01", "1996-05-01", "1996-06-01", "1996-07-01", "1996-08-01", "1996-09-01", "1996-10-01", "1996-11-01", "1996-12-01", "1997-01-01", "1997-02-01", "1997-03-01", "1997-04-01", "1997-05-01", "1997-06-01", "1997-07-01", "1997-08-01", "1997-09-01", "1997-10-01", "1997-11-01", "1997-12-01", "1998-01-01", "1998-02-01", "1998-03-01", "1998-04-01", "1998-05-01", "1998-06-01", "1998-07-01", "1998-08-01", "1998-09-01", "1998-10-01", "1998-11-01", "1998-12-01", "1999-01-01", "1999-02-01", "1999-03-01", "1999-04-01", "1999-05-01", "1999-06-01", "1999-07-01", "1999-08-01", "1999-09-01", "1999-10-01", "1999-11-01", "1999-12-01", "2000-01-01", "2000-02-01", "2000-03-01", "2000-04-01", "2000-05-01", "2000-06-01", "2000-07-01", "2000-08-01", "2000-09-01", "2000-10-01", "2000-11-01", "2000-12-01", "2001-01-01", "2001-02-01", "2001-03-01", "2001-04-01", "2001-05-01", "2001-06-01", "2001-07-01", "2001-08-01", "2001-09-01", "2001-10-01", "2001-11-01", "2001-12-01", "2002-01-01", "2002-02-01", "2002-03-01", "2002-04-01", "2002-05-01", "2002-06-01", "2002-07-01", "2002-08-01", "2002-09-01", "2002-10-01", "2002-11-01", "2002-12-01", "2003-01-01", "2003-02-01", "2003-03-01", "2003-04-01", "2003-05-01", "2003-06-01", "2003-07-01", "2003-08-01", "2003-09-01", "2003-10-01", "2003-11-01", "2003-12-01", "2004-01-01", "2004-02-01", "2004-03-01", "2004-04-01", "2004-05-01", "2004-06-01", "2004-07-01", "2004-08-01", "2004-09-01", "2004-10-01", "2004-11-01", "2004-12-01", "2005-01-01", "2005-02-01", "2005-03-01", "2005-04-01", "2005-05-01", "2005-06-01", "2005-07-01", "2005-08-01", "2005-09-01", "2005-10-01", "2005-11-01", "2005-12-01", "2006-01-01", "2006-02-01", "2006-03-01", "2006-04-01", "2006-05-01", "2006-06-01", "2006-07-01", "2006-08-01", "2006-09-01", "2006-10-01", "2006-11-01", "2006-12-01", "2007-01-01", "2007-02-01", "2007-03-01", "2007-04-01", "2007-05-01", "2007-06-01", "2007-07-01", "2007-08-01", "2007-09-01", "2007-10-01", "2007-11-01", "2007-12-01", "2008-01-01", "2008-02-01", "2008-03-01", "2008-04-01", "2008-05-01", "2008-06-01", "2008-07-01", "2008-08-01", "2008-09-01", "2008-10-01", "2008-11-01", "2008-12-01", "2009-01-01", "2009-02-01", "2009-03-01", "2009-04-01", "2009-05-01", "2009-06-01", "2009-07-01", "2009-08-01", "2009-09-01", "2009-10-01", "2009-11-01", "2009-12-01", "2010-01-01", "2010-02-01", "2010-03-01", "2010-04-01", "2010-05-01", "2010-06-01", "2010-07-01", "2010-08-01", "2010-09-01", "2010-10-01", "2010-11-01", "2010-12-01", "2011-01-01", "2011-02-01", "2011-03-01", "2011-04-01", "2011-05-01", "2011-06-01", "2011-07-01", "2011-08-01", "2011-09-01", "2011-10-01", "2011-11-01", "2011-12-01", "2012-01-01", "2012-02-01", "2012-03-01", "2012-04-01", "2012-05-01", "2012-06-01", "2012-07-01", "2012-08-01", "2012-09-01", "2012-10-01", "2012-11-01", "2012-12-01", "2013-01-01", "2013-02-01", "2013-03-01", "2013-04-01", "2013-05-01", "2013-06-01", "2013-07-01", "2013-08-01", "2013-09-01", "2013-10-01", "2013-11-01", "2013-12-01", "2014-01-01", "2014-02-01", "2014-03-01" ],
"bfast": [ 3.1168, 3.1249, 3.1331, 3.1412, 3.1493, 3.1574, 3.1656, 3.1737, 3.1818, 3.1899, 3.198, 3.2062, 3.2143, 3.2224, 3.2305, 3.2386, 3.2468, 3.2549, 3.263, 3.2711, 3.2792, 3.2874, 3.2955, 3.3036, 3.3117, 3.3198, 3.328, 3.3361, 3.3442, 3.3523, 3.3604, 3.3686, 3.3767, 3.3848, 3.3929, 3.401, 3.4092, 3.4173, 3.4254, 3.4335, 3.4416, 3.4498, 3.4579, 3.466, 3.4741, 3.4823, 3.4904, 3.4985, 3.5066, 3.5147, 3.5229, 3.531, 3.5391, 3.5472, 3.5553, 3.5635, 3.5716, 3.5797, 3.5878, 3.5959, 3.6041, 3.6122, 3.6203, 3.6284, 3.6365, 3.6447, 3.6528, 3.6609, 3.669, 3.6771, 3.6853, 3.6934, 3.7015, 3.7096, 3.7177, 3.7259, 3.734, 3.7421, 3.7502, 3.7584, 3.7665, 3.7746, 3.7827, 3.7908, 3.799, 3.8071, 3.8152, 3.8233, 3.8314, 3.8396, 3.8477, 3.8558, 3.8639, 3.872, 3.8802, 3.8883, 3.8964, 3.9045, 3.9126, 3.9208, 3.9289, 3.937, 3.9451, 3.9532, 3.9614, 3.9695, 3.9776, 3.9857, 3.9938, 4.002, 4.0101, 4.0182, 4.0263, 4.0344, 4.0426, 4.0507, 4.0588, 4.0669, 4.0751, 4.0832, 4.0913, 4.0994, 4.1075, 4.1157, 4.1238, 4.1319, 4.14, 4.1481, 4.1563, 4.1644, 4.1725, 4.1806, 4.1887, 4.1969, 4.205, 4.2131, 4.2212, 4.2293, 4.2375, 4.2456, 4.2537, 4.2618, 4.2699, 4.2781, 4.2862, 4.2943, 4.3024, 4.3105, 4.3187, 4.3268, 4.3349, 4.343, 4.3511, 4.3593, 4.3674, 4.3755, 4.3836, 4.3918, 4.3999, 4.408, 4.4161, 4.4242, 4.4324, 4.4405, 4.4486, 4.4567, 4.4648, 4.473, 4.4811, 4.4892, 4.4973, 4.5054, 4.5086, 4.5091, 4.5095, 4.51, 4.5105, 4.5109, 4.5114, 4.5118, 4.5123, 4.5127, 4.5132, 4.5136, 4.5141, 4.5146, 4.515, 4.5155, 4.5159, 4.5164, 4.5168, 4.5173, 4.5177, 4.5182, 4.5187, 4.5191, 4.5196, 4.52, 4.5205, 4.5209, 4.5214, 4.5218, 4.5223, 4.5228, 4.5232, 4.5237, 4.5241, 4.5246, 4.525, 4.5255, 4.5259, 4.5264, 4.5268, 4.5273, 4.5278, 4.5282, 4.5287, 4.5291, 4.5296, 4.53, 4.5305, 4.5309, 4.5314, 4.5319, 4.5323, 4.5328, 4.5332, 4.5337, 4.5341, 4.5346, 4.535, 4.5355, 4.536, 4.5364, 4.5369, 4.5373, 4.5378, 4.5382, 4.5387, 4.5391, 4.5396, 4.5401, 4.5405, 4.541, 4.5414, 4.5419, 4.5423, 4.5428, 4.5432, 4.5437, 4.5441, 4.5446, 4.5451, 4.5455, 4.546, 4.5464, 4.5469, 4.5473, 4.5478, 4.5482, 4.5487, 4.5492, 4.5496, 4.5501, 4.5505, 4.551, 4.5514, 4.5519, 4.5523, 4.5528, 4.5533, 4.5537, 4.5542, 4.5546, 4.5551, 4.5555, 4.556, 4.5564, 4.5569, 4.5574, 4.5578, 4.5583, 4.5587, 4.5592, 4.5596, 4.5601, 4.5605, 4.561, 4.5615, 4.5619, 4.5624, 4.5628, 4.5633, 4.5637, 4.5642, 4.5646, 4.5651, 4.5655, 4.566, 4.5665, 4.5669, 4.5674, 4.5678, 4.5683, 4.5687, 4.5692, 4.5696, 4.5701, 4.5706, 4.571, 4.5715, 4.5719, 4.5724, 4.5728, 4.5733, 4.5737, 4.5742, 4.5747, 4.5751, 4.5756, 4.576, 4.5765, 4.5769, 4.5774, 4.5778, 4.5783, 4.5788, 4.5792, 4.5797, 4.5801, 4.5806, 4.581, 4.5815, 4.546, 4.5551, 4.5641, 4.5732, 4.5823, 4.5913, 4.6004, 4.6094, 4.6185, 4.6276, 4.6366, 4.6457, 4.6547, 4.6638, 4.6728, 4.6819, 4.691, 4.7, 4.7091, 4.7181, 4.7272, 4.7363, 4.7453, 4.7544, 4.7634, 4.7725, 4.7816, 4.7906, 4.7997, 4.8087, 4.8178, 4.8269, 4.8359, 4.845, 4.854, 4.8631, 4.8721, 4.8812, 4.8903, 4.8993, 4.9084, 4.9174, 4.9265, 4.9356, 4.9446, 4.9537, 4.9627, 4.9718, 4.9809, 4.9899, 4.999, 5.008, 5.0171, 5.0262, 5.0352, 5.0443, 5.0533, 5.0624, 5.0714, 5.0805, 5.0896, 5.0986, 5.1077, 5.1167, 5.1258, 5.1349, 5.1439, 5.153, 5.162, 5.1711, 5.1802, 5.1892, 5.1983, 5.2073, 5.2164, 5.2255, 5.2345, 5.2436, 5.2526, 5.2617, 5.2707, 5.2798, 5.2889, 5.2979, 5.307, 5.316, 5.3251, 5.3342, 5.3432, 5.3523, 5.3613, 5.3704, 5.3795, 5.3885, 5.3976, 5.4066, 5.4157, 5.4248, 5.4338, 5.4429, 5.4519, 5.461, 5.47, 5.4791, 5.4882, 5.4972, 5.5063, 5.5153, 5.5244, 5.5335, 5.5425, 5.5516, 5.5606, 5.5697, 5.5788, 5.5878, 5.5969, 5.6059, 5.615, 5.6241, 5.6331, 5.6422, 5.6512, 5.6603, 5.6693, 5.6784, 5.6875, 5.6965, 5.7056, 5.7146, 5.7237, 5.7328, 5.7418, 5.7509, 5.7599, 5.769, 5.7781, 5.7871, 5.7962, 5.8052, 5.8143, 5.8234, 5.8324, 5.8415, 5.8505, 5.8596, 5.8687, 5.8777, 5.8868, 5.8958, 5.9049, 5.9139, 5.923, 5.9321, 5.9411, 5.9502, 5.9592, 5.9683, 5.9774, 5.9864, 5.9955, 6.0045, 6.0136, 6.0227, 6.0317, 6.0408, 6.0498, 6.0589, 6.068, 6.077, 6.0861, 6.0951, 6.1042, 6.1132, 6.1223, 6.1314, 6.1404, 6.1495, 6.1585, 6.1676, 6.1767, 6.1857, 6.1948, 6.2038, 6.2129, 6.222, 6.231, 6.2401, 6.2491, 6.2582, 6.2673, 6.2763, 6.2854, 6.2944, 6.3035, 6.3125, 6.3216, 6.3307, 6.3397, 6.3488, 6.3578, 6.3669, 6.376, 6.385, 6.3941, 6.4031, 6.4122, 6.4213, 6.4303, 6.4394, 6.4484, 6.4575, 6.4666, 6.4756, 6.4847, 6.4937, 6.5028, 6.5118, 6.5209, 6.53, 6.539, 6.5481, 6.5571, 6.5662, 6.9818, 6.983, 6.9842, 6.9854, 6.9865, 6.9877, 6.9889, 6.9901, 6.9912, 6.9924, 6.9936, 6.9948, 6.996, 6.9971, 6.9983, 6.9995, 7.0007, 7.0018, 7.003, 7.0042, 7.0054, 7.0065, 7.0077, 7.0089, 7.0101, 7.0113, 7.0124, 7.0136, 7.0148, 7.016, 7.0171, 7.0183, 7.0195, 7.0207, 7.0218, 7.023, 7.0242, 7.0254, 7.0266, 7.0277, 7.0289, 7.0301, 7.0313, 7.0324, 7.0336, 7.0348, 7.036, 7.0371, 7.0383, 7.0395, 7.0407, 7.0419, 7.043, 7.0442, 7.0454, 7.0466, 7.0477, 7.0489, 7.0501, 7.0513, 7.0525, 7.0536, 7.0548, 7.056, 7.0572, 7.0583, 7.0595, 7.0607, 7.0619, 7.063, 7.0642, 7.0654, 7.0666, 7.0678, 7.0689, 7.0701, 7.0713, 7.0725, 7.0736, 7.0748, 7.076, 7.0772, 7.0783, 7.0795, 7.0807, 7.0819, 7.0831, 7.0842, 7.0854, 7.0866, 7.0878, 7.0889, 7.0901, 7.0913, 7.0925, 7.0937, 7.0948, 7.096, 7.0972, 7.0984, 7.0995, 7.1007, 7.1019, 7.1031, 7.1042, 7.1054, 7.1066, 7.1078, 7.109, 7.1101, 7.1113, 7.1125, 7.1137, 7.1148, 7.116, 7.1172, 7.1184, 7.1195, 7.1207, 7.1219, 7.1231, 7.1243, 7.1254, 7.1266, 7.1278, 7.129, 7.1301, 7.1313, 7.1325, 7.1337, 7.1348, 7.136, 7.1372, 7.1384, 7.1396, 7.1407, 7.1419, 7.1431, 7.1443, 7.1454, 7.1466, 7.1478, 7.149, 7.1502, 7.1513, 7.1525, 7.1537, 7.1549, 7.156, 7.1572, 7.1584, 7.1596, 7.1607, 7.1619, 7.1631, 7.1643, 7.1655, 7.1666, 7.1678, 7.169, 7.1702, 7.1713, 7.1725, 7.1737, 7.1749, 7.176, 7.1772, 7.1784, 7.1796, 7.1808, 7.1819, 7.1831, 7.1843, 7.1855, 7.1866, 7.1878, 7.189, 7.1902, 7.1914, 7.1925, 7.1937, 7.1949, 7.1961, 7.1972, 7.1984, 7.1996, 7.2008, 7.2019, 7.2031, 7.2043, 7.2055, 7.2067, 7.2078, 7.209, 7.2102, 7.2114, 7.2125, 7.2137, 7.2149, 7.2161, 7.2172, 7.2184 ]
},
"facet": null,
"type": "line",
"c": {
"type": "addColorAxis"
}
}
],
"legend": [],
"x": "date",
"y": "price",
"type": "line",
"id": "chart35607324f46"
},
data = [{"date":"1950-01-01","price":2.83615020372953},{"date":"1950-02-01","price":2.84607149899958},{"date":"1950-03-01","price":2.8501282996952},{"date":"1950-04-01","price":2.88814706287405},{"date":"1950-05-01","price":2.93279247378012},{"date":"1950-06-01","price":2.87299950817169},{"date":"1950-07-01","price":2.88144312715186},{"date":"1950-08-01","price":2.91343703082716},{"date":"1950-09-01","price":2.96784707006446},{"date":"1950-10-01","price":2.97195174488859},{"date":"1950-11-01","price":2.97092715463502},{"date":"1950-12-01","price":3.01700440882953},{"date":"1951-01-01","price":3.07546724157284},{"date":"1951-02-01","price":3.08190996979504},{"date":"1951-03-01","price":3.06712226964066},{"date":"1951-04-01","price":3.11039934853212},{"date":"1951-05-01","price":3.06898273529358},{"date":"1951-06-01","price":3.04261585945284},{"date":"1951-07-01","price":3.10906095886099},{"date":"1951-08-01","price":3.14759462286324},{"date":"1951-09-01","price":3.14673514709052},{"date":"1951-10-01","price":3.13288211170122},{"date":"1951-11-01","price":3.1302631665116},{"date":"1951-12-01","price":3.1684242813721},{"date":"1952-01-01","price":3.18387021566939},{"date":"1952-02-01","price":3.14673514709052},{"date":"1952-03-01","price":3.19335286763712},{"date":"1952-04-01","price":3.14931136148229},{"date":"1952-05-01","price":3.17220341666977},{"date":"1952-06-01","price":3.21727454350123},{"date":"1952-07-01","price":3.23474917402449},{"date":"1952-08-01","price":3.22007510544368},{"date":"1952-09-01","price":3.20030443928277},{"date":"1952-10-01","price":3.19948911106801},{"date":"1952-11-01","price":3.24493335918749},{"date":"1952-12-01","price":3.27978275977172},{"date":"1953-01-01","price":3.27260614728917},{"date":"1953-02-01","price":3.25424296870549},{"date":"1953-03-01","price":3.23040906068187},{"date":"1953-04-01","price":3.20355912075631},{"date":"1953-05-01","price":3.20030443928277},{"date":"1953-06-01","price":3.18387021566939},{"date":"1953-07-01","price":3.2088254890147},{"date":"1953-08-01","price":3.14931136148229},{"date":"1953-09-01","price":3.15059698411491},{"date":"1953-10-01","price":3.20030443928277},{"date":"1953-11-01","price":3.2092294478164},{"date":"1953-12-01","price":3.21124679770371},{"date":"1954-01-01","price":3.26116873705845},{"date":"1954-02-01","price":3.26384919051093},{"date":"1954-03-01","price":3.29361217098222},{"date":"1954-04-01","price":3.34144737725638},{"date":"1954-05-01","price":3.37382618486602},{"date":"1954-06-01","price":3.37451111639965},{"date":"1954-07-01","price":3.43010872515658},{"date":"1954-08-01","price":3.39551459852666},{"date":"1954-09-01","price":3.47537677983641},{"date":"1954-10-01","price":3.45568556694623},{"date":"1954-11-01","price":3.53339455127354},{"date":"1954-12-01","price":3.58296322852239},{"date":"1955-01-01","price":3.60086757679072},{"date":"1955-02-01","price":3.60441029748749},{"date":"1955-03-01","price":3.59950164296272},{"date":"1955-04-01","price":3.63653297374173},{"date":"1955-05-01","price":3.63521492952824},{"date":"1955-06-01","price":3.71430350645409},{"date":"1955-07-01","price":3.77322060254769},{"date":"1955-08-01","price":3.76537742508666},{"date":"1955-09-01","price":3.77666136749747},{"date":"1955-10-01","price":3.74573226570672},{"date":"1955-11-01","price":3.81793208202855},{"date":"1955-12-01","price":3.81727266888234},{"date":"1956-01-01","price":3.78009033416732},{"date":"1956-02-01","price":3.81418964507938},{"date":"1956-03-01","price":3.88115134176106},{"date":"1956-04-01","price":3.87908650518188},{"date":"1956-05-01","price":3.81109708683819},{"date":"1956-06-01","price":3.8495091000389},{"date":"1956-07-01","price":3.89974797455253},{"date":"1956-08-01","price":3.86094021519883},{"date":"1956-09-01","price":3.81441017656115},{"date":"1956-10-01","price":3.81946902381754},{"date":"1956-11-01","price":3.80843868917158},{"date":"1956-12-01","price":3.84310155996172},{"date":"1957-01-01","price":3.80042082884684},{"date":"1957-02-01","price":3.76722842052491},{"date":"1957-03-01","price":3.78668651411685},{"date":"1957-04-01","price":3.82297318859464},{"date":"1957-05-01","price":3.85925493988949},{"date":"1957-06-01","price":3.85798911693566},{"date":"1957-07-01","price":3.86932425089503},{"date":"1957-08-01","price":3.81153946684982},{"date":"1957-09-01","price":3.74761994913654},{"date":"1957-10-01","price":3.71503441159079},{"date":"1957-11-01","price":3.73098063013257},{"date":"1957-12-01","price":3.68862942285873},{"date":"1958-01-01","price":3.73050112880476},{"date":"1958-02-01","price":3.70966199329646},{"date":"1958-03-01","price":3.74004774068834},{"date":"1958-04-01","price":3.77138067562568},{"date":"1958-05-01","price":3.78623299936985},{"date":"1958-06-01","price":3.81198165124792},{"date":"1958-07-01","price":3.8541820057383},{"date":"1958-08-01","price":3.86597906692674},{"date":"1958-09-01","price":3.91322228600363},{"date":"1958-10-01","price":3.93827537657221},{"date":"1958-11-01","price":3.96043214463583},{"date":"1958-12-01","price":4.01114409629595},{"date":"1959-01-01","price":4.01548171379638},{"date":"1959-02-01","price":4.01476008287926},{"date":"1959-03-01","price":4.01530135488165},{"date":"1959-04-01","price":4.05334894151858},{"date":"1959-05-01","price":4.07209895327478},{"date":"1959-06-01","price":4.06851380218758},{"date":"1959-07-01","price":4.10280864063423},{"date":"1959-08-01","price":4.0876555740713},{"date":"1959-09-01","price":4.04094378549499},{"date":"1959-10-01","price":4.05213271341279},{"date":"1959-11-01","price":4.065258981327},{"date":"1959-12-01","price":4.09250954627637},{"date":"1960-01-01","price":4.01836304119947},{"date":"1960-02-01","price":4.02749225523426},{"date":"1960-03-01","price":4.01349597435878},{"date":"1960-04-01","price":3.99581253115783},{"date":"1960-05-01","price":4.02231135932227},{"date":"1960-06-01","price":4.04164677322165},{"date":"1960-07-01","price":4.01656318470207},{"date":"1960-08-01","price":4.04234926710372},{"date":"1960-09-01","price":3.98005541581997},{"date":"1960-10-01","price":3.97762346251209},{"date":"1960-11-01","price":4.01710348187865},{"date":"1960-12-01","price":4.06233776608701},{"date":"1961-01-01","price":4.12357968749044},{"date":"1961-02-01","price":4.15009457732659},{"date":"1961-03-01","price":4.17530992104521},{"date":"1961-04-01","price":4.17914516391457},{"date":"1961-05-01","price":4.19810379651295},{"date":"1961-06-01","price":4.16883341421284},{"date":"1961-07-01","price":4.20110409879363},{"date":"1961-08-01","price":4.22053658745986},{"date":"1961-09-01","price":4.20065462691552},{"date":"1961-10-01","price":4.2285840374303},{"date":"1961-11-01","price":4.26717679299494},{"date":"1961-12-01","price":4.27039650600246},{"date":"1962-01-01","price":4.23178497134334},{"date":"1962-02-01","price":4.2479236501504},{"date":"1962-03-01","price":4.24204591836945},{"date":"1962-04-01","price":4.17807277775281},{"date":"1962-05-01","price":4.08815880313501},{"date":"1962-06-01","price":4.00277736869661},{"date":"1962-07-01","price":4.06440068584903},{"date":"1962-08-01","price":4.07956927663995},{"date":"1962-09-01","price":4.03016153344519},{"date":"1962-10-01","price":4.03459455781633},{"date":"1962-11-01","price":4.13131916501346},{"date":"1962-12-01","price":4.14472076954717},{"date":"1963-01-01","price":4.19268046294296},{"date":"1963-02-01","price":4.1634040981536},{"date":"1963-03-01","price":4.19825402561261},{"date":"1963-04-01","price":4.24563400976833},{"date":"1963-05-01","price":4.25985900069967},{"date":"1963-06-01","price":4.23945449739721},{"date":"1963-07-01","price":4.23598878995717},{"date":"1963-08-01","price":4.28358656186063},{"date":"1963-09-01","price":4.27249074760558},{"date":"1963-10-01","price":4.30420021920937},{"date":"1963-11-01","price":4.29360517307298},{"date":"1963-12-01","price":4.31775474465374},{"date":"1964-01-01","price":4.34432476748987},{"date":"1964-02-01","price":4.35414143118435},{"date":"1964-03-01","price":4.3691946558585},{"date":"1964-04-01","price":4.37525375038645},{"date":"1964-05-01","price":4.38664097222463},{"date":"1964-06-01","price":4.40293159535378},{"date":"1964-07-01","price":4.42100693431477},{"date":"1964-08-01","price":4.40464392453929},{"date":"1964-09-01","price":4.43295736334242},{"date":"1964-10-01","price":4.44100283977418},{"date":"1964-11-01","price":4.43580434035435},{"date":"1964-12-01","price":4.43970574626056},{"date":"1965-01-01","price":4.47232427265466},{"date":"1965-02-01","price":4.4708384731928},{"date":"1965-03-01","price":4.45620603284813},{"date":"1965-04-01","price":4.48987156162463},{"date":"1965-05-01","price":4.4820981883981},{"date":"1965-06-01","price":4.4322443508345},{"date":"1965-07-01","price":4.44558811616363},{"date":"1965-08-01","price":4.46786023502349},{"date":"1965-09-01","price":4.49936512709111},{"date":"1965-10-01","price":4.52634340544212},{"date":"1965-11-01","price":4.51754043602712},{"date":"1965-12-01","price":4.52645160127669},{"date":"1966-01-01","price":4.53130833738964},{"date":"1966-02-01","price":4.51327417128355},{"date":"1966-03-01","price":4.49121730591206},{"date":"1966-04-01","price":4.51151862990664},{"date":"1966-05-01","price":4.45585778280108},{"date":"1966-06-01","price":4.43958774519841},{"date":"1966-07-01","price":4.42604352009066},{"date":"1966-08-01","price":4.34510328056928},{"date":"1966-09-01","price":4.3380747471447},{"date":"1966-10-01","price":4.38452351487247},{"date":"1966-11-01","price":4.38763587343839},{"date":"1966-12-01","price":4.38614315018572},{"date":"1967-01-01","price":4.46141528234295},{"date":"1967-02-01","price":4.4633761803702},{"date":"1967-03-01","price":4.50202942706858},{"date":"1967-04-01","price":4.54340115959046},{"date":"1967-05-01","price":4.48953484238917},{"date":"1967-06-01","price":4.50689561671975},{"date":"1967-07-01","price":4.55124184396254},{"date":"1967-08-01","price":4.53945764262271},{"date":"1967-09-01","price":4.57171680972887},{"date":"1967-10-01","price":4.5358201078533},{"date":"1967-11-01","price":4.54329478227},{"date":"1967-12-01","price":4.56923207918246},{"date":"1968-01-01","price":4.5243938759608},{"date":"1968-02-01","price":4.49267315476095},{"date":"1968-03-01","price":4.50202942706858},{"date":"1968-04-01","price":4.57944203741536},{"date":"1968-05-01","price":4.59188229166116},{"date":"1968-06-01","price":4.60096134121404},{"date":"1968-07-01","price":4.58231089184201},{"date":"1968-08-01","price":4.59370470787881},{"date":"1968-09-01","price":4.63151996131087},{"date":"1968-10-01","price":4.63870166919688},{"date":"1968-11-01","price":4.6855512979349},{"date":"1968-12-01","price":4.64304383841617},{"date":"1969-01-01","price":4.6348260708956},{"date":"1969-02-01","price":4.5862931302184},{"date":"1969-03-01","price":4.62015731579634},{"date":"1969-04-01","price":4.64140567857019},{"date":"1969-05-01","price":4.63918506457537},{"date":"1969-06-01","price":4.58200390795625},{"date":"1969-07-01","price":4.51993904162543},{"date":"1969-08-01","price":4.55923095404665},{"date":"1969-09-01","price":4.53388898398313},{"date":"1969-10-01","price":4.57594732731119},{"date":"1969-11-01","price":4.54127146013786},{"date":"1969-12-01","price":4.5224405383891},{"date":"1970-01-01","price":4.44288652293064},{"date":"1970-02-01","price":4.49423862528081},{"date":"1970-03-01","price":4.49569008536927},{"date":"1970-04-01","price":4.40084838891447},{"date":"1970-05-01","price":4.33794412210369},{"date":"1970-06-01","price":4.28661644986922},{"date":"1970-07-01","price":4.35734964696144},{"date":"1970-08-01","price":4.40084838891447},{"date":"1970-09-01","price":4.43438186500781},{"date":"1970-10-01","price":4.42184812886055},{"date":"1970-11-01","price":4.46820433091493},{"date":"1970-12-01","price":4.52341768411583},{"date":"1971-01-01","price":4.56309740956618},{"date":"1971-02-01","price":4.57213033190989},{"date":"1971-03-01","price":4.60826539089539},{"date":"1971-04-01","price":4.64391001430402},{"date":"1971-05-01","price":4.60146332405677},{"date":"1971-06-01","price":4.59208494643944},{"date":"1971-07-01","price":4.55996359315001},{"date":"1971-08-01","price":4.59542283453321},{"date":"1971-09-01","price":4.58843086198379},{"date":"1971-10-01","price":4.54573860221867},{"date":"1971-11-01","price":4.54318839363221},{"date":"1971-12-01","price":4.62585477718092},{"date":"1972-01-01","price":4.6438138095803},{"date":"1972-02-01","price":4.66880204623287},{"date":"1972-03-01","price":4.6746962486367},{"date":"1972-04-01","price":4.67907099382763},{"date":"1972-05-01","price":4.69619848433566},{"date":"1972-06-01","price":4.67413639045281},{"date":"1972-07-01","price":4.67646706787013},{"date":"1972-08-01","price":4.71034068359363},{"date":"1972-09-01","price":4.70546790730346},{"date":"1972-10-01","price":4.71474182241738},{"date":"1972-11-01","price":4.75934943683577},{"date":"1972-12-01","price":4.77110826353152},{"date":"1973-01-01","price":4.75384877835945},{"date":"1973-02-01","price":4.71563763901406},{"date":"1973-03-01","price":4.71420394701221},{"date":"1973-04-01","price":4.67254842131804},{"date":"1973-05-01","price":4.65348404626664},{"date":"1973-06-01","price":4.64688777933996},{"date":"1973-07-01","price":4.68416619221459},{"date":"1973-08-01","price":4.64679186067891},{"date":"1973-09-01","price":4.68610480348409},{"date":"1973-10-01","price":4.68481281364029},{"date":"1973-11-01","price":4.56393143797149},{"date":"1973-12-01","price":4.58036506706912},{"date":"1974-01-01","price":4.57026813397883},{"date":"1974-02-01","price":4.56663723627131},{"date":"1974-03-01","price":4.54308199367467},{"date":"1974-04-01","price":4.50324819626271},{"date":"1974-05-01","price":4.46912134152482},{"date":"1974-06-01","price":4.45434729625351},{"date":"1974-07-01","price":4.37336422409523},{"date":"1974-08-01","price":4.27874728521988},{"date":"1974-09-01","price":4.15166962884137},{"date":"1974-10-01","price":4.30271282795416},{"date":"1974-11-01","price":4.2480665787578},{"date":"1974-12-01","price":4.22770927428952},{"date":"1975-01-01","price":4.3435456478556},{"date":"1975-02-01","price":4.40170670544071},{"date":"1975-03-01","price":4.42316857800506},{"date":"1975-04-01","price":4.46935046284556},{"date":"1975-05-01","price":4.51250650112467},{"date":"1975-06-01","price":4.55587489426321},{"date":"1975-07-01","price":4.48582342835553},{"date":"1975-08-01","price":4.46452785618563},{"date":"1975-09-01","price":4.42926798099632},{"date":"1975-10-01","price":4.48908570696729},{"date":"1975-11-01","price":4.51349339741619},{"date":"1975-12-01","price":4.50191855617762},{"date":"1976-01-01","price":4.61373341664858},{"date":"1976-02-01","price":4.6022659728407},{"date":"1976-03-01","price":4.63249348163698},{"date":"1976-04-01","price":4.62143715845196},{"date":"1976-05-01","price":4.60696856792947},{"date":"1976-06-01","price":4.6470795890653},{"date":"1976-07-01","price":4.6389917344636},{"date":"1976-08-01","price":4.633854819848},{"date":"1976-09-01","price":4.65624345617209},{"date":"1976-10-01","price":4.63375764284},{"date":"1976-11-01","price":4.62595272517062},{"date":"1976-12-01","price":4.67711868530068},{"date":"1977-01-01","price":4.62526688768721},{"date":"1977-02-01","price":4.60336856404146},{"date":"1977-03-01","price":4.58924403543783},{"date":"1977-04-01","price":4.58944722552286},{"date":"1977-05-01","price":4.56559741086827},{"date":"1977-06-01","price":4.60995870271989},{"date":"1977-07-01","price":4.59360354961663},{"date":"1977-08-01","price":4.57233702889285},{"date":"1977-09-01","price":4.56985384086052},{"date":"1977-10-01","price":4.52547741707884},{"date":"1977-11-01","price":4.55208581489564},{"date":"1977-12-01","price":4.55492896955134},{"date":"1978-01-01","price":4.49144142065975},{"date":"1978-02-01","price":4.46636778310763},{"date":"1978-03-01","price":4.49099314092569},{"date":"1978-04-01","price":4.57295686362344},{"date":"1978-05-01","price":4.57718214944792},{"date":"1978-06-01","price":4.55944033428192},{"date":"1978-07-01","price":4.61194717026711},{"date":"1978-08-01","price":4.63754056601854},{"date":"1978-09-01","price":4.63025296635555},{"date":"1978-10-01","price":4.5342110970476},{"date":"1978-11-01","price":4.55071400019203},{"date":"1978-12-01","price":4.56549336883519},{"date":"1979-01-01","price":4.6044699408737},{"date":"1979-02-01","price":4.56726061291487},{"date":"1979-03-01","price":4.62094510510345},{"date":"1979-04-01","price":4.62261709959181},{"date":"1979-05-01","price":4.59592760462116},{"date":"1979-06-01","price":4.633854819848},{"date":"1979-07-01","price":4.64256230520515},{"date":"1979-08-01","price":4.69427936105987},{"date":"1979-09-01","price":4.69427936105987},{"date":"1979-10-01","price":4.62320654847419},{"date":"1979-11-01","price":4.66494739002395},{"date":"1979-12-01","price":4.6815755171905},{"date":"1980-01-01","price":4.73760097316858},{"date":"1980-02-01","price":4.73321153586898},{"date":"1980-03-01","price":4.62585477718092},{"date":"1980-04-01","price":4.66617120754549},{"date":"1980-05-01","price":4.71169002936576},{"date":"1980-06-01","price":4.73830149859127},{"date":"1980-07-01","price":4.80131246179936},{"date":"1980-08-01","price":4.80713095803439},{"date":"1980-09-01","price":4.8319869826686},{"date":"1980-10-01","price":4.84788104279483},{"date":"1980-11-01","price":4.94534982739763},{"date":"1980-12-01","price":4.91088862092597},{"date":"1981-01-01","price":4.86406690700812},{"date":"1981-02-01","price":4.87725627081532},{"date":"1981-03-01","price":4.91265488573605},{"date":"1981-04-01","price":4.88891953541216},{"date":"1981-05-01","price":4.88726166012663},{"date":"1981-06-01","price":4.87679909311762},{"date":"1981-07-01","price":4.87458644963298},{"date":"1981-08-01","price":4.81047557917242},{"date":"1981-09-01","price":4.75514071256439},{"date":"1981-10-01","price":4.80311899866775},{"date":"1981-11-01","price":4.8390558338342},{"date":"1981-12-01","price":4.80851910997412},{"date":"1982-01-01","price":4.79081953287472},{"date":"1982-02-01","price":4.72836079654329},{"date":"1982-03-01","price":4.71814166464725},{"date":"1982-04-01","price":4.75737611887742},{"date":"1982-05-01","price":4.71742686833376},{"date":"1982-06-01","price":4.69692861122763},{"date":"1982-07-01","price":4.67366960241278},{"date":"1982-08-01","price":4.78340004987879},{"date":"1982-09-01","price":4.7909856320363},{"date":"1982-10-01","price":4.8957480615519},{"date":"1982-11-01","price":4.93108690866979},{"date":"1982-12-01","price":4.94620343393687},{"date":"1983-01-01","price":4.97880057057624},{"date":"1983-02-01","price":4.99761759701495},{"date":"1983-03-01","price":5.03017644930309},{"date":"1983-04-01","price":5.10248494772613},{"date":"1983-05-01","price":5.090000849477},{"date":"1983-06-01","price":5.12181882305687},{"date":"1983-07-01","price":5.09104716439012},{"date":"1983-08-01","price":5.10230248262208},{"date":"1983-09-01","price":5.11240938621866},{"date":"1983-10-01","price":5.09711875398439},{"date":"1983-11-01","price":5.11439452838711},{"date":"1983-12-01","price":5.10552114146006},{"date":"1984-01-01","price":5.09626238006369},{"date":"1984-02-01","price":5.05662789794673},{"date":"1984-03-01","price":5.0700356373777},{"date":"1984-04-01","price":5.07548626641587},{"date":"1984-05-01","price":5.01429525492774},{"date":"1984-06-01","price":5.03161370048145},{"date":"1984-07-01","price":5.01502564239755},{"date":"1984-08-01","price":5.11607580655425},{"date":"1984-09-01","price":5.11259001661925},{"date":"1984-10-01","price":5.11252981011091},{"date":"1984-11-01","price":5.09730216730683},{"date":"1984-12-01","price":5.11942990648836},{"date":"1985-01-01","price":5.19089917978074},{"date":"1985-02-01","price":5.19949101224114},{"date":"1985-03-01","price":5.1966168117217},{"date":"1985-04-01","price":5.19201196017711},{"date":"1985-05-01","price":5.24465284196234},{"date":"1985-06-01","price":5.25671381669296},{"date":"1985-07-01","price":5.2518544921377},{"date":"1985-08-01","price":5.23978742435763},{"date":"1985-09-01","price":5.20444615093797},{"date":"1985-10-01","price":5.24607625470235},{"date":"1985-11-01","price":5.30910892762624},{"date":"1985-12-01","price":5.35318426798888},{"date":"1986-01-01","price":5.35554800000231},{"date":"1986-02-01","price":5.42459753245837},{"date":"1986-03-01","price":5.47604505433176},{"date":"1986-04-01","price":5.46179583554051},{"date":"1986-05-01","price":5.51080433767372},{"date":"1986-06-01","price":5.52481528567482},{"date":"1986-07-01","price":5.46434015037249},{"date":"1986-08-01","price":5.53311277060269},{"date":"1986-09-01","price":5.44380203329002},{"date":"1986-10-01","price":5.49708625472059},{"date":"1986-11-01","price":5.51833604051472},{"date":"1986-12-01","price":5.48963995887241},{"date":"1987-01-01","price":5.61342003457581},{"date":"1987-02-01","price":5.649678215663},{"date":"1987-03-01","price":5.67572587687368},{"date":"1987-04-01","price":5.66420969953638},{"date":"1987-05-01","price":5.67022569112736},{"date":"1987-06-01","price":5.71702770140622},{"date":"1987-07-01","price":5.76412470366236},{"date":"1987-08-01","price":5.7984864101255},{"date":"1987-09-01","price":5.77402345581901},{"date":"1987-10-01","price":5.52859540676285},{"date":"1987-11-01","price":5.43938280682664},{"date":"1987-12-01","price":5.5097121708277},{"date":"1988-01-01","price":5.54934842134914},{"date":"1988-02-01","price":5.59031511306742},{"date":"1988-03-01","price":5.55640326105981},{"date":"1988-04-01","price":5.56578397649891},{"date":"1988-05-01","price":5.56895500439056},{"date":"1988-06-01","price":5.61130162186204},{"date":"1988-07-01","price":5.60587559300461},{"date":"1988-08-01","price":5.56651076241596},{"date":"1988-09-01","price":5.60547112918941},{"date":"1988-10-01","price":5.63110424915822},{"date":"1988-11-01","price":5.61203261604663},{"date":"1988-12-01","price":5.62661341188507},{"date":"1989-01-01","price":5.69531337956482},{"date":"1989-02-01","price":5.66594214167302},{"date":"1989-03-01","price":5.68653458124665},{"date":"1989-04-01","price":5.73541033233651},{"date":"1989-05-01","price":5.76994467690987},{"date":"1989-06-01","price":5.76198848772056},{"date":"1989-07-01","price":5.84666996220475},{"date":"1989-08-01","price":5.86206745362191},{"date":"1989-09-01","price":5.85550162929204},{"date":"1989-10-01","price":5.83000388098136},{"date":"1989-11-01","price":5.84640987290596},{"date":"1989-12-01","price":5.8676005598856},{"date":"1990-01-01","price":5.79630088230073},{"date":"1990-02-01","price":5.80480358871493},{"date":"1990-03-01","price":5.82876913144921},{"date":"1990-04-01","price":5.80151396314954},{"date":"1990-05-01","price":5.88951487457224},{"date":"1990-06-01","price":5.88058885076205},{"date":"1990-07-01","price":5.87535199042436},{"date":"1990-08-01","price":5.77628916544295},{"date":"1990-09-01","price":5.72374848729708},{"date":"1990-10-01","price":5.71702770140622},{"date":"1990-11-01","price":5.77523454206284},{"date":"1990-12-01","price":5.79975909900369},{"date":"1991-01-01","price":5.84043814829474},{"date":"1991-02-01","price":5.90555256556165},{"date":"1991-03-01","price":5.92751252061546},{"date":"1991-04-01","price":5.92783228186313},{"date":"1991-05-01","price":5.96571074665689},{"date":"1991-06-01","price":5.91663323648498},{"date":"1991-07-01","price":5.96051552896397},{"date":"1991-08-01","price":5.97997378039248},{"date":"1991-09-01","price":5.9606444497681},{"date":"1991-10-01","price":5.97240914057282},{"date":"1991-11-01","price":5.92751252061546},{"date":"1991-12-01","price":6.03330202584956},{"date":"1992-01-01","price":6.01317711401363},{"date":"1992-02-01","price":6.02272093675854},{"date":"1992-03-01","price":6.00064725668264},{"date":"1992-04-01","price":6.02815803104446},{"date":"1992-05-01","price":6.02912153828508},{"date":"1992-06-01","price":6.01161025280094},{"date":"1992-07-01","price":6.05022861563867},{"date":"1992-08-01","price":6.02593843496806},{"date":"1992-09-01","price":6.03500284912247},{"date":"1992-10-01","price":6.03710690498668},{"date":"1992-11-01","price":6.06691982552259},{"date":"1992-12-01","price":6.0769768844322},{"date":"1993-01-01","price":6.08399814851091},{"date":"1993-02-01","price":6.09442719016581},{"date":"1993-03-01","price":6.11295182469226},{"date":"1993-04-01","price":6.08720645188748},{"date":"1993-05-01","price":6.10966971587587},{"date":"1993-06-01","price":6.110424667506},{"date":"1993-07-01","price":6.10508336889276},{"date":"1993-08-01","price":6.13893582646619},{"date":"1993-09-01","price":6.12889769298378},{"date":"1993-10-01","price":6.14810498206391},{"date":"1993-11-01","price":6.13511024229009},{"date":"1993-12-01","price":6.14515083340697},{"date":"1994-01-01","price":6.17713465789864},{"date":"1994-02-01","price":6.14662899860933},{"date":"1994-03-01","price":6.09980312393637},{"date":"1994-04-01","price":6.1112677630476},{"date":"1994-05-01","price":6.12358870003502},{"date":"1994-06-01","price":6.09643248571752},{"date":"1994-07-01","price":6.1274367086312},{"date":"1994-08-01","price":6.16434585127008},{"date":"1994-09-01","price":6.13710050795518},{"date":"1994-10-01","price":6.15772023621514},{"date":"1994-11-01","price":6.11741414543076},{"date":"1994-12-01","price":6.1296382724121},{"date":"1995-01-01","price":6.1536259126874},{"date":"1995-02-01","price":6.18906462395149},{"date":"1995-03-01","price":6.21602709117561},{"date":"1995-04-01","price":6.24360363526344},{"date":"1995-05-01","price":6.27927161174791},{"date":"1995-06-01","price":6.30032697382473},{"date":"1995-07-01","price":6.33160860576092},{"date":"1995-08-01","price":6.33128830396271},{"date":"1995-09-01","price":6.37060279129756},{"date":"1995-10-01","price":6.36561097195872},{"date":"1995-11-01","price":6.4058398413459},{"date":"1995-12-01","price":6.42313332071278},{"date":"1996-01-01","price":6.45523000938657},{"date":"1996-02-01","price":6.46213982574676},{"date":"1996-03-01","price":6.4700252102867},{"date":"1996-04-01","price":6.48336725651687},{"date":"1996-05-01","price":6.50596341624027},{"date":"1996-06-01","price":6.50821756908876},{"date":"1996-07-01","price":6.4613900483018},{"date":"1996-08-01","price":6.48002922438572},{"date":"1996-09-01","price":6.53281452623651},{"date":"1996-10-01","price":6.55858070821804},{"date":"1996-11-01","price":6.6293896731677},{"date":"1996-12-01","price":6.6076496865313},{"date":"1997-01-01","price":6.66716033405417},{"date":"1997-02-01","price":6.67307038182137},{"date":"1997-03-01","price":6.62952176134997},{"date":"1997-04-01","price":6.68628532641994},{"date":"1997-05-01","price":6.74321076997086},{"date":"1997-06-01","price":6.78574582458728},{"date":"1997-07-01","price":6.86098856625335},{"date":"1997-08-01","price":6.80180570097226},{"date":"1997-09-01","price":6.8535947200227},{"date":"1997-10-01","price":6.81850867846792},{"date":"1997-11-01","price":6.86213010095586},{"date":"1997-12-01","price":6.87773927223854},{"date":"1998-01-01","price":6.88783824514178},{"date":"1998-02-01","price":6.95591667408915},{"date":"1998-03-01","price":7.0046551037221},{"date":"1998-04-01","price":7.01369062939081},{"date":"1998-05-01","price":6.9946849859702},{"date":"1998-06-01","price":7.03336538085865},{"date":"1998-07-01","price":7.02168199971602},{"date":"1998-08-01","price":6.86409592964172},{"date":"1998-09-01","price":6.92462222884191},{"date":"1998-10-01","price":7.00185563633723},{"date":"1998-11-01","price":7.05929970834438},{"date":"1998-12-01","price":7.11414323607631},{"date":"1999-01-01","price":7.15433406735546},{"date":"1999-02-01","price":7.12151897669009},{"date":"1999-03-01","price":7.15957957725724},{"date":"1999-04-01","price":7.19682139320608},{"date":"1999-05-01","price":7.17153392735236},{"date":"1999-06-01","price":7.22454216714402},{"date":"1999-07-01","price":7.19197135179074},{"date":"1999-08-01","price":7.18569757341295},{"date":"1999-09-01","price":7.15673030633061},{"date":"1999-10-01","price":7.21739207307763},{"date":"1999-11-01","price":7.23627454583865},{"date":"1999-12-01","price":7.29250734549276},{"date":"2000-01-01","price":7.24026252253998},{"date":"2000-02-01","price":7.21994945992953},{"date":"2000-03-01","price":7.31227327205175},{"date":"2000-04-01","price":7.28099329479367},{"date":"2000-05-01","price":7.25883459656371},{"date":"2000-06-01","price":7.28248622772044},{"date":"2000-07-01","price":7.26600997445608},{"date":"2000-08-01","price":7.32493813204429},{"date":"2000-09-01","price":7.26997183975954},{"date":"2000-10-01","price":7.26501005478588},{"date":"2000-11-01","price":7.18155392107529},{"date":"2000-12-01","price":7.18559911429801},{"date":"2001-01-01","price":7.21964936074816},{"date":"2001-02-01","price":7.12281827033162},{"date":"2001-03-01","price":7.05645972640148},{"date":"2001-04-01","price":7.13046673695746},{"date":"2001-05-01","price":7.13554402465607},{"date":"2001-06-01","price":7.11018987240665},{"date":"2001-07-01","price":7.09939165120075},{"date":"2001-08-01","price":7.03313604531328},{"date":"2001-09-01","price":6.94787943006629},{"date":"2001-10-01","price":6.96581661839541},{"date":"2001-11-01","price":7.03830096882878},{"date":"2001-12-01","price":7.04584626086268},{"date":"2002-01-01","price":7.03014988719574},{"date":"2002-02-01","price":7.00916500052058},{"date":"2002-03-01","price":7.04524507677333},{"date":"2002-04-01","price":6.98186039398892},{"date":"2002-05-01","price":6.97273745169179},{"date":"2002-06-01","price":6.89752310841589},{"date":"2002-07-01","price":6.81522323657799},{"date":"2002-08-01","price":6.82009278096831},{"date":"2002-09-01","price":6.70353161252044},{"date":"2002-10-01","price":6.7864460335492},{"date":"2002-11-01","price":6.84194661822531},{"date":"2002-12-01","price":6.77971734109543},{"date":"2003-01-01","price":6.75191984742401},{"date":"2003-02-01","price":6.73477000316517},{"date":"2003-03-01","price":6.743092877418},{"date":"2003-04-01","price":6.82102022744748},{"date":"2003-05-01","price":6.87066589293676},{"date":"2003-06-01","price":6.88192451894762},{"date":"2003-07-01","price":6.89801802542639},{"date":"2003-08-01","price":6.91573336921703},{"date":"2003-09-01","price":6.90371713664904},{"date":"2003-10-01","price":6.95722140511399},{"date":"2003-11-01","price":6.96432463047003},{"date":"2003-12-01","price":7.0138435297765},{"date":"2004-01-01","price":7.03097241203947},{"date":"2004-02-01","price":7.0431075128686},{"date":"2004-03-01","price":7.02661329219861},{"date":"2004-04-01","price":7.00967989870406},{"date":"2004-05-01","price":7.02169092290963},{"date":"2004-06-01","price":7.03952011215894},{"date":"2004-07-01","price":7.00462787394361},{"date":"2004-08-01","price":7.00691259451532},{"date":"2004-09-01","price":7.01623293131753},{"date":"2004-10-01","price":7.03014988719574},{"date":"2004-11-01","price":7.06801866665688},{"date":"2004-12-01","price":7.09996115785007},{"date":"2005-01-01","price":7.07434540988155},{"date":"2005-02-01","price":7.09307234475589},{"date":"2005-03-01","price":7.07376959250136},{"date":"2005-04-01","price":7.05345607315369},{"date":"2005-05-01","price":7.0829682965388},{"date":"2005-06-01","price":7.0828256090619},{"date":"2005-07-01","price":7.11816206092663},{"date":"2005-08-01","price":7.10687659295427},{"date":"2005-09-01","price":7.11380150038113},{"date":"2005-10-01","price":7.09590150606735},{"date":"2005-11-01","price":7.13048274374434},{"date":"2005-12-01","price":7.1295298937301},{"date":"2006-01-01","price":7.15467785496062},{"date":"2006-02-01","price":7.15513084902477},{"date":"2006-03-01","price":7.16616558299423},{"date":"2006-04-01","price":7.17824795666937},{"date":"2006-05-01","price":7.14684304308348},{"date":"2006-06-01","price":7.14692964736887},{"date":"2006-07-01","price":7.15200257156083},{"date":"2006-08-01","price":7.17305369614883},{"date":"2006-09-01","price":7.19732307234413},{"date":"2006-10-01","price":7.22834490926136},{"date":"2006-11-01","price":7.24467741438372},{"date":"2006-12-01","price":7.25721425030056},{"date":"2007-01-01","price":7.27117542282509},{"date":"2007-02-01","price":7.2490871171607},{"date":"2007-03-01","price":7.25901760107599},{"date":"2007-04-01","price":7.30139743731359},{"date":"2007-05-01","price":7.33342816106165},{"date":"2007-06-01","price":7.31545123024166},{"date":"2007-07-01","price":7.28294672940047},{"date":"2007-08-01","price":7.29572828846575},{"date":"2007-09-01","price":7.33089657210324},{"date":"2007-10-01","price":7.34561012989195},{"date":"2007-11-01","price":7.30056734052254},{"date":"2007-12-01","price":7.29190141071773},{"date":"2008-01-01","price":7.22878750111546},{"date":"2008-02-01","price":7.19340779327338},{"date":"2008-03-01","price":7.187430381032},{"date":"2008-04-01","price":7.23388132069206},{"date":"2008-05-01","price":7.24449890734471},{"date":"2008-06-01","price":7.15461535691366},{"date":"2008-07-01","price":7.14470705642721},{"date":"2008-08-01","price":7.15682385388792},{"date":"2008-09-01","price":7.06164306711354},{"date":"2008-10-01","price":6.87600658066756},{"date":"2008-11-01","price":6.79820823425047},{"date":"2008-12-01","price":6.80599937002775},{"date":"2009-01-01","price":6.71644948451668},{"date":"2009-02-01","price":6.59999294069616},{"date":"2009-03-01","price":6.68194567691081},{"date":"2009-04-01","price":6.77171789183178},{"date":"2009-05-01","price":6.82343845025266},{"date":"2009-06-01","price":6.82363426631673},{"date":"2009-07-01","price":6.89515624340562},{"date":"2009-08-01","price":6.92816556475376},{"date":"2009-09-01","price":6.9632656689097},{"date":"2009-10-01","price":6.94330580368753},{"date":"2009-11-01","price":6.99908481927033},{"date":"2009-12-01","price":7.01669936597132},{"date":"2010-01-01","price":6.979024224912},{"date":"2010-02-01","price":7.00713896894866},{"date":"2010-03-01","price":7.06427172959414},{"date":"2010-04-01","price":7.078923197906},{"date":"2010-05-01","price":6.99339154427223},{"date":"2010-06-01","price":6.93800316413986},{"date":"2010-07-01","price":7.00451894741444},{"date":"2010-08-01","price":6.95590714424406},{"date":"2010-09-01","price":7.03983561933935},{"date":"2010-10-01","price":7.07602862005003},{"date":"2010-11-01","price":7.07373571056297},{"date":"2010-12-01","price":7.1369922277849},{"date":"2011-01-01","price":7.15938521304142},{"date":"2011-02-01","price":7.19084180808156},{"date":"2011-03-01","price":7.18979395739862},{"date":"2011-04-01","price":7.21789087376575},{"date":"2011-05-01","price":7.20429797986611},{"date":"2011-06-01","price":7.18587174656422},{"date":"2011-07-01","price":7.16416337912879},{"date":"2011-08-01","price":7.10569588750967},{"date":"2011-09-01","price":7.03122875996689},{"date":"2011-10-01","price":7.13353535161748},{"date":"2011-11-01","price":7.1284638681808},{"date":"2011-12-01","price":7.13696042167494},{"date":"2012-01-01","price":7.17962042068608},{"date":"2012-02-01","price":7.2194077520725},{"date":"2012-03-01","price":7.25025928783507},{"date":"2012-04-01","price":7.24273354303902},{"date":"2012-05-01","price":7.17803429286855},{"date":"2012-06-01","price":7.21682695411239},{"date":"2012-07-01","price":7.2293459030851},{"date":"2012-08-01","price":7.24891650508948},{"date":"2012-09-01","price":7.27286356213968},{"date":"2012-10-01","price":7.25287572608118},{"date":"2012-11-01","price":7.25571838481884},{"date":"2012-12-01","price":7.2627618319303},{"date":"2013-01-01","price":7.31195959262288},{"date":"2013-02-01","price":7.32295947451103},{"date":"2013-03-01","price":7.35831484164112},{"date":"2013-04-01","price":7.37623900375804},{"date":"2013-05-01","price":7.39678917850962},{"date":"2013-06-01","price":7.38167622551192},{"date":"2013-07-01","price":7.42995398338889},{"date":"2013-08-01","price":7.39815572170557},{"date":"2013-09-01","price":7.42747126609357},{"date":"2013-10-01","price":7.47110124400566},{"date":"2013-11-01","price":7.49876452356986},{"date":"2013-12-01","price":7.52205403842437},{"date":"2014-01-01","price":7.48582264189742},{"date":"2014-02-01","price":7.52803602405497},{"date":"2014-03-01","price":7.53489619512948}];
var svg = dimple.newSvg("#" + opts.id, opts.width, opts.height);
//data = dimple.filterData(data, "Owner", ["Aperture", "Black Mesa"])
var myChart = new dimple.chart(svg, data);
if (opts.bounds) {
myChart.setBounds(opts.bounds.x, opts.bounds.y, opts.bounds.width, opts.bounds.height);//myChart.setBounds(80, 30, 480, 330);
}
//dimple allows use of custom CSS with noFormats
if(opts.noFormats) { myChart.noFormats = opts.noFormats; };
//for markimekko and addAxis also have third parameter measure
//so need to evaluate if measure provided
//function to build axes
function buildAxis(position,layer){
var axis;
var axisopts = opts[position+"Axis"];
if(axisopts.measure) {
axis = myChart[axisopts.type](position,layer[position],axisopts.measure);
} else {
axis = myChart[axisopts.type](position, layer[position]);
};
if(!(axisopts.type === "addPctAxis")) axis.showPercent = axisopts.showPercent;
if (axisopts.orderRule) axis.addOrderRule(axisopts.orderRule);
if (axisopts.grouporderRule) axis.addGroupOrderRule(axisopts.grouporderRule);
if (axisopts.overrideMin) axis.overrideMin = axisopts.overrideMin;
if (axisopts.overrideMax) axis.overrideMax = axisopts.overrideMax;
if (axisopts.overrideMax) axis.overrideMax = axisopts.overrideMax;
if (axisopts.inputFormat) axis.dateParseFormat = axisopts.inputFormat;
if (axisopts.outputFormat) axis.tickFormat = axisopts.outputFormat;
return axis;
};
var c = null;
if(d3.keys(opts.colorAxis).length > 0) {
c = myChart[opts.colorAxis.type](opts.colorAxis.colorSeries,opts.colorAxis.palette) ;
}
//allow manipulation of default colors to use with dimple
if(opts.defaultColors.length) {
opts.defaultColors = opts.defaultColors[0];
if (typeof(opts.defaultColors) == "function") {
//assume this is a d3 scale
//for now loop through first 20 but need a better way to handle
defaultColorsArray = [];
for (var n=0;n<20;n++) {
defaultColorsArray.push(opts.defaultColors(n));
};
opts.defaultColors = defaultColorsArray;
}
opts.defaultColors.forEach(function(d,i) {
opts.defaultColors[i] = new dimple.color(d);
})
myChart.defaultColors = opts.defaultColors;
}
//do series
//set up a function since same for each
//as of now we have x,y,groups,data,type in opts for primary layer
//and other layers reside in opts.layers
function buildSeries(layer, hidden){
//inherit from primary layer if not intentionally changed or xAxis, yAxis, zAxis null
if (!layer.xAxis) layer.xAxis = opts.xAxis;
if (!layer.yAxis) layer.yAxis = opts.yAxis;
if (!layer.zAxis) layer.zAxis = opts.zAxis;
var x = buildAxis("x", layer);
x.hidden = hidden;
var y = buildAxis("y", layer);
y.hidden = hidden;
//z for bubbles
var z = null;
if (!(typeof(layer.zAxis) === 'undefined') && layer.zAxis.type){
z = buildAxis("z", layer);
};
//here think I need to evaluate group and if missing do null
//as the group argument
//if provided need to use groups from layer
var s = new dimple.series(myChart, null, x, y, z, c, dimple.plot[layer.type], dimple.aggregateMethod.avg, dimple.plot[layer.type].stacked);
//as of v1.1.4 dimple can use different dataset for each series
if(layer.data){
//convert to an array of objects
var tempdata;
//avoid lodash for now
datakeys = d3.keys(layer.data)
tempdata = layer.data[datakeys[1]].map(function(d,i){
var tempobj = {}
datakeys.forEach(function(key){
tempobj[key] = layer.data[key][i]
})
return tempobj
})
s.data = tempdata;
}
if(layer.hasOwnProperty("groups")) {
s.categoryFields = (typeof layer.groups === "object") ? layer.groups : [layer.groups];
//series offers an aggregate method that we will also need to check if available
//options available are avg, count, max, min, sum
if (!(typeof(layer.aggregate) === 'undefined')) {
s.aggregate = eval(layer.aggregate);
}
if (!(typeof(layer.lineWeight) === 'undefined')) {
s.lineWeight = eval(layer.lineWeight);
}
if (!(typeof(layer.barGap) === 'undefined')) {
s.barGap = eval(layer.barGap);
}
};
/* if (!(typeof(layer.eventHandler) === 'undefined')) {
layer.eventHandler = (layer.eventHandler.length === "undefined") ? layer.eventHandler : [layer.eventHandler];
layer.eventHandler.forEach(function(evt){
s.addEventHandler(evt.event, eval(evt.handler))
})
}*/
myChart.series.push(s);
/*placeholder fix domain of primary scale for new series data
//not working right now but something like this
//for now just use overrideMin and overrideMax from rCharts
for( var i = 0; i<2; i++) {
if (!myChart.axes[i].overrideMin) {
myChart.series[0]._axisBounds(i==0?"x":"y").min = myChart.series[0]._axisBounds(i==0?"x":"y").min < s._axisBounds(i==0?"x":"y").min ? myChart.series[0]._axisBounds(i==0?"x":"y").min : s._axisBounds(i==0?"x":"y").min;
}
if (!myChart.axes[i].overrideMax) {
myChart.series[0]._axisBounds(i==0?"x":"y")._max = myChart.series[0]._axisBounds(i==0?"x":"y").max > s._axisBounds(i==0?"x":"y").max ? myChart.series[0]._axisBounds(i==0?"x":"y").max : s._axisBounds(i==0?"x":"y").max;
}
myChart.axes[i]._update();
}
*/
return s;
};
buildSeries(opts, false);
if (opts.layers.length > 0) {
opts.layers.forEach(function(layer){
buildSeries(layer, true);
})
}
//unsure if this is best but if legend is provided (not empty) then evaluate
if(d3.keys(opts.legend).length > 0) {
var l =myChart.addLegend();
d3.keys(opts.legend).forEach(function(d){
l[d] = opts.legend[d];
});
}
//quick way to get this going but need to make this cleaner
if(opts.storyboard) {
myChart.setStoryboard(opts.storyboard);
};
myChart.draw();
</script>
<script>
myChart.series[2].shapes
.transition().duration(10).delay(1000)
.style("stroke","#AD5277")
.style("stroke-dasharray",[10,5])
//delete some of the ticks
myChart.svg.select(".axis").selectAll(".tick")[0].forEach(function(d,i){
if (!(+d3.time.format("%Y")(new Date(+d3.select(d).datum())) % 10 == 0)) {
d.remove()
}
})
myChart.svg.select(".axis").selectAll(".tick text")
.attr("transform","none")
.style("text-anchor","middle");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.