Skip to content

Instantly share code, notes, and snippets.

@timelyportfolio
Last active May 27, 2017 05:55
Show Gist options
  • Save timelyportfolio/80d85f78a5a975fa29d7 to your computer and use it in GitHub Desktop.
Save timelyportfolio/80d85f78a5a975fa29d7 to your computer and use it in GitHub Desktop.
vertical lines and labels with nvd3 + rCharts

rCharts + nvd3 with vertical lines and labels

In response to this Stack Overflow question I thought it would be helpful to demonstrate one way to add vertical lines and labels to a nvd3 time series lineWithFocusChart. Hopefully it will help both the R rCharts and the straight Javascript nvd3 user. I solved a small syncing problem with the brushing by adding a window.setTimeout on brushend. It seems to work fairly well.

Please let me know if there might be a better way to handle.

rCharts viewer demo

rCharts live code example

R code

library(reshape2)
library(ggplot2)
library(rCharts)
ecm <- reshape2::melt(economics[,c('date', 'uempmed', 'psavert')], id = 'date')
p7 <- nPlot(value ~ date, group = 'variable', data = ecm, type = 'lineWithFocusChart')
#let's add this to make date handling easier
p7$xAxis( tickFormat="#!function(d) {return d3.time.format('%b %Y')(new Date( d * 86400000 ));}!#" )
#grab template from
#https://github.com/ramnathv/rCharts/blob/master/inst/libraries/nvd3/layouts/chart.html
#modify to add callback on graph render
p7$setTemplate(script = sprintf("
<script type='text/javascript'>
$(document).ready(function(){
draw{{chartId}}( );
});
function draw{{chartId}}( ){
var opts = {{{ opts }}};
var data = {{{ data }}};
if(!(opts.type==='pieChart' || opts.type==='sparklinePlus' || opts.type==='bulletChart')) {
var data = d3.nest()
.key(function(d){
//return opts.group === undefined ? 'main' : d[opts.group]
//instead of main would think a better default is opts.x
return opts.group === undefined ? opts.y : d[opts.group];
})
.entries(data);
}
if (opts.disabled != undefined){
data.map(function(d, i){
d.disabled = opts.disabled[i]
})
}
nv.addGraph(function() {
chart = nv.models[opts.type]()
.width(opts.width)
.height(opts.height)
if (opts.type != 'bulletChart'){
chart
.x(function(d) { return d[opts.x] })
.y(function(d) { return d[opts.y] })
}
{{{ chart }}}
{{{ xAxis }}}
{{{ x2Axis }}}
{{{ yAxis }}}
d3.select('#' + opts.id)
.append('svg')
.datum(data)
.transition().duration(500)
.call(chart);
chart.dispatch.brush.on('brushstart',function(){ drawVerticalLines( opts ) });
chart.dispatch.brush.on(
'brushend',
function(){ window.setTimeout(
function() {drawVerticalLines( opts )},
250
)}
);
nv.utils.windowResize(chart.update);
return chart;
},%s);
};
%s
</script>
"
,
#here is where you can type your vertical line/label function
"function() { drawVerticalLines( opts ) }"
,
#add the afterScript here if using with shiny
"
function drawVerticalLines( opts ){
if (!(d3.select('#' + opts.id + ' .nvd3 .nv-focus .nv-linesWrap').select('.vertical-lines')[0][0])) {
d3.select('#' + opts.id + ' .nvd3 .nv-focus .nv-linesWrap').append('g')
.attr('class', 'vertical-lines')
}
vertLines = d3.select('#' + opts.id + ' .nvd3 .nv-focus .nv-linesWrap').select('.vertical-lines').selectAll('.vertical-line')
.data(
[
{ 'date' : new Date('1967-11-30'),
'label' : 'something to highlight 1967'
} ,
{ 'date' : new Date('2001-11-30'),
'label' : 'something to highlight 2001'
}
] )
var vertG = vertLines.enter()
.append('g')
.attr('class', 'vertical-line')
vertG.append('svg:line')
vertG.append('text')
vertLines.exit().remove()
vertLines.selectAll('line')
.attr('x1', function(d){
return chart.xAxis.scale()(d.date/60/60/24/1000)
})
.attr('x2', function(d){ return chart.xAxis.scale()(d.date/60/60/24/1000) })
.attr('y1', chart.yAxis.scale().range()[0] )
.attr('y2', chart.yAxis.scale().range()[1] )
.style('stroke', 'red')
vertLines.selectAll('text')
.text( function(d) { return d.label })
.attr('dy', '1em')
//x placement ; change dy above for minor adjustments but mainly
// change the d.date/60/60/24/1000
//y placement ; change 2 to where you want vertical placement
//rotate -90 but feel free to change to what you would like
.attr('transform', function(d){
return 'translate(' +
chart.xAxis.scale()(d.date/60/60/24/1000) +
',' +
chart.yAxis.scale()(2) +
') rotate(-90)'
})
//also you can style however you would like
//here is an example changing the font size
.style('font-size','80%')
}
"
))
p7
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='http://nvd3.org/assets/css/nv.d3.css'>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='http://d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='http://timelyportfolio.github.io/rCharts_nvd3_tests/libraries/widgets/nvd3/js/nv.d3.min-new.js' type='text/javascript'></script>
<script src='http://nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
}
</style>
</head>
<body >
<div id = 'chart18e87f6e3d72' class = 'rChart nvd3'></div>
<script type='text/javascript'>
$(document).ready(function(){
drawchart18e87f6e3d72( );
});
function drawchart18e87f6e3d72( ){
var opts = {
"dom": "chart18e87f6e3d72",
"width": 800,
"height": 400,
"x": "date",
"y": "value",
"group": "variable",
"type": "lineWithFocusChart",
"id": "chart18e87f6e3d72"
};
var data = [
{
"date": -916,
"variable": "uempmed",
"value": 4.5
},
{
"date": -885,
"variable": "uempmed",
"value": 4.7
},
{
"date": -854,
"variable": "uempmed",
"value": 4.6
},
{
"date": -824,
"variable": "uempmed",
"value": 4.9
},
{
"date": -793,
"variable": "uempmed",
"value": 4.7
},
{
"date": -763,
"variable": "uempmed",
"value": 4.8
},
{
"date": -732,
"variable": "uempmed",
"value": 5.1
},
{
"date": -701,
"variable": "uempmed",
"value": 4.5
},
{
"date": -672,
"variable": "uempmed",
"value": 4.1
},
{
"date": -641,
"variable": "uempmed",
"value": 4.6
},
{
"date": -611,
"variable": "uempmed",
"value": 4.4
},
{
"date": -580,
"variable": "uempmed",
"value": 4.4
},
{
"date": -550,
"variable": "uempmed",
"value": 4.5
},
{
"date": -519,
"variable": "uempmed",
"value": 4.2
},
{
"date": -488,
"variable": "uempmed",
"value": 4.6
},
{
"date": -458,
"variable": "uempmed",
"value": 4.8
},
{
"date": -427,
"variable": "uempmed",
"value": 4.4
},
{
"date": -397,
"variable": "uempmed",
"value": 4.4
},
{
"date": -366,
"variable": "uempmed",
"value": 4.4
},
{
"date": -335,
"variable": "uempmed",
"value": 4.9
},
{
"date": -307,
"variable": "uempmed",
"value": 4
},
{
"date": -276,
"variable": "uempmed",
"value": 4
},
{
"date": -246,
"variable": "uempmed",
"value": 4.2
},
{
"date": -215,
"variable": "uempmed",
"value": 4.4
},
{
"date": -185,
"variable": "uempmed",
"value": 4.4
},
{
"date": -154,
"variable": "uempmed",
"value": 4.4
},
{
"date": -123,
"variable": "uempmed",
"value": 4.7
},
{
"date": -93,
"variable": "uempmed",
"value": 4.5
},
{
"date": -62,
"variable": "uempmed",
"value": 4.8
},
{
"date": -32,
"variable": "uempmed",
"value": 4.6
},
{
"date": -1,
"variable": "uempmed",
"value": 4.6
},
{
"date": 30,
"variable": "uempmed",
"value": 4.5
},
{
"date": 58,
"variable": "uempmed",
"value": 4.6
},
{
"date": 89,
"variable": "uempmed",
"value": 4.1
},
{
"date": 119,
"variable": "uempmed",
"value": 4.7
},
{
"date": 150,
"variable": "uempmed",
"value": 4.9
},
{
"date": 180,
"variable": "uempmed",
"value": 5.1
},
{
"date": 211,
"variable": "uempmed",
"value": 5.4
},
{
"date": 242,
"variable": "uempmed",
"value": 5.2
},
{
"date": 272,
"variable": "uempmed",
"value": 5.2
},
{
"date": 303,
"variable": "uempmed",
"value": 5.6
},
{
"date": 333,
"variable": "uempmed",
"value": 5.9
},
{
"date": 364,
"variable": "uempmed",
"value": 6.2
},
{
"date": 395,
"variable": "uempmed",
"value": 6.3
},
{
"date": 423,
"variable": "uempmed",
"value": 6.4
},
{
"date": 454,
"variable": "uempmed",
"value": 6.5
},
{
"date": 484,
"variable": "uempmed",
"value": 6.7
},
{
"date": 515,
"variable": "uempmed",
"value": 5.7
},
{
"date": 545,
"variable": "uempmed",
"value": 6.2
},
{
"date": 576,
"variable": "uempmed",
"value": 6.4
},
{
"date": 607,
"variable": "uempmed",
"value": 5.8
},
{
"date": 637,
"variable": "uempmed",
"value": 6.5
},
{
"date": 668,
"variable": "uempmed",
"value": 6.4
},
{
"date": 698,
"variable": "uempmed",
"value": 6.2
},
{
"date": 729,
"variable": "uempmed",
"value": 6.2
},
{
"date": 760,
"variable": "uempmed",
"value": 6.6
},
{
"date": 789,
"variable": "uempmed",
"value": 6.6
},
{
"date": 820,
"variable": "uempmed",
"value": 6.7
},
{
"date": 850,
"variable": "uempmed",
"value": 6.6
},
{
"date": 881,
"variable": "uempmed",
"value": 5.4
},
{
"date": 911,
"variable": "uempmed",
"value": 6.1
},
{
"date": 942,
"variable": "uempmed",
"value": 6
},
{
"date": 973,
"variable": "uempmed",
"value": 5.6
},
{
"date": 1003,
"variable": "uempmed",
"value": 5.7
},
{
"date": 1034,
"variable": "uempmed",
"value": 5.7
},
{
"date": 1064,
"variable": "uempmed",
"value": 6.1
},
{
"date": 1095,
"variable": "uempmed",
"value": 5.7
},
{
"date": 1126,
"variable": "uempmed",
"value": 5.2
},
{
"date": 1154,
"variable": "uempmed",
"value": 5.5
},
{
"date": 1185,
"variable": "uempmed",
"value": 5
},
{
"date": 1215,
"variable": "uempmed",
"value": 4.9
},
{
"date": 1246,
"variable": "uempmed",
"value": 5
},
{
"date": 1276,
"variable": "uempmed",
"value": 5.2
},
{
"date": 1307,
"variable": "uempmed",
"value": 4.9
},
{
"date": 1338,
"variable": "uempmed",
"value": 5.4
},
{
"date": 1368,
"variable": "uempmed",
"value": 5.5
},
{
"date": 1399,
"variable": "uempmed",
"value": 5.1
},
{
"date": 1429,
"variable": "uempmed",
"value": 4.7
},
{
"date": 1460,
"variable": "uempmed",
"value": 5
},
{
"date": 1491,
"variable": "uempmed",
"value": 5.1
},
{
"date": 1519,
"variable": "uempmed",
"value": 4.8
},
{
"date": 1550,
"variable": "uempmed",
"value": 5
},
{
"date": 1580,
"variable": "uempmed",
"value": 4.6
},
{
"date": 1611,
"variable": "uempmed",
"value": 5.3
},
{
"date": 1641,
"variable": "uempmed",
"value": 5.7
},
{
"date": 1672,
"variable": "uempmed",
"value": 5
},
{
"date": 1703,
"variable": "uempmed",
"value": 5.3
},
{
"date": 1733,
"variable": "uempmed",
"value": 5.5
},
{
"date": 1764,
"variable": "uempmed",
"value": 5.2
},
{
"date": 1794,
"variable": "uempmed",
"value": 5.7
},
{
"date": 1825,
"variable": "uempmed",
"value": 6.3
},
{
"date": 1856,
"variable": "uempmed",
"value": 7.1
},
{
"date": 1884,
"variable": "uempmed",
"value": 7.2
},
{
"date": 1915,
"variable": "uempmed",
"value": 8.7
},
{
"date": 1945,
"variable": "uempmed",
"value": 9.4
},
{
"date": 1976,
"variable": "uempmed",
"value": 8.8
},
{
"date": 2006,
"variable": "uempmed",
"value": 8.6
},
{
"date": 2037,
"variable": "uempmed",
"value": 9.2
},
{
"date": 2068,
"variable": "uempmed",
"value": 9.2
},
{
"date": 2098,
"variable": "uempmed",
"value": 8.6
},
{
"date": 2129,
"variable": "uempmed",
"value": 9.5
},
{
"date": 2159,
"variable": "uempmed",
"value": 9
},
{
"date": 2190,
"variable": "uempmed",
"value": 9
},
{
"date": 2221,
"variable": "uempmed",
"value": 8.2
},
{
"date": 2250,
"variable": "uempmed",
"value": 8.7
},
{
"date": 2281,
"variable": "uempmed",
"value": 8.2
},
{
"date": 2311,
"variable": "uempmed",
"value": 8.3
},
{
"date": 2342,
"variable": "uempmed",
"value": 7.8
},
{
"date": 2372,
"variable": "uempmed",
"value": 7.7
},
{
"date": 2403,
"variable": "uempmed",
"value": 7.9
},
{
"date": 2434,
"variable": "uempmed",
"value": 7.8
},
{
"date": 2464,
"variable": "uempmed",
"value": 7.7
},
{
"date": 2495,
"variable": "uempmed",
"value": 8.4
},
{
"date": 2525,
"variable": "uempmed",
"value": 8
},
{
"date": 2556,
"variable": "uempmed",
"value": 7.5
},
{
"date": 2587,
"variable": "uempmed",
"value": 7.2
},
{
"date": 2615,
"variable": "uempmed",
"value": 7.2
},
{
"date": 2646,
"variable": "uempmed",
"value": 7.3
},
{
"date": 2676,
"variable": "uempmed",
"value": 7.9
},
{
"date": 2707,
"variable": "uempmed",
"value": 6.2
},
{
"date": 2737,
"variable": "uempmed",
"value": 7.1
},
{
"date": 2768,
"variable": "uempmed",
"value": 7
},
{
"date": 2799,
"variable": "uempmed",
"value": 6.7
},
{
"date": 2829,
"variable": "uempmed",
"value": 6.9
},
{
"date": 2860,
"variable": "uempmed",
"value": 7
},
{
"date": 2890,
"variable": "uempmed",
"value": 6.8
},
{
"date": 2921,
"variable": "uempmed",
"value": 6.5
},
{
"date": 2952,
"variable": "uempmed",
"value": 6.7
},
{
"date": 2980,
"variable": "uempmed",
"value": 6.2
},
{
"date": 3011,
"variable": "uempmed",
"value": 6.1
},
{
"date": 3041,
"variable": "uempmed",
"value": 5.7
},
{
"date": 3072,
"variable": "uempmed",
"value": 6
},
{
"date": 3102,
"variable": "uempmed",
"value": 5.8
},
{
"date": 3133,
"variable": "uempmed",
"value": 5.8
},
{
"date": 3164,
"variable": "uempmed",
"value": 5.6
},
{
"date": 3194,
"variable": "uempmed",
"value": 5.9
},
{
"date": 3225,
"variable": "uempmed",
"value": 5.5
},
{
"date": 3255,
"variable": "uempmed",
"value": 5.6
},
{
"date": 3286,
"variable": "uempmed",
"value": 5.9
},
{
"date": 3317,
"variable": "uempmed",
"value": 5.9
},
{
"date": 3345,
"variable": "uempmed",
"value": 5.9
},
{
"date": 3376,
"variable": "uempmed",
"value": 5.4
},
{
"date": 3406,
"variable": "uempmed",
"value": 5.6
},
{
"date": 3437,
"variable": "uempmed",
"value": 5.6
},
{
"date": 3467,
"variable": "uempmed",
"value": 5.9
},
{
"date": 3498,
"variable": "uempmed",
"value": 4.8
},
{
"date": 3529,
"variable": "uempmed",
"value": 5.5
},
{
"date": 3559,
"variable": "uempmed",
"value": 5.5
},
{
"date": 3590,
"variable": "uempmed",
"value": 5.3
},
{
"date": 3620,
"variable": "uempmed",
"value": 5.7
},
{
"date": 3651,
"variable": "uempmed",
"value": 5.3
},
{
"date": 3682,
"variable": "uempmed",
"value": 5.8
},
{
"date": 3711,
"variable": "uempmed",
"value": 6
},
{
"date": 3742,
"variable": "uempmed",
"value": 5.8
},
{
"date": 3772,
"variable": "uempmed",
"value": 5.7
},
{
"date": 3803,
"variable": "uempmed",
"value": 6.4
},
{
"date": 3833,
"variable": "uempmed",
"value": 7
},
{
"date": 3864,
"variable": "uempmed",
"value": 7.5
},
{
"date": 3895,
"variable": "uempmed",
"value": 7.7
},
{
"date": 3925,
"variable": "uempmed",
"value": 7.5
},
{
"date": 3956,
"variable": "uempmed",
"value": 7.7
},
{
"date": 3986,
"variable": "uempmed",
"value": 7.5
},
{
"date": 4017,
"variable": "uempmed",
"value": 7.4
},
{
"date": 4048,
"variable": "uempmed",
"value": 7.1
},
{
"date": 4076,
"variable": "uempmed",
"value": 7.1
},
{
"date": 4107,
"variable": "uempmed",
"value": 7.4
},
{
"date": 4137,
"variable": "uempmed",
"value": 6.9
},
{
"date": 4168,
"variable": "uempmed",
"value": 6.6
},
{
"date": 4198,
"variable": "uempmed",
"value": 7.1
},
{
"date": 4229,
"variable": "uempmed",
"value": 7.2
},
{
"date": 4260,
"variable": "uempmed",
"value": 6.8
},
{
"date": 4290,
"variable": "uempmed",
"value": 6.8
},
{
"date": 4321,
"variable": "uempmed",
"value": 6.9
},
{
"date": 4351,
"variable": "uempmed",
"value": 6.9
},
{
"date": 4382,
"variable": "uempmed",
"value": 7.1
},
{
"date": 4413,
"variable": "uempmed",
"value": 7.5
},
{
"date": 4441,
"variable": "uempmed",
"value": 7.7
},
{
"date": 4472,
"variable": "uempmed",
"value": 8.1
},
{
"date": 4502,
"variable": "uempmed",
"value": 8.5
},
{
"date": 4533,
"variable": "uempmed",
"value": 9.5
},
{
"date": 4563,
"variable": "uempmed",
"value": 8.5
},
{
"date": 4594,
"variable": "uempmed",
"value": 8.7
},
{
"date": 4625,
"variable": "uempmed",
"value": 9.5
},
{
"date": 4655,
"variable": "uempmed",
"value": 9.7
},
{
"date": 4686,
"variable": "uempmed",
"value": 10
},
{
"date": 4716,
"variable": "uempmed",
"value": 10.2
},
{
"date": 4747,
"variable": "uempmed",
"value": 11.1
},
{
"date": 4778,
"variable": "uempmed",
"value": 9.8
},
{
"date": 4806,
"variable": "uempmed",
"value": 10.4
},
{
"date": 4837,
"variable": "uempmed",
"value": 10.9
},
{
"date": 4867,
"variable": "uempmed",
"value": 12.3
},
{
"date": 4898,
"variable": "uempmed",
"value": 11.3
},
{
"date": 4928,
"variable": "uempmed",
"value": 10.1
},
{
"date": 4959,
"variable": "uempmed",
"value": 9.3
},
{
"date": 4990,
"variable": "uempmed",
"value": 9.3
},
{
"date": 5020,
"variable": "uempmed",
"value": 9.4
},
{
"date": 5051,
"variable": "uempmed",
"value": 9.3
},
{
"date": 5081,
"variable": "uempmed",
"value": 8.7
},
{
"date": 5112,
"variable": "uempmed",
"value": 9.1
},
{
"date": 5143,
"variable": "uempmed",
"value": 8.3
},
{
"date": 5172,
"variable": "uempmed",
"value": 8.3
},
{
"date": 5203,
"variable": "uempmed",
"value": 8.2
},
{
"date": 5233,
"variable": "uempmed",
"value": 9.1
},
{
"date": 5264,
"variable": "uempmed",
"value": 7.5
},
{
"date": 5294,
"variable": "uempmed",
"value": 7.5
},
{
"date": 5325,
"variable": "uempmed",
"value": 7.3
},
{
"date": 5356,
"variable": "uempmed",
"value": 7.6
},
{
"date": 5386,
"variable": "uempmed",
"value": 7.2
},
{
"date": 5417,
"variable": "uempmed",
"value": 7.2
},
{
"date": 5447,
"variable": "uempmed",
"value": 7.3
},
{
"date": 5478,
"variable": "uempmed",
"value": 6.8
},
{
"date": 5509,
"variable": "uempmed",
"value": 7.1
},
{
"date": 5537,
"variable": "uempmed",
"value": 7.1
},
{
"date": 5568,
"variable": "uempmed",
"value": 6.9
},
{
"date": 5598,
"variable": "uempmed",
"value": 6.9
},
{
"date": 5629,
"variable": "uempmed",
"value": 6.6
},
{
"date": 5659,
"variable": "uempmed",
"value": 6.9
},
{
"date": 5690,
"variable": "uempmed",
"value": 7.1
},
{
"date": 5721,
"variable": "uempmed",
"value": 6.9
},
{
"date": 5751,
"variable": "uempmed",
"value": 7.1
},
{
"date": 5782,
"variable": "uempmed",
"value": 7
},
{
"date": 5812,
"variable": "uempmed",
"value": 6.8
},
{
"date": 5843,
"variable": "uempmed",
"value": 6.7
},
{
"date": 5874,
"variable": "uempmed",
"value": 6.9
},
{
"date": 5902,
"variable": "uempmed",
"value": 6.8
},
{
"date": 5933,
"variable": "uempmed",
"value": 6.7
},
{
"date": 5963,
"variable": "uempmed",
"value": 6.8
},
{
"date": 5994,
"variable": "uempmed",
"value": 7
},
{
"date": 6024,
"variable": "uempmed",
"value": 6.9
},
{
"date": 6055,
"variable": "uempmed",
"value": 7.1
},
{
"date": 6086,
"variable": "uempmed",
"value": 7.4
},
{
"date": 6116,
"variable": "uempmed",
"value": 7
},
{
"date": 6147,
"variable": "uempmed",
"value": 7.1
},
{
"date": 6177,
"variable": "uempmed",
"value": 7.1
},
{
"date": 6208,
"variable": "uempmed",
"value": 6.9
},
{
"date": 6239,
"variable": "uempmed",
"value": 6.6
},
{
"date": 6267,
"variable": "uempmed",
"value": 6.6
},
{
"date": 6298,
"variable": "uempmed",
"value": 7.1
},
{
"date": 6328,
"variable": "uempmed",
"value": 6.6
},
{
"date": 6359,
"variable": "uempmed",
"value": 6.5
},
{
"date": 6389,
"variable": "uempmed",
"value": 6.5
},
{
"date": 6420,
"variable": "uempmed",
"value": 6.4
},
{
"date": 6451,
"variable": "uempmed",
"value": 6
},
{
"date": 6481,
"variable": "uempmed",
"value": 6.3
},
{
"date": 6512,
"variable": "uempmed",
"value": 6.2
},
{
"date": 6542,
"variable": "uempmed",
"value": 6
},
{
"date": 6573,
"variable": "uempmed",
"value": 6.2
},
{
"date": 6604,
"variable": "uempmed",
"value": 6.3
},
{
"date": 6633,
"variable": "uempmed",
"value": 6.4
},
{
"date": 6664,
"variable": "uempmed",
"value": 5.9
},
{
"date": 6694,
"variable": "uempmed",
"value": 5.9
},
{
"date": 6725,
"variable": "uempmed",
"value": 5.8
},
{
"date": 6755,
"variable": "uempmed",
"value": 6.1
},
{
"date": 6786,
"variable": "uempmed",
"value": 5.9
},
{
"date": 6817,
"variable": "uempmed",
"value": 5.7
},
{
"date": 6847,
"variable": "uempmed",
"value": 5.6
},
{
"date": 6878,
"variable": "uempmed",
"value": 5.7
},
{
"date": 6908,
"variable": "uempmed",
"value": 5.9
},
{
"date": 6939,
"variable": "uempmed",
"value": 5.6
},
{
"date": 6970,
"variable": "uempmed",
"value": 5.4
},
{
"date": 6998,
"variable": "uempmed",
"value": 5.4
},
{
"date": 7029,
"variable": "uempmed",
"value": 5.4
},
{
"date": 7059,
"variable": "uempmed",
"value": 5.3
},
{
"date": 7090,
"variable": "uempmed",
"value": 5.4
},
{
"date": 7120,
"variable": "uempmed",
"value": 5.6
},
{
"date": 7151,
"variable": "uempmed",
"value": 5
},
{
"date": 7182,
"variable": "uempmed",
"value": 4.9
},
{
"date": 7212,
"variable": "uempmed",
"value": 4.9
},
{
"date": 7243,
"variable": "uempmed",
"value": 4.8
},
{
"date": 7273,
"variable": "uempmed",
"value": 4.9
},
{
"date": 7304,
"variable": "uempmed",
"value": 5.1
},
{
"date": 7335,
"variable": "uempmed",
"value": 5.3
},
{
"date": 7363,
"variable": "uempmed",
"value": 5.1
},
{
"date": 7394,
"variable": "uempmed",
"value": 4.8
},
{
"date": 7424,
"variable": "uempmed",
"value": 5.2
},
{
"date": 7455,
"variable": "uempmed",
"value": 5.2
},
{
"date": 7485,
"variable": "uempmed",
"value": 5.4
},
{
"date": 7516,
"variable": "uempmed",
"value": 5.4
},
{
"date": 7547,
"variable": "uempmed",
"value": 5.6
},
{
"date": 7577,
"variable": "uempmed",
"value": 5.8
},
{
"date": 7608,
"variable": "uempmed",
"value": 5.7
},
{
"date": 7638,
"variable": "uempmed",
"value": 5.9
},
{
"date": 7669,
"variable": "uempmed",
"value": 6
},
{
"date": 7700,
"variable": "uempmed",
"value": 6.2
},
{
"date": 7728,
"variable": "uempmed",
"value": 6.7
},
{
"date": 7759,
"variable": "uempmed",
"value": 6.6
},
{
"date": 7789,
"variable": "uempmed",
"value": 6.4
},
{
"date": 7820,
"variable": "uempmed",
"value": 6.9
},
{
"date": 7850,
"variable": "uempmed",
"value": 7
},
{
"date": 7881,
"variable": "uempmed",
"value": 7.3
},
{
"date": 7912,
"variable": "uempmed",
"value": 6.8
},
{
"date": 7942,
"variable": "uempmed",
"value": 7.2
},
{
"date": 7973,
"variable": "uempmed",
"value": 7.5
},
{
"date": 8003,
"variable": "uempmed",
"value": 7.8
},
{
"date": 8034,
"variable": "uempmed",
"value": 8.1
},
{
"date": 8065,
"variable": "uempmed",
"value": 8.2
},
{
"date": 8094,
"variable": "uempmed",
"value": 8.3
},
{
"date": 8125,
"variable": "uempmed",
"value": 8.5
},
{
"date": 8155,
"variable": "uempmed",
"value": 8.8
},
{
"date": 8186,
"variable": "uempmed",
"value": 8.7
},
{
"date": 8216,
"variable": "uempmed",
"value": 8.6
},
{
"date": 8247,
"variable": "uempmed",
"value": 8.8
},
{
"date": 8278,
"variable": "uempmed",
"value": 8.6
},
{
"date": 8308,
"variable": "uempmed",
"value": 9
},
{
"date": 8339,
"variable": "uempmed",
"value": 9
},
{
"date": 8369,
"variable": "uempmed",
"value": 9.3
},
{
"date": 8400,
"variable": "uempmed",
"value": 8.6
},
{
"date": 8431,
"variable": "uempmed",
"value": 8.5
},
{
"date": 8459,
"variable": "uempmed",
"value": 8.5
},
{
"date": 8490,
"variable": "uempmed",
"value": 8.4
},
{
"date": 8520,
"variable": "uempmed",
"value": 8.1
},
{
"date": 8551,
"variable": "uempmed",
"value": 8.3
},
{
"date": 8581,
"variable": "uempmed",
"value": 8.2
},
{
"date": 8612,
"variable": "uempmed",
"value": 8.2
},
{
"date": 8643,
"variable": "uempmed",
"value": 8.3
},
{
"date": 8673,
"variable": "uempmed",
"value": 8
},
{
"date": 8704,
"variable": "uempmed",
"value": 8.3
},
{
"date": 8734,
"variable": "uempmed",
"value": 8.3
},
{
"date": 8765,
"variable": "uempmed",
"value": 8.6
},
{
"date": 8796,
"variable": "uempmed",
"value": 9.2
},
{
"date": 8824,
"variable": "uempmed",
"value": 9.3
},
{
"date": 8855,
"variable": "uempmed",
"value": 9.1
},
{
"date": 8885,
"variable": "uempmed",
"value": 9.2
},
{
"date": 8916,
"variable": "uempmed",
"value": 9.3
},
{
"date": 8946,
"variable": "uempmed",
"value": 9
},
{
"date": 8977,
"variable": "uempmed",
"value": 8.9
},
{
"date": 9008,
"variable": "uempmed",
"value": 9.2
},
{
"date": 9038,
"variable": "uempmed",
"value": 10
},
{
"date": 9069,
"variable": "uempmed",
"value": 9
},
{
"date": 9099,
"variable": "uempmed",
"value": 8.7
},
{
"date": 9130,
"variable": "uempmed",
"value": 8
},
{
"date": 9161,
"variable": "uempmed",
"value": 8.1
},
{
"date": 9189,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9220,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9250,
"variable": "uempmed",
"value": 9.1
},
{
"date": 9281,
"variable": "uempmed",
"value": 7.9
},
{
"date": 9311,
"variable": "uempmed",
"value": 8.5
},
{
"date": 9342,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9373,
"variable": "uempmed",
"value": 7.9
},
{
"date": 9403,
"variable": "uempmed",
"value": 8.2
},
{
"date": 9434,
"variable": "uempmed",
"value": 8
},
{
"date": 9464,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9495,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9526,
"variable": "uempmed",
"value": 7.8
},
{
"date": 9555,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9586,
"variable": "uempmed",
"value": 8.6
},
{
"date": 9616,
"variable": "uempmed",
"value": 8.6
},
{
"date": 9647,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9677,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9708,
"variable": "uempmed",
"value": 8.4
},
{
"date": 9739,
"variable": "uempmed",
"value": 8.5
},
{
"date": 9769,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9800,
"variable": "uempmed",
"value": 7.7
},
{
"date": 9830,
"variable": "uempmed",
"value": 7.8
},
{
"date": 9861,
"variable": "uempmed",
"value": 7.8
},
{
"date": 9892,
"variable": "uempmed",
"value": 8.1
},
{
"date": 9920,
"variable": "uempmed",
"value": 7.9
},
{
"date": 9951,
"variable": "uempmed",
"value": 8.3
},
{
"date": 9981,
"variable": "uempmed",
"value": 8
},
{
"date": 10012,
"variable": "uempmed",
"value": 8
},
{
"date": 10042,
"variable": "uempmed",
"value": 8.3
},
{
"date": 10073,
"variable": "uempmed",
"value": 7.8
},
{
"date": 10104,
"variable": "uempmed",
"value": 8.2
},
{
"date": 10134,
"variable": "uempmed",
"value": 7.7
},
{
"date": 10165,
"variable": "uempmed",
"value": 7.6
},
{
"date": 10195,
"variable": "uempmed",
"value": 7.5
},
{
"date": 10226,
"variable": "uempmed",
"value": 7.4
},
{
"date": 10257,
"variable": "uempmed",
"value": 7
},
{
"date": 10285,
"variable": "uempmed",
"value": 6.8
},
{
"date": 10316,
"variable": "uempmed",
"value": 6.7
},
{
"date": 10346,
"variable": "uempmed",
"value": 6
},
{
"date": 10377,
"variable": "uempmed",
"value": 6.9
},
{
"date": 10407,
"variable": "uempmed",
"value": 6.7
},
{
"date": 10438,
"variable": "uempmed",
"value": 6.8
},
{
"date": 10469,
"variable": "uempmed",
"value": 6.7
},
{
"date": 10499,
"variable": "uempmed",
"value": 5.8
},
{
"date": 10530,
"variable": "uempmed",
"value": 6.6
},
{
"date": 10560,
"variable": "uempmed",
"value": 6.8
},
{
"date": 10591,
"variable": "uempmed",
"value": 6.9
},
{
"date": 10622,
"variable": "uempmed",
"value": 6.8
},
{
"date": 10650,
"variable": "uempmed",
"value": 6.8
},
{
"date": 10681,
"variable": "uempmed",
"value": 6.2
},
{
"date": 10711,
"variable": "uempmed",
"value": 6.5
},
{
"date": 10742,
"variable": "uempmed",
"value": 6.3
},
{
"date": 10772,
"variable": "uempmed",
"value": 5.8
},
{
"date": 10803,
"variable": "uempmed",
"value": 6.5
},
{
"date": 10834,
"variable": "uempmed",
"value": 6
},
{
"date": 10864,
"variable": "uempmed",
"value": 6.1
},
{
"date": 10895,
"variable": "uempmed",
"value": 6.2
},
{
"date": 10925,
"variable": "uempmed",
"value": 5.8
},
{
"date": 10956,
"variable": "uempmed",
"value": 5.8
},
{
"date": 10987,
"variable": "uempmed",
"value": 6.1
},
{
"date": 11016,
"variable": "uempmed",
"value": 6
},
{
"date": 11047,
"variable": "uempmed",
"value": 6.1
},
{
"date": 11077,
"variable": "uempmed",
"value": 5.8
},
{
"date": 11108,
"variable": "uempmed",
"value": 5.7
},
{
"date": 11138,
"variable": "uempmed",
"value": 6
},
{
"date": 11169,
"variable": "uempmed",
"value": 6.3
},
{
"date": 11200,
"variable": "uempmed",
"value": 5.2
},
{
"date": 11230,
"variable": "uempmed",
"value": 6.1
},
{
"date": 11261,
"variable": "uempmed",
"value": 6.1
},
{
"date": 11291,
"variable": "uempmed",
"value": 6
},
{
"date": 11322,
"variable": "uempmed",
"value": 5.8
},
{
"date": 11353,
"variable": "uempmed",
"value": 6.1
},
{
"date": 11381,
"variable": "uempmed",
"value": 6.6
},
{
"date": 11412,
"variable": "uempmed",
"value": 5.9
},
{
"date": 11442,
"variable": "uempmed",
"value": 6.3
},
{
"date": 11473,
"variable": "uempmed",
"value": 6
},
{
"date": 11503,
"variable": "uempmed",
"value": 6.8
},
{
"date": 11534,
"variable": "uempmed",
"value": 6.9
},
{
"date": 11565,
"variable": "uempmed",
"value": 7.2
},
{
"date": 11595,
"variable": "uempmed",
"value": 7.3
},
{
"date": 11626,
"variable": "uempmed",
"value": 7.7
},
{
"date": 11656,
"variable": "uempmed",
"value": 8.2
},
{
"date": 11687,
"variable": "uempmed",
"value": 8.4
},
{
"date": 11718,
"variable": "uempmed",
"value": 8.3
},
{
"date": 11746,
"variable": "uempmed",
"value": 8.4
},
{
"date": 11777,
"variable": "uempmed",
"value": 8.9
},
{
"date": 11807,
"variable": "uempmed",
"value": 9.5
},
{
"date": 11838,
"variable": "uempmed",
"value": 11
},
{
"date": 11868,
"variable": "uempmed",
"value": 8.9
},
{
"date": 11899,
"variable": "uempmed",
"value": 9
},
{
"date": 11930,
"variable": "uempmed",
"value": 9.5
},
{
"date": 11960,
"variable": "uempmed",
"value": 9.6
},
{
"date": 11991,
"variable": "uempmed",
"value": 9.3
},
{
"date": 12021,
"variable": "uempmed",
"value": 9.6
},
{
"date": 12052,
"variable": "uempmed",
"value": 9.6
},
{
"date": 12083,
"variable": "uempmed",
"value": 9.5
},
{
"date": 12111,
"variable": "uempmed",
"value": 9.7
},
{
"date": 12142,
"variable": "uempmed",
"value": 10.2
},
{
"date": 12172,
"variable": "uempmed",
"value": 9.9
},
{
"date": 12203,
"variable": "uempmed",
"value": 11.5
},
{
"date": 12233,
"variable": "uempmed",
"value": 10.3
},
{
"date": 12264,
"variable": "uempmed",
"value": 10.1
},
{
"date": 12295,
"variable": "uempmed",
"value": 10.2
},
{
"date": 12325,
"variable": "uempmed",
"value": 10.4
},
{
"date": 12356,
"variable": "uempmed",
"value": 10.3
},
{
"date": 12386,
"variable": "uempmed",
"value": 10.4
},
{
"date": 12417,
"variable": "uempmed",
"value": 10.6
},
{
"date": 12448,
"variable": "uempmed",
"value": 10.2
},
{
"date": 12477,
"variable": "uempmed",
"value": 10.2
},
{
"date": 12508,
"variable": "uempmed",
"value": 9.5
},
{
"date": 12538,
"variable": "uempmed",
"value": 9.9
},
{
"date": 12569,
"variable": "uempmed",
"value": 10.9
},
{
"date": 12599,
"variable": "uempmed",
"value": 8.9
},
{
"date": 12630,
"variable": "uempmed",
"value": 9.3
},
{
"date": 12661,
"variable": "uempmed",
"value": 9.6
},
{
"date": 12691,
"variable": "uempmed",
"value": 9.5
},
{
"date": 12722,
"variable": "uempmed",
"value": 9.7
},
{
"date": 12752,
"variable": "uempmed",
"value": 9.4
},
{
"date": 12783,
"variable": "uempmed",
"value": 9.4
},
{
"date": 12814,
"variable": "uempmed",
"value": 9.1
},
{
"date": 12842,
"variable": "uempmed",
"value": 9.2
},
{
"date": 12873,
"variable": "uempmed",
"value": 9
},
{
"date": 12903,
"variable": "uempmed",
"value": 9.1
},
{
"date": 12934,
"variable": "uempmed",
"value": 9.2
},
{
"date": 12964,
"variable": "uempmed",
"value": 9
},
{
"date": 12995,
"variable": "uempmed",
"value": 9.2
},
{
"date": 13026,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13056,
"variable": "uempmed",
"value": 8.6
},
{
"date": 13087,
"variable": "uempmed",
"value": 8.4
},
{
"date": 13117,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13148,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13179,
"variable": "uempmed",
"value": 8.9
},
{
"date": 13207,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13238,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13268,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13299,
"variable": "uempmed",
"value": 7.6
},
{
"date": 13329,
"variable": "uempmed",
"value": 8.2
},
{
"date": 13360,
"variable": "uempmed",
"value": 8.4
},
{
"date": 13391,
"variable": "uempmed",
"value": 8.1
},
{
"date": 13421,
"variable": "uempmed",
"value": 8
},
{
"date": 13452,
"variable": "uempmed",
"value": 8.2
},
{
"date": 13482,
"variable": "uempmed",
"value": 7.3
},
{
"date": 13513,
"variable": "uempmed",
"value": 8.1
},
{
"date": 13544,
"variable": "uempmed",
"value": 8.1
},
{
"date": 13572,
"variable": "uempmed",
"value": 8.5
},
{
"date": 13603,
"variable": "uempmed",
"value": 8.7
},
{
"date": -916,
"variable": "psavert",
"value": 9.8
},
{
"date": -885,
"variable": "psavert",
"value": 9.8
},
{
"date": -854,
"variable": "psavert",
"value": 9
},
{
"date": -824,
"variable": "psavert",
"value": 9.8
},
{
"date": -793,
"variable": "psavert",
"value": 9.7
},
{
"date": -763,
"variable": "psavert",
"value": 9.4
},
{
"date": -732,
"variable": "psavert",
"value": 9
},
{
"date": -701,
"variable": "psavert",
"value": 9.5
},
{
"date": -672,
"variable": "psavert",
"value": 8.9
},
{
"date": -641,
"variable": "psavert",
"value": 9.6
},
{
"date": -611,
"variable": "psavert",
"value": 9.3
},
{
"date": -580,
"variable": "psavert",
"value": 8.9
},
{
"date": -550,
"variable": "psavert",
"value": 7.8
},
{
"date": -519,
"variable": "psavert",
"value": 7.6
},
{
"date": -488,
"variable": "psavert",
"value": 7.6
},
{
"date": -458,
"variable": "psavert",
"value": 7.8
},
{
"date": -427,
"variable": "psavert",
"value": 7.6
},
{
"date": -397,
"variable": "psavert",
"value": 8.1
},
{
"date": -366,
"variable": "psavert",
"value": 7.1
},
{
"date": -335,
"variable": "psavert",
"value": 6.5
},
{
"date": -307,
"variable": "psavert",
"value": 7
},
{
"date": -276,
"variable": "psavert",
"value": 6.6
},
{
"date": -246,
"variable": "psavert",
"value": 7
},
{
"date": -215,
"variable": "psavert",
"value": 7.9
},
{
"date": -185,
"variable": "psavert",
"value": 8.7
},
{
"date": -154,
"variable": "psavert",
"value": 8.5
},
{
"date": -123,
"variable": "psavert",
"value": 8.5
},
{
"date": -93,
"variable": "psavert",
"value": 8.3
},
{
"date": -62,
"variable": "psavert",
"value": 8.5
},
{
"date": -32,
"variable": "psavert",
"value": 8.6
},
{
"date": -1,
"variable": "psavert",
"value": 8.3
},
{
"date": 30,
"variable": "psavert",
"value": 8.1
},
{
"date": 58,
"variable": "psavert",
"value": 8.8
},
{
"date": 89,
"variable": "psavert",
"value": 10.5
},
{
"date": 119,
"variable": "psavert",
"value": 9.4
},
{
"date": 150,
"variable": "psavert",
"value": 8.7
},
{
"date": 180,
"variable": "psavert",
"value": 10
},
{
"date": 211,
"variable": "psavert",
"value": 10
},
{
"date": 242,
"variable": "psavert",
"value": 9.8
},
{
"date": 272,
"variable": "psavert",
"value": 9.8
},
{
"date": 303,
"variable": "psavert",
"value": 10.1
},
{
"date": 333,
"variable": "psavert",
"value": 9.7
},
{
"date": 364,
"variable": "psavert",
"value": 10
},
{
"date": 395,
"variable": "psavert",
"value": 9.9
},
{
"date": 423,
"variable": "psavert",
"value": 10.2
},
{
"date": 454,
"variable": "psavert",
"value": 9.9
},
{
"date": 484,
"variable": "psavert",
"value": 10.2
},
{
"date": 515,
"variable": "psavert",
"value": 11.4
},
{
"date": 545,
"variable": "psavert",
"value": 10.4
},
{
"date": 576,
"variable": "psavert",
"value": 10.3
},
{
"date": 607,
"variable": "psavert",
"value": 9.7
},
{
"date": 637,
"variable": "psavert",
"value": 9.6
},
{
"date": 668,
"variable": "psavert",
"value": 9.5
},
{
"date": 698,
"variable": "psavert",
"value": 9.5
},
{
"date": 729,
"variable": "psavert",
"value": 9.1
},
{
"date": 760,
"variable": "psavert",
"value": 9.4
},
{
"date": 789,
"variable": "psavert",
"value": 8.2
},
{
"date": 820,
"variable": "psavert",
"value": 8.3
},
{
"date": 850,
"variable": "psavert",
"value": 8.5
},
{
"date": 881,
"variable": "psavert",
"value": 7.2
},
{
"date": 911,
"variable": "psavert",
"value": 8.2
},
{
"date": 942,
"variable": "psavert",
"value": 8.6
},
{
"date": 973,
"variable": "psavert",
"value": 8.8
},
{
"date": 1003,
"variable": "psavert",
"value": 9.5
},
{
"date": 1034,
"variable": "psavert",
"value": 10.2
},
{
"date": 1064,
"variable": "psavert",
"value": 10.3
},
{
"date": 1095,
"variable": "psavert",
"value": 9.1
},
{
"date": 1126,
"variable": "psavert",
"value": 9.5
},
{
"date": 1154,
"variable": "psavert",
"value": 9.7
},
{
"date": 1185,
"variable": "psavert",
"value": 10
},
{
"date": 1215,
"variable": "psavert",
"value": 10.2
},
{
"date": 1246,
"variable": "psavert",
"value": 10.7
},
{
"date": 1276,
"variable": "psavert",
"value": 10.2
},
{
"date": 1307,
"variable": "psavert",
"value": 11
},
{
"date": 1338,
"variable": "psavert",
"value": 10.2
},
{
"date": 1368,
"variable": "psavert",
"value": 11.5
},
{
"date": 1399,
"variable": "psavert",
"value": 11.6
},
{
"date": 1429,
"variable": "psavert",
"value": 12
},
{
"date": 1460,
"variable": "psavert",
"value": 11.6
},
{
"date": 1491,
"variable": "psavert",
"value": 11.4
},
{
"date": 1519,
"variable": "psavert",
"value": 10.6
},
{
"date": 1550,
"variable": "psavert",
"value": 10.2
},
{
"date": 1580,
"variable": "psavert",
"value": 10
},
{
"date": 1611,
"variable": "psavert",
"value": 10.2
},
{
"date": 1641,
"variable": "psavert",
"value": 10.6
},
{
"date": 1672,
"variable": "psavert",
"value": 9.5
},
{
"date": 1703,
"variable": "psavert",
"value": 10.2
},
{
"date": 1733,
"variable": "psavert",
"value": 10.7
},
{
"date": 1764,
"variable": "psavert",
"value": 11.1
},
{
"date": 1794,
"variable": "psavert",
"value": 11.1
},
{
"date": 1825,
"variable": "psavert",
"value": 10.3
},
{
"date": 1856,
"variable": "psavert",
"value": 9.5
},
{
"date": 1884,
"variable": "psavert",
"value": 9.7
},
{
"date": 1915,
"variable": "psavert",
"value": 11.3
},
{
"date": 1945,
"variable": "psavert",
"value": 14.6
},
{
"date": 1976,
"variable": "psavert",
"value": 11.4
},
{
"date": 2006,
"variable": "psavert",
"value": 9.7
},
{
"date": 2037,
"variable": "psavert",
"value": 10.1
},
{
"date": 2068,
"variable": "psavert",
"value": 10.2
},
{
"date": 2098,
"variable": "psavert",
"value": 10.7
},
{
"date": 2129,
"variable": "psavert",
"value": 10
},
{
"date": 2159,
"variable": "psavert",
"value": 9.3
},
{
"date": 2190,
"variable": "psavert",
"value": 9.2
},
{
"date": 2221,
"variable": "psavert",
"value": 9.9
},
{
"date": 2250,
"variable": "psavert",
"value": 9.8
},
{
"date": 2281,
"variable": "psavert",
"value": 9.4
},
{
"date": 2311,
"variable": "psavert",
"value": 10.1
},
{
"date": 2342,
"variable": "psavert",
"value": 9.2
},
{
"date": 2372,
"variable": "psavert",
"value": 9.5
},
{
"date": 2403,
"variable": "psavert",
"value": 9.6
},
{
"date": 2434,
"variable": "psavert",
"value": 9.3
},
{
"date": 2464,
"variable": "psavert",
"value": 9
},
{
"date": 2495,
"variable": "psavert",
"value": 9.4
},
{
"date": 2525,
"variable": "psavert",
"value": 8.4
},
{
"date": 2556,
"variable": "psavert",
"value": 8.5
},
{
"date": 2587,
"variable": "psavert",
"value": 7.1
},
{
"date": 2615,
"variable": "psavert",
"value": 8.4
},
{
"date": 2646,
"variable": "psavert",
"value": 8.4
},
{
"date": 2676,
"variable": "psavert",
"value": 8.3
},
{
"date": 2707,
"variable": "psavert",
"value": 8.7
},
{
"date": 2737,
"variable": "psavert",
"value": 8.6
},
{
"date": 2768,
"variable": "psavert",
"value": 9
},
{
"date": 2799,
"variable": "psavert",
"value": 9.3
},
{
"date": 2829,
"variable": "psavert",
"value": 9.4
},
{
"date": 2860,
"variable": "psavert",
"value": 9.4
},
{
"date": 2890,
"variable": "psavert",
"value": 9.4
},
{
"date": 2921,
"variable": "psavert",
"value": 9.9
},
{
"date": 2952,
"variable": "psavert",
"value": 9.1
},
{
"date": 2980,
"variable": "psavert",
"value": 9.1
},
{
"date": 3011,
"variable": "psavert",
"value": 8.9
},
{
"date": 3041,
"variable": "psavert",
"value": 8.5
},
{
"date": 3072,
"variable": "psavert",
"value": 8.1
},
{
"date": 3102,
"variable": "psavert",
"value": 9.1
},
{
"date": 3133,
"variable": "psavert",
"value": 8.5
},
{
"date": 3164,
"variable": "psavert",
"value": 8.8
},
{
"date": 3194,
"variable": "psavert",
"value": 8.9
},
{
"date": 3225,
"variable": "psavert",
"value": 8.8
},
{
"date": 3255,
"variable": "psavert",
"value": 8.7
},
{
"date": 3286,
"variable": "psavert",
"value": 9.4
},
{
"date": 3317,
"variable": "psavert",
"value": 9.3
},
{
"date": 3345,
"variable": "psavert",
"value": 9.5
},
{
"date": 3376,
"variable": "psavert",
"value": 9.2
},
{
"date": 3406,
"variable": "psavert",
"value": 8.8
},
{
"date": 3437,
"variable": "psavert",
"value": 8.4
},
{
"date": 3467,
"variable": "psavert",
"value": 9.1
},
{
"date": 3498,
"variable": "psavert",
"value": 8.3
},
{
"date": 3529,
"variable": "psavert",
"value": 7.9
},
{
"date": 3559,
"variable": "psavert",
"value": 8.7
},
{
"date": 3590,
"variable": "psavert",
"value": 8.8
},
{
"date": 3620,
"variable": "psavert",
"value": 9.3
},
{
"date": 3651,
"variable": "psavert",
"value": 9.3
},
{
"date": 3682,
"variable": "psavert",
"value": 9.6
},
{
"date": 3711,
"variable": "psavert",
"value": 9.7
},
{
"date": 3742,
"variable": "psavert",
"value": 10.1
},
{
"date": 3772,
"variable": "psavert",
"value": 10
},
{
"date": 3803,
"variable": "psavert",
"value": 9.7
},
{
"date": 3833,
"variable": "psavert",
"value": 9.8
},
{
"date": 3864,
"variable": "psavert",
"value": 9.8
},
{
"date": 3895,
"variable": "psavert",
"value": 10.3
},
{
"date": 3925,
"variable": "psavert",
"value": 10.4
},
{
"date": 3956,
"variable": "psavert",
"value": 10.9
},
{
"date": 3986,
"variable": "psavert",
"value": 10.7
},
{
"date": 4017,
"variable": "psavert",
"value": 9.9
},
{
"date": 4048,
"variable": "psavert",
"value": 9.8
},
{
"date": 4076,
"variable": "psavert",
"value": 9.7
},
{
"date": 4107,
"variable": "psavert",
"value": 9.8
},
{
"date": 4137,
"variable": "psavert",
"value": 10
},
{
"date": 4168,
"variable": "psavert",
"value": 9.9
},
{
"date": 4198,
"variable": "psavert",
"value": 11.4
},
{
"date": 4229,
"variable": "psavert",
"value": 11.2
},
{
"date": 4260,
"variable": "psavert",
"value": 11.7
},
{
"date": 4290,
"variable": "psavert",
"value": 12.5
},
{
"date": 4321,
"variable": "psavert",
"value": 12.5
},
{
"date": 4351,
"variable": "psavert",
"value": 11.7
},
{
"date": 4382,
"variable": "psavert",
"value": 11.9
},
{
"date": 4413,
"variable": "psavert",
"value": 11.3
},
{
"date": 4441,
"variable": "psavert",
"value": 11.5
},
{
"date": 4472,
"variable": "psavert",
"value": 12.2
},
{
"date": 4502,
"variable": "psavert",
"value": 11.6
},
{
"date": 4533,
"variable": "psavert",
"value": 11.5
},
{
"date": 4563,
"variable": "psavert",
"value": 11.9
},
{
"date": 4594,
"variable": "psavert",
"value": 11.7
},
{
"date": 4625,
"variable": "psavert",
"value": 10.8
},
{
"date": 4655,
"variable": "psavert",
"value": 10.3
},
{
"date": 4686,
"variable": "psavert",
"value": 9.9
},
{
"date": 4716,
"variable": "psavert",
"value": 9.7
},
{
"date": 4747,
"variable": "psavert",
"value": 9.9
},
{
"date": 4778,
"variable": "psavert",
"value": 10
},
{
"date": 4806,
"variable": "psavert",
"value": 9.5
},
{
"date": 4837,
"variable": "psavert",
"value": 9.1
},
{
"date": 4867,
"variable": "psavert",
"value": 8.9
},
{
"date": 4898,
"variable": "psavert",
"value": 8.1
},
{
"date": 4928,
"variable": "psavert",
"value": 8.6
},
{
"date": 4959,
"variable": "psavert",
"value": 8
},
{
"date": 4990,
"variable": "psavert",
"value": 8.5
},
{
"date": 5020,
"variable": "psavert",
"value": 8.6
},
{
"date": 5051,
"variable": "psavert",
"value": 9.2
},
{
"date": 5081,
"variable": "psavert",
"value": 9.1
},
{
"date": 5112,
"variable": "psavert",
"value": 9.4
},
{
"date": 5143,
"variable": "psavert",
"value": 10.8
},
{
"date": 5172,
"variable": "psavert",
"value": 10.6
},
{
"date": 5203,
"variable": "psavert",
"value": 10.8
},
{
"date": 5233,
"variable": "psavert",
"value": 10.5
},
{
"date": 5264,
"variable": "psavert",
"value": 10.6
},
{
"date": 5294,
"variable": "psavert",
"value": 11.4
},
{
"date": 5325,
"variable": "psavert",
"value": 11.3
},
{
"date": 5356,
"variable": "psavert",
"value": 11.2
},
{
"date": 5386,
"variable": "psavert",
"value": 11.4
},
{
"date": 5417,
"variable": "psavert",
"value": 10.6
},
{
"date": 5447,
"variable": "psavert",
"value": 11
},
{
"date": 5478,
"variable": "psavert",
"value": 10.3
},
{
"date": 5509,
"variable": "psavert",
"value": 9.1
},
{
"date": 5537,
"variable": "psavert",
"value": 8.7
},
{
"date": 5568,
"variable": "psavert",
"value": 10.1
},
{
"date": 5598,
"variable": "psavert",
"value": 11.1
},
{
"date": 5629,
"variable": "psavert",
"value": 9.5
},
{
"date": 5659,
"variable": "psavert",
"value": 8.9
},
{
"date": 5690,
"variable": "psavert",
"value": 8
},
{
"date": 5721,
"variable": "psavert",
"value": 6.8
},
{
"date": 5751,
"variable": "psavert",
"value": 8.9
},
{
"date": 5782,
"variable": "psavert",
"value": 8.5
},
{
"date": 5812,
"variable": "psavert",
"value": 8.3
},
{
"date": 5843,
"variable": "psavert",
"value": 8.2
},
{
"date": 5874,
"variable": "psavert",
"value": 8.9
},
{
"date": 5902,
"variable": "psavert",
"value": 9.5
},
{
"date": 5933,
"variable": "psavert",
"value": 9.1
},
{
"date": 5963,
"variable": "psavert",
"value": 8.7
},
{
"date": 5994,
"variable": "psavert",
"value": 8.9
},
{
"date": 6024,
"variable": "psavert",
"value": 8.6
},
{
"date": 6055,
"variable": "psavert",
"value": 8.3
},
{
"date": 6086,
"variable": "psavert",
"value": 6.4
},
{
"date": 6116,
"variable": "psavert",
"value": 7.5
},
{
"date": 6147,
"variable": "psavert",
"value": 8.1
},
{
"date": 6177,
"variable": "psavert",
"value": 5.9
},
{
"date": 6208,
"variable": "psavert",
"value": 8.8
},
{
"date": 6239,
"variable": "psavert",
"value": 7.6
},
{
"date": 6267,
"variable": "psavert",
"value": 7.7
},
{
"date": 6298,
"variable": "psavert",
"value": 3.5
},
{
"date": 6328,
"variable": "psavert",
"value": 7.2
},
{
"date": 6359,
"variable": "psavert",
"value": 6.7
},
{
"date": 6389,
"variable": "psavert",
"value": 6.5
},
{
"date": 6420,
"variable": "psavert",
"value": 6.2
},
{
"date": 6451,
"variable": "psavert",
"value": 6.7
},
{
"date": 6481,
"variable": "psavert",
"value": 7.4
},
{
"date": 6512,
"variable": "psavert",
"value": 7.6
},
{
"date": 6542,
"variable": "psavert",
"value": 7.7
},
{
"date": 6573,
"variable": "psavert",
"value": 7
},
{
"date": 6604,
"variable": "psavert",
"value": 7.5
},
{
"date": 6633,
"variable": "psavert",
"value": 7.2
},
{
"date": 6664,
"variable": "psavert",
"value": 7.6
},
{
"date": 6694,
"variable": "psavert",
"value": 7.2
},
{
"date": 6725,
"variable": "psavert",
"value": 7.3
},
{
"date": 6755,
"variable": "psavert",
"value": 7.5
},
{
"date": 6786,
"variable": "psavert",
"value": 7.2
},
{
"date": 6817,
"variable": "psavert",
"value": 7.5
},
{
"date": 6847,
"variable": "psavert",
"value": 7.2
},
{
"date": 6878,
"variable": "psavert",
"value": 7
},
{
"date": 6908,
"variable": "psavert",
"value": 7.2
},
{
"date": 6939,
"variable": "psavert",
"value": 7.6
},
{
"date": 6970,
"variable": "psavert",
"value": 7.9
},
{
"date": 6998,
"variable": "psavert",
"value": 8.3
},
{
"date": 7029,
"variable": "psavert",
"value": 7.3
},
{
"date": 7059,
"variable": "psavert",
"value": 7
},
{
"date": 7090,
"variable": "psavert",
"value": 7.1
},
{
"date": 7120,
"variable": "psavert",
"value": 7.1
},
{
"date": 7151,
"variable": "psavert",
"value": 6.4
},
{
"date": 7182,
"variable": "psavert",
"value": 6.6
},
{
"date": 7212,
"variable": "psavert",
"value": 6.8
},
{
"date": 7243,
"variable": "psavert",
"value": 7.2
},
{
"date": 7273,
"variable": "psavert",
"value": 6.5
},
{
"date": 7304,
"variable": "psavert",
"value": 6.6
},
{
"date": 7335,
"variable": "psavert",
"value": 7.3
},
{
"date": 7363,
"variable": "psavert",
"value": 7
},
{
"date": 7394,
"variable": "psavert",
"value": 7.3
},
{
"date": 7424,
"variable": "psavert",
"value": 7.2
},
{
"date": 7455,
"variable": "psavert",
"value": 7.1
},
{
"date": 7485,
"variable": "psavert",
"value": 7.2
},
{
"date": 7516,
"variable": "psavert",
"value": 6.7
},
{
"date": 7547,
"variable": "psavert",
"value": 6.7
},
{
"date": 7577,
"variable": "psavert",
"value": 6.6
},
{
"date": 7608,
"variable": "psavert",
"value": 6.7
},
{
"date": 7638,
"variable": "psavert",
"value": 7.3
},
{
"date": 7669,
"variable": "psavert",
"value": 7.9
},
{
"date": 7700,
"variable": "psavert",
"value": 7.5
},
{
"date": 7728,
"variable": "psavert",
"value": 6.6
},
{
"date": 7759,
"variable": "psavert",
"value": 7.1
},
{
"date": 7789,
"variable": "psavert",
"value": 6.9
},
{
"date": 7820,
"variable": "psavert",
"value": 7.4
},
{
"date": 7850,
"variable": "psavert",
"value": 6.8
},
{
"date": 7881,
"variable": "psavert",
"value": 7
},
{
"date": 7912,
"variable": "psavert",
"value": 7.2
},
{
"date": 7942,
"variable": "psavert",
"value": 7.5
},
{
"date": 7973,
"variable": "psavert",
"value": 7.3
},
{
"date": 8003,
"variable": "psavert",
"value": 7.9
},
{
"date": 8034,
"variable": "psavert",
"value": 7.4
},
{
"date": 8065,
"variable": "psavert",
"value": 7.9
},
{
"date": 8094,
"variable": "psavert",
"value": 7.9
},
{
"date": 8125,
"variable": "psavert",
"value": 8
},
{
"date": 8155,
"variable": "psavert",
"value": 7.9
},
{
"date": 8186,
"variable": "psavert",
"value": 7.8
},
{
"date": 8216,
"variable": "psavert",
"value": 7.5
},
{
"date": 8247,
"variable": "psavert",
"value": 7.6
},
{
"date": 8278,
"variable": "psavert",
"value": 6.9
},
{
"date": 8308,
"variable": "psavert",
"value": 7.1
},
{
"date": 8339,
"variable": "psavert",
"value": 7
},
{
"date": 8369,
"variable": "psavert",
"value": 9.4
},
{
"date": 8400,
"variable": "psavert",
"value": 5.8
},
{
"date": 8431,
"variable": "psavert",
"value": 5.6
},
{
"date": 8459,
"variable": "psavert",
"value": 5.6
},
{
"date": 8490,
"variable": "psavert",
"value": 6.4
},
{
"date": 8520,
"variable": "psavert",
"value": 6.3
},
{
"date": 8551,
"variable": "psavert",
"value": 5.9
},
{
"date": 8581,
"variable": "psavert",
"value": 5.4
},
{
"date": 8612,
"variable": "psavert",
"value": 5.6
},
{
"date": 8643,
"variable": "psavert",
"value": 5
},
{
"date": 8673,
"variable": "psavert",
"value": 5
},
{
"date": 8704,
"variable": "psavert",
"value": 5
},
{
"date": 8734,
"variable": "psavert",
"value": 7.6
},
{
"date": 8765,
"variable": "psavert",
"value": 4
},
{
"date": 8796,
"variable": "psavert",
"value": 3.9
},
{
"date": 8824,
"variable": "psavert",
"value": 4.3
},
{
"date": 8855,
"variable": "psavert",
"value": 4.2
},
{
"date": 8885,
"variable": "psavert",
"value": 5.8
},
{
"date": 8916,
"variable": "psavert",
"value": 5.1
},
{
"date": 8946,
"variable": "psavert",
"value": 5.1
},
{
"date": 8977,
"variable": "psavert",
"value": 4.7
},
{
"date": 9008,
"variable": "psavert",
"value": 5
},
{
"date": 9038,
"variable": "psavert",
"value": 5.3
},
{
"date": 9069,
"variable": "psavert",
"value": 5.2
},
{
"date": 9099,
"variable": "psavert",
"value": 5.3
},
{
"date": 9130,
"variable": "psavert",
"value": 5.6
},
{
"date": 9161,
"variable": "psavert",
"value": 5.9
},
{
"date": 9189,
"variable": "psavert",
"value": 5.5
},
{
"date": 9220,
"variable": "psavert",
"value": 4.8
},
{
"date": 9250,
"variable": "psavert",
"value": 4.9
},
{
"date": 9281,
"variable": "psavert",
"value": 4.4
},
{
"date": 9311,
"variable": "psavert",
"value": 4.6
},
{
"date": 9342,
"variable": "psavert",
"value": 4.1
},
{
"date": 9373,
"variable": "psavert",
"value": 4.1
},
{
"date": 9403,
"variable": "psavert",
"value": 4.4
},
{
"date": 9434,
"variable": "psavert",
"value": 3.9
},
{
"date": 9464,
"variable": "psavert",
"value": 3.6
},
{
"date": 9495,
"variable": "psavert",
"value": 4.2
},
{
"date": 9526,
"variable": "psavert",
"value": 4.3
},
{
"date": 9555,
"variable": "psavert",
"value": 4.2
},
{
"date": 9586,
"variable": "psavert",
"value": 3.1
},
{
"date": 9616,
"variable": "psavert",
"value": 4.1
},
{
"date": 9647,
"variable": "psavert",
"value": 4.5
},
{
"date": 9677,
"variable": "psavert",
"value": 4.1
},
{
"date": 9708,
"variable": "psavert",
"value": 4.1
},
{
"date": 9739,
"variable": "psavert",
"value": 4.1
},
{
"date": 9769,
"variable": "psavert",
"value": 3.8
},
{
"date": 9800,
"variable": "psavert",
"value": 3.8
},
{
"date": 9830,
"variable": "psavert",
"value": 3.8
},
{
"date": 9861,
"variable": "psavert",
"value": 3.7
},
{
"date": 9892,
"variable": "psavert",
"value": 3.5
},
{
"date": 9920,
"variable": "psavert",
"value": 3.7
},
{
"date": 9951,
"variable": "psavert",
"value": 3.8
},
{
"date": 9981,
"variable": "psavert",
"value": 4
},
{
"date": 10012,
"variable": "psavert",
"value": 3.9
},
{
"date": 10042,
"variable": "psavert",
"value": 3.3
},
{
"date": 10073,
"variable": "psavert",
"value": 3.3
},
{
"date": 10104,
"variable": "psavert",
"value": 3.6
},
{
"date": 10134,
"variable": "psavert",
"value": 3.5
},
{
"date": 10165,
"variable": "psavert",
"value": 3.7
},
{
"date": 10195,
"variable": "psavert",
"value": 3.8
},
{
"date": 10226,
"variable": "psavert",
"value": 4.6
},
{
"date": 10257,
"variable": "psavert",
"value": 4.6
},
{
"date": 10285,
"variable": "psavert",
"value": 4.7
},
{
"date": 10316,
"variable": "psavert",
"value": 4.7
},
{
"date": 10346,
"variable": "psavert",
"value": 4.4
},
{
"date": 10377,
"variable": "psavert",
"value": 4.4
},
{
"date": 10407,
"variable": "psavert",
"value": 4.5
},
{
"date": 10438,
"variable": "psavert",
"value": 4.3
},
{
"date": 10469,
"variable": "psavert",
"value": 4.2
},
{
"date": 10499,
"variable": "psavert",
"value": 3.9
},
{
"date": 10530,
"variable": "psavert",
"value": 4
},
{
"date": 10560,
"variable": "psavert",
"value": 3.5
},
{
"date": 10591,
"variable": "psavert",
"value": 4
},
{
"date": 10622,
"variable": "psavert",
"value": 3.7
},
{
"date": 10650,
"variable": "psavert",
"value": 3.3
},
{
"date": 10681,
"variable": "psavert",
"value": 2.5
},
{
"date": 10711,
"variable": "psavert",
"value": 2.1
},
{
"date": 10742,
"variable": "psavert",
"value": 2.1
},
{
"date": 10772,
"variable": "psavert",
"value": 1.9
},
{
"date": 10803,
"variable": "psavert",
"value": 1.8
},
{
"date": 10834,
"variable": "psavert",
"value": 1.4
},
{
"date": 10864,
"variable": "psavert",
"value": 2
},
{
"date": 10895,
"variable": "psavert",
"value": 2.1
},
{
"date": 10925,
"variable": "psavert",
"value": 1.6
},
{
"date": 10956,
"variable": "psavert",
"value": 2.9
},
{
"date": 10987,
"variable": "psavert",
"value": 2.4
},
{
"date": 11016,
"variable": "psavert",
"value": 2
},
{
"date": 11047,
"variable": "psavert",
"value": 2.4
},
{
"date": 11077,
"variable": "psavert",
"value": 2.4
},
{
"date": 11108,
"variable": "psavert",
"value": 2.5
},
{
"date": 11138,
"variable": "psavert",
"value": 2.9
},
{
"date": 11169,
"variable": "psavert",
"value": 2.8
},
{
"date": 11200,
"variable": "psavert",
"value": 2.2
},
{
"date": 11230,
"variable": "psavert",
"value": 2.3
},
{
"date": 11261,
"variable": "psavert",
"value": 2.1
},
{
"date": 11291,
"variable": "psavert",
"value": 1.5
},
{
"date": 11322,
"variable": "psavert",
"value": 1.9
},
{
"date": 11353,
"variable": "psavert",
"value": 1.7
},
{
"date": 11381,
"variable": "psavert",
"value": 2
},
{
"date": 11412,
"variable": "psavert",
"value": 1.6
},
{
"date": 11442,
"variable": "psavert",
"value": 1
},
{
"date": 11473,
"variable": "psavert",
"value": 1.1
},
{
"date": 11503,
"variable": "psavert",
"value": 2.4
},
{
"date": 11534,
"variable": "psavert",
"value": 3.7
},
{
"date": 11565,
"variable": "psavert",
"value": 4.2
},
{
"date": 11595,
"variable": "psavert",
"value": -0.2
},
{
"date": 11626,
"variable": "psavert",
"value": 0.7
},
{
"date": 11656,
"variable": "psavert",
"value": 1.1
},
{
"date": 11687,
"variable": "psavert",
"value": 2.9
},
{
"date": 11718,
"variable": "psavert",
"value": 2.8
},
{
"date": 11746,
"variable": "psavert",
"value": 3
},
{
"date": 11777,
"variable": "psavert",
"value": 2.6
},
{
"date": 11807,
"variable": "psavert",
"value": 3.1
},
{
"date": 11838,
"variable": "psavert",
"value": 2.8
},
{
"date": 11868,
"variable": "psavert",
"value": 1.9
},
{
"date": 11899,
"variable": "psavert",
"value": 1.7
},
{
"date": 11930,
"variable": "psavert",
"value": 2.2
},
{
"date": 11960,
"variable": "psavert",
"value": 2
},
{
"date": 11991,
"variable": "psavert",
"value": 1.8
},
{
"date": 12021,
"variable": "psavert",
"value": 1.5
},
{
"date": 12052,
"variable": "psavert",
"value": 1.8
},
{
"date": 12083,
"variable": "psavert",
"value": 2
},
{
"date": 12111,
"variable": "psavert",
"value": 1.7
},
{
"date": 12142,
"variable": "psavert",
"value": 2
},
{
"date": 12172,
"variable": "psavert",
"value": 2.3
},
{
"date": 12203,
"variable": "psavert",
"value": 2.1
},
{
"date": 12233,
"variable": "psavert",
"value": 2.8
},
{
"date": 12264,
"variable": "psavert",
"value": 2.5
},
{
"date": 12295,
"variable": "psavert",
"value": 1.7
},
{
"date": 12325,
"variable": "psavert",
"value": 2.1
},
{
"date": 12356,
"variable": "psavert",
"value": 2.2
},
{
"date": 12386,
"variable": "psavert",
"value": 2.4
},
{
"date": 12417,
"variable": "psavert",
"value": 2.1
},
{
"date": 12448,
"variable": "psavert",
"value": 2.3
},
{
"date": 12477,
"variable": "psavert",
"value": 2
},
{
"date": 12508,
"variable": "psavert",
"value": 2.2
},
{
"date": 12538,
"variable": "psavert",
"value": 1.5
},
{
"date": 12569,
"variable": "psavert",
"value": 2.1
},
{
"date": 12599,
"variable": "psavert",
"value": 1.7
},
{
"date": 12630,
"variable": "psavert",
"value": 2
},
{
"date": 12661,
"variable": "psavert",
"value": 1.2
},
{
"date": 12691,
"variable": "psavert",
"value": 1.4
},
{
"date": 12722,
"variable": "psavert",
"value": 1.2
},
{
"date": 12752,
"variable": "psavert",
"value": 4.3
},
{
"date": 12783,
"variable": "psavert",
"value": 0.9
},
{
"date": 12814,
"variable": "psavert",
"value": 0.6
},
{
"date": 12842,
"variable": "psavert",
"value": 0.2
},
{
"date": 12873,
"variable": "psavert",
"value": -0.4
},
{
"date": 12903,
"variable": "psavert",
"value": -0.1
},
{
"date": 12934,
"variable": "psavert",
"value": -0.5
},
{
"date": 12964,
"variable": "psavert",
"value": -0.9
},
{
"date": 12995,
"variable": "psavert",
"value": -3
},
{
"date": 13026,
"variable": "psavert",
"value": -0.5
},
{
"date": 13056,
"variable": "psavert",
"value": -0.3
},
{
"date": 13087,
"variable": "psavert",
"value": -0.3
},
{
"date": 13117,
"variable": "psavert",
"value": -0.3
},
{
"date": 13148,
"variable": "psavert",
"value": -0.3
},
{
"date": 13179,
"variable": "psavert",
"value": -0.3
},
{
"date": 13207,
"variable": "psavert",
"value": -0.4
},
{
"date": 13238,
"variable": "psavert",
"value": -1
},
{
"date": 13268,
"variable": "psavert",
"value": -1.6
},
{
"date": 13299,
"variable": "psavert",
"value": -1.5
},
{
"date": 13329,
"variable": "psavert",
"value": -1.7
},
{
"date": 13360,
"variable": "psavert",
"value": -1.5
},
{
"date": 13391,
"variable": "psavert",
"value": -1
},
{
"date": 13421,
"variable": "psavert",
"value": -0.8
},
{
"date": 13452,
"variable": "psavert",
"value": -0.9
},
{
"date": 13482,
"variable": "psavert",
"value": -1.1
},
{
"date": 13513,
"variable": "psavert",
"value": -0.9
},
{
"date": 13544,
"variable": "psavert",
"value": -1
},
{
"date": 13572,
"variable": "psavert",
"value": -0.7
},
{
"date": 13603,
"variable": "psavert",
"value": -1.3
}
];
if(!(opts.type==='pieChart' || opts.type==='sparklinePlus' || opts.type==='bulletChart')) {
var data = d3.nest()
.key(function(d){
//return opts.group === undefined ? 'main' : d[opts.group]
//instead of main would think a better default is opts.x
return opts.group === undefined ? opts.y : d[opts.group];
})
.entries(data);
}
if (opts.disabled != undefined){
data.map(function(d, i){
d.disabled = opts.disabled[i]
})
}
nv.addGraph(function() {
chart = nv.models[opts.type]()
.width(opts.width)
.height(opts.height)
if (opts.type != 'bulletChart'){
chart
.x(function(d) { return d[opts.x] })
.y(function(d) { return d[opts.y] })
}
chart.xAxis
.tickFormat(function(d) {return d3.time.format('%b %Y')(new Date( d * 86400000 ));})
chart.x2Axis
.tickFormat(function(d) {return d3.time.format('%b %Y')(new Date( d * 86400000 ));})
d3.select('#' + opts.id)
.append('svg')
.datum(data)
.transition().duration(500)
.call(chart);
chart.dispatch.brush.on('brushstart',function(){ drawVerticalLines( opts ) });
chart.dispatch.brush.on(
'brushend',
function(){ window.setTimeout(
function() {drawVerticalLines( opts )},
250
)}
);
nv.utils.windowResize(chart.update);
return chart;
},function() { drawVerticalLines( opts ) });
};
</script>
<script>
function drawVerticalLines( opts ){
if (!(d3.select('#' + opts.id + ' .nvd3 .nv-focus .nv-linesWrap').select('.vertical-lines')[0][0])) {
d3.select('#' + opts.id + ' .nvd3 .nv-focus .nv-linesWrap').append('g')
.attr('class', 'vertical-lines')
}
vertLines = d3.select('#' + opts.id + ' .nvd3 .nv-focus .nv-linesWrap').select('.vertical-lines').selectAll('.vertical-line')
.data(
[
{ 'date' : new Date('1967-11-30'),
'label' : 'something to highlight 1967'
} ,
{ 'date' : new Date('2001-11-30'),
'label' : 'something to highlight 2001'
}
] )
var vertG = vertLines.enter()
.append('g')
.attr('class', 'vertical-line')
vertG.append('svg:line')
vertG.append('text')
vertLines.exit().remove()
vertLines.selectAll('line')
.attr('x1', function(d){
return chart.xAxis.scale()(d.date/60/60/24/1000)
})
.attr('x2', function(d){ return chart.xAxis.scale()(d.date/60/60/24/1000) })
.attr('y1', chart.yAxis.scale().range()[0] )
.attr('y2', chart.yAxis.scale().range()[1] )
.style('stroke', 'red')
vertLines.selectAll('text')
.text( function(d) { return d.label })
.attr('dy', '1em')
//x placement ; change dy above for minor adjustments but mainly
// change the d.date/60/60/24/1000
//y placement ; change 2 to where you want vertical placement
//rotate -90 but feel free to change to what you would like
.attr('transform', function(d){
return 'translate(' +
chart.xAxis.scale()(d.date/60/60/24/1000) +
',' +
chart.yAxis.scale()(2) +
') rotate(-90)'
})
//also you can style however you would like
//here is an example changing the font size
.style('font-size','80%')
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment