Skip to content

Instantly share code, notes, and snippets.

@chris-vecchio
Created April 17, 2020 01:28
Show Gist options
  • Save chris-vecchio/0fb2695df04b8910ae411c761bf88dd5 to your computer and use it in GitHub Desktop.
Save chris-vecchio/0fb2695df04b8910ae411c761bf88dd5 to your computer and use it in GitHub Desktop.
var chartConfig = {
chart: {
type: 'line',
//height: 400,
ganame: 'googleanalyticsname',
spacingBottom: 25,
marginRight: 15,
style: {
fontFamily: "Helvetica, Arial, sans-serif"
},
events: {
load: function() {
$(".highcharts-legend-item path").attr('stroke-width', 3);
// Set exporting size options from chart container size
this.options.exporting.sourceWidth = $(this.container).width();
this.options.exporting.sourceHeight = $(this.container).height();
},
redraw: function() {
$(".highcharts-legend-item path").attr('stroke-width', 3);
// Set exporting size options from chart container size
this.options.exporting.sourceWidth = $(this.container).width();
this.options.exporting.sourceHeight = $(this.container).height();
},
beforePrint: function() {
this.exportSVGElements[0].box.hide();
this.exportSVGElements[1].hide();
},
afterPrint: function() {
this.exportSVGElements[0].box.show();
this.exportSVGElements[1].show();
}
}
},
lang: {
noData: 'Please select one or more chart series'
},
noData: {
style: {
fontFamily: "'HelveticaNeueLT-Light',Arial,sans-serif",
fontSize: '13px',
color: '#414b56',
fontWeight: 'normal'
}
},
title: {
text: 'Median Consumer Price Index',
align: 'left',
margin: 5,
style: {
fontSize: '18px',
fontWeight: 'normal',
color: '#333333'
}
},
credits: {
text: 'Source: Bureau of Labor Statistics, Federal Reserve Bank of Cleveland',
position: {
align: 'left',
x: 0,
y: -5
},
style: {
fontSize: '11px',
cursor: 'default'
}
},
legend: {
verticalAlign: 'top',
align: 'left',
floating: false,
layout: 'horizontal',
margin: 20,
x: 0,
y: -5,
itemStyle: {
color: 'rgba(102,102,102,1)',
fontSize: '14px',
fontWeight: 'normal'
},
labelFormatter: function() {
return this.options.legendname;
}
},
tooltip: {
useHTML: true,
shared: false,
valueDecimals: 1,
formatter: function() {
var chartOptions = this.series.chart.options;
var seriesOptions = this.series.options;
var tooltipDecimals = chartOptions.tooltip.valueDecimals;
if (tooltipDecimals === undefined) {
if (seriesOptions.tooltip.valueDecimals != undefined) {
tooltipDecimals = seriesOptions.tooltip.valueDecimals;
} else {
tooltipDecimals = -1;
}
}
var s = '<span style="font-size: 12px; font-weight: bold;">';
s += Highcharts.dateFormat("%b %Y", new Date(this.x));
s+= '</span><br/>';
s += '<table>';
s += '<tr><td style="color:';
s += seriesOptions.color + ';';
s += ' text-align: left;';
s += ' padding: 0px px 0px 0px;';
s += ' font-size: 12px;';
s += ' font-weight: bold;';
s += ' white-space: pre;';
s += '">';
s += seriesOptions.tooltipname;
s += ':</td>';
s += '<td style="text-align: right; font-size: 12px; font-weight: bold; white-space: pre;"> ';
if (seriesOptions.tooltip.valuePrefix) {
s += seriesOptions.tooltip.valuePrefix;
}
s += Highcharts.numberFormat(this.y, tooltipDecimals, '.', ',');
if (seriesOptions.tooltip.valueSuffix) {
s += seriesOptions.tooltip.valueSuffix;
}
s += '</td></tr>';
s += '</table>';
return s;
}
},
plotOptions: {
series: {
animation: false,
lineWidth: 3,
states: {
hover: {
lineWidthPlus: 0
},
inactive: {
opacity: 1
}
},
marker: {
enabled: true,
symbol: 'circle',
radius: 2,
states: {
hover: {
radiusPlus: 2,
lineWidthPlus: 1
}
}
},
events: {
legendItemClick: function() {
return false;
// <== returning false disables legend click action
}
},
// hide: function () { ga('send', 'event', 'Highcharts', 'hideSeries', this.options.chart.ganame + ' (series: ' + this.name + ') | ' + document.title); },
// show: function () { ga('send', 'event', 'Highcharts', 'showSeries', this.options.chart.ganame + ' (series: ' + this.name + ') | ' + document.title); }
}
},
yAxis: {
title: {
text: 'Percent',
style: {
fontSize: '14px',
whiteSpace: 'nowrap',
color: '#333333',
fontWeight: 'normal'
}
},
labels: {
format: '{value}',
style: {
fontSize: '12px',
color: '#333333',
fontWeight: 'normal'
}
},
allowDecimals: true,
lineColor: 'rgba(145,145,145,0)',
lineWidth: 0,
gridLineColor: 'rgba(225,225,225,1)',
gridLineWidth: 1,
minorGridLineColor: 'rgba(225,225,225,0)',
tickColor: 'rgba(207,216,220,1)',
tickWidth: 0,
tickPosition: 'outside',
tickLength: 0,
minPadding: 0,
maxPadding: 0,
plotLines: [{
value: 0,
color: 'rgba(145,145,145,1)',
width: 2
}]
},
xAxis: {
type: 'datetime',
title: {
text: null
},
labels: {
format: '{value:%Y}',
overflow: false,
rotation: 0,
style: {
fontSize: '12px',
color: '#333333',
fontWeight: 'normal'
}
},
allowDecimals: true,
lineColor: 'rgba(145,145,145,1)',
lineWidth: 1,
gridLineColor: 'rgba(225,225,225,0)',
gridLineWidth: 0,
minorGridLineColor: 'rgba(225,225,225,0)',
tickColor: 'rgba(145,145,145,1)',
tickWidth: 1,
tickPosition: 'inside',
tickLength: 7,
minPadding: 0,
crosshair: true,
startOnTick: false,
endOnTick: false,
showFirstLabel: true
},
exporting: {
filename: 'cleveland_fed_mediancpi',
chartOptions: {
credits: {
enabled: true,
text: 'Source: Bureau of Labor Statistics, Federal Reserve Bank of Cleveland Exported on: ' + Highcharts.dateFormat('%A, %B %e, %Y', Date.now()),
href: false,
useHTML: true,
style: {
fontSize: '9px',
whiteSpace: 'pre'
}
},
chart: {
events: null
}
},
buttons: {
contextButton: {
menuItems: [{
textKey: 'downloadCSV',
onclick: function() {
this.downloadCSV();
// ga('send', 'event', 'Highcharts', 'downloadCSV', '(chart: ' + this.options.chart.ganame + ') | ' + document.title);
}
}, {
textKey: 'downloadXLSX',
onclick: function() {
this.downloadXLSX();
// ga('send', 'event', 'Highcharts', 'downloadXLS', '(chart: ' + this.options.chart.ganame + ') | ' + document.title);
}
}, {
textKey: 'downloadPNG',
onclick: function() {
this.exportChart({ type: 'image/png' });
// ga('send', 'event', 'Highcharts', 'downloadPNG', '(chart: ' + this.options.chart.ganame + ') | ' + document.title);
}
}, {
textKey: 'printChart',
onclick: function() {
this.print();
// ga('send', 'event', 'Highcharts', 'print', '(chart: ' + this.options.chart.gaTitle + ') | ' + document.title);
}
}]
}
},
xlsx: {
worksheet: {
sheetName: 'Median CPI',
autoFitColumns: true,
categoryColumn: {
title: 'Month',
numberFormat: 'yyyy-mm'
},
headerStyle: {
font: {
color: '#FFFFFF',
bold: true
},
fill: {
color: '#414b56'
}
}
}
}
},
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
chart: {
spacingLeft: 5
},
noData: {
style: {
fontSize: '13px',
}
},
title: {
//margin: 10,
style: {
fontSize: '14px'
}
},
legend: {
itemStyle: {
fontSize: '11px'
}
},
xAxis: {
labels: { style: { font: '10px Arial, sans-serif' } },
},
yAxis: {
labels: { style: { font: '10px Arial, sans-serif' } },
title: {
reserveSpace: false,
align: 'high',
offset: 0,
rotation: 0,
y: -10,
x: 50,
style: {
fontSize: '12px',
fontWeight: 'bold'
}
}
},
plotOptions: {
series: {
lineWidth: 2
}
},
exporting: {
buttons: {
contextButton: {
symbol: 'menu'
}
}
}
}
}]
}
};
var chartData = {
series: [
{
index: 2,
zIndex: 1,
legendIndex: 2,
color: '#599871',
name: 'CPI',
dataname: 'cpi',
legendname: 'CPI',
tooltipname: 'CPI',
tooltip: {
valueSuffix: '%',
},
marker: {
enabled: false
},
xlsx: {
numberFormat: '0.0',
name: 'Headline CPI'
},
data: [[Date.UTC(2011, 0, 1), 1.631], [Date.UTC(2011, 1, 1), 2.107], [Date.UTC(2011, 2, 1), 2.68], [Date.UTC(2011, 3, 1), 3.163], [Date.UTC(2011, 4, 1), 3.568], [Date.UTC(2011, 5, 1), 3.558], [Date.UTC(2011, 6, 1), 3.628], [Date.UTC(2011, 7, 1), 3.771], [Date.UTC(2011, 8, 1), 3.868], [Date.UTC(2011, 9, 1), 3.525], [Date.UTC(2011, 10, 1), 3.394], [Date.UTC(2011, 11, 1), 2.962], [Date.UTC(2012, 0, 1), 2.925], [Date.UTC(2012, 1, 1), 2.871], [Date.UTC(2012, 2, 1), 2.651], [Date.UTC(2012, 3, 1), 2.302], [Date.UTC(2012, 4, 1), 1.704], [Date.UTC(2012, 5, 1), 1.663], [Date.UTC(2012, 6, 1), 1.40], [Date.UTC(2012, 7, 1), 1.692], [Date.UTC(2012, 8, 1), 1.991], [Date.UTC(2012, 9, 1), 2.16], [Date.UTC(2012, 10, 1), 1.764], [Date.UTC(2012, 11, 1), 1.741], [Date.UTC(2013, 0, 1), 1.594], [Date.UTC(2013, 1, 1), 1.977], [Date.UTC(2013, 2, 1), 1.47], [Date.UTC(2013, 3, 1), 1.063], [Date.UTC(2013, 4, 1), 1.361], [Date.UTC(2013, 5, 1), 1.754], [Date.UTC(2013, 6, 1), 1.960], [Date.UTC(2013, 7, 1), 1.518], [Date.UTC(2013, 8, 1), 1.184], [Date.UTC(2013, 9, 1), .9636], [Date.UTC(2013, 10, 1), 1.237], [Date.UTC(2013, 11, 1), 1.501], [Date.UTC(2014, 0, 1), 1.578], [Date.UTC(2014, 1, 1), 1.126], [Date.UTC(2014, 2, 1), 1.51], [Date.UTC(2014, 3, 1), 1.952], [Date.UTC(2014, 4, 1), 2.127], [Date.UTC(2014, 5, 1), 2.072], [Date.UTC(2014, 6, 1), 1.992], [Date.UTC(2014, 7, 1), 1.699], [Date.UTC(2014, 8, 1), 1.657], [Date.UTC(2014, 9, 1), 1.664], [Date.UTC(2014, 10, 1), 1.322], [Date.UTC(2014, 11, 1), .7564], [Date.UTC(2015, 0, 1), -.0893], [Date.UTC(2015, 1, 1), -.0251], [Date.UTC(2015, 2, 1), -.0736], [Date.UTC(2015, 3, 1), -.1995], [Date.UTC(2015, 4, 1), -.0399], [Date.UTC(2015, 5, 1), .1237], [Date.UTC(2015, 6, 1), .1695], [Date.UTC(2015, 7, 1), .1950], [Date.UTC(2015, 8, 1), -.0361], [Date.UTC(2015, 9, 1), .1705], [Date.UTC(2015, 10, 1), .5017], [Date.UTC(2015, 11, 1), .7295], [Date.UTC(2016, 0, 1), 1.373], [Date.UTC(2016, 1, 1), 1.017], [Date.UTC(2016, 2, 1), .8525], [Date.UTC(2016, 3, 1), 1.125], [Date.UTC(2016, 4, 1), 1.019], [Date.UTC(2016, 5, 1), .9973], [Date.UTC(2016, 6, 1), .8271], [Date.UTC(2016, 7, 1), 1.062], [Date.UTC(2016, 8, 1), 1.463], [Date.UTC(2016, 9, 1), 1.635], [Date.UTC(2016, 10, 1), 1.692], [Date.UTC(2016, 11, 1), 2.074], [Date.UTC(2017, 0, 1), 2.500], [Date.UTC(2017, 1, 1), 2.737], [Date.UTC(2017, 2, 1), 2.380], [Date.UTC(2017, 3, 1), 2.199], [Date.UTC(2017, 4, 1), 1.874], [Date.UTC(2017, 5, 1), 1.633], [Date.UTC(2017, 6, 1), 1.727], [Date.UTC(2017, 7, 1), 1.938], [Date.UTC(2017, 8, 1), 2.232], [Date.UTC(2017, 9, 1), 2.041], [Date.UTC(2017, 10, 1), 2.202], [Date.UTC(2017, 11, 1), 2.109], [Date.UTC(2018, 0, 1), 2.070], [Date.UTC(2018, 1, 1), 2.21], [Date.UTC(2018, 2, 1), 2.359], [Date.UTC(2018, 3, 1), 2.462], [Date.UTC(2018, 4, 1), 2.801], [Date.UTC(2018, 5, 1), 2.87], [Date.UTC(2018, 6, 1), 2.949], [Date.UTC(2018, 7, 1), 2.699], [Date.UTC(2018, 8, 1), 2.276], [Date.UTC(2018, 9, 1), 2.52], [Date.UTC(2018, 10, 1), 2.176], [Date.UTC(2018, 11, 1), 1.910], [Date.UTC(2019, 0, 1), 1.551], [Date.UTC(2019, 1, 1), 1.520], [Date.UTC(2019, 2, 1), 1.862], [Date.UTC(2019, 3, 1), 1.996], [Date.UTC(2019, 4, 1), 1.790], [Date.UTC(2019, 5, 1), 1.648], [Date.UTC(2019, 6, 1), 1.811], [Date.UTC(2019, 7, 1), 1.749], [Date.UTC(2019, 8, 1), 1.71], [Date.UTC(2019, 9, 1), 1.764], [Date.UTC(2019, 10, 1), 2.051], [Date.UTC(2019, 11, 1), 2.285], [Date.UTC(2020, 0, 1), 2.486], [Date.UTC(2020, 1, 1), 2.334], [Date.UTC(2020, 2, 1), 1.539326991919809]]
}, {
index: 3,
zIndex: 4,
legendIndex: 3,
color: '#581f54',
name: 'Core CPI',
dataname: 'corecpi',
legendname: 'Core CPI',
tooltipname: 'Core CPI',
tooltip: {
valueSuffix: '%',
},
marker: {
enabled: false
},
xlsx: {
numberFormat: '0.0',
name: 'Core CPI'
},
data: [[Date.UTC(2011, 0, 1), .9500], [Date.UTC(2011, 1, 1), 1.092], [Date.UTC(2011, 2, 1), 1.190], [Date.UTC(2011, 3, 1), 1.334], [Date.UTC(2011, 4, 1), 1.51], [Date.UTC(2011, 5, 1), 1.638], [Date.UTC(2011, 6, 1), 1.765], [Date.UTC(2011, 7, 1), 1.951], [Date.UTC(2011, 8, 1), 1.974], [Date.UTC(2011, 9, 1), 2.100], [Date.UTC(2011, 10, 1), 2.153], [Date.UTC(2011, 11, 1), 2.22], [Date.UTC(2012, 0, 1), 2.277], [Date.UTC(2012, 1, 1), 2.176], [Date.UTC(2012, 2, 1), 2.25], [Date.UTC(2012, 3, 1), 2.313], [Date.UTC(2012, 4, 1), 2.257], [Date.UTC(2012, 5, 1), 2.21], [Date.UTC(2012, 6, 1), 2.10], [Date.UTC(2012, 7, 1), 1.91], [Date.UTC(2012, 8, 1), 1.984], [Date.UTC(2012, 9, 1), 1.999], [Date.UTC(2012, 10, 1), 1.941], [Date.UTC(2012, 11, 1), 1.89], [Date.UTC(2013, 0, 1), 1.925], [Date.UTC(2013, 1, 1), 2.004], [Date.UTC(2013, 2, 1), 1.887], [Date.UTC(2013, 3, 1), 1.715], [Date.UTC(2013, 4, 1), 1.681], [Date.UTC(2013, 5, 1), 1.636], [Date.UTC(2013, 6, 1), 1.696], [Date.UTC(2013, 7, 1), 1.764], [Date.UTC(2013, 8, 1), 1.734], [Date.UTC(2013, 9, 1), 1.680], [Date.UTC(2013, 10, 1), 1.720], [Date.UTC(2013, 11, 1), 1.71], [Date.UTC(2014, 0, 1), 1.621], [Date.UTC(2014, 1, 1), 1.567], [Date.UTC(2014, 2, 1), 1.656], [Date.UTC(2014, 3, 1), 1.832], [Date.UTC(2014, 4, 1), 1.956], [Date.UTC(2014, 5, 1), 1.933], [Date.UTC(2014, 6, 1), 1.858], [Date.UTC(2014, 7, 1), 1.723], [Date.UTC(2014, 8, 1), 1.728], [Date.UTC(2014, 9, 1), 1.807], [Date.UTC(2014, 10, 1), 1.702], [Date.UTC(2014, 11, 1), 1.606], [Date.UTC(2015, 0, 1), 1.648], [Date.UTC(2015, 1, 1), 1.697], [Date.UTC(2015, 2, 1), 1.753], [Date.UTC(2015, 3, 1), 1.807], [Date.UTC(2015, 4, 1), 1.718], [Date.UTC(2015, 5, 1), 1.762], [Date.UTC(2015, 6, 1), 1.804], [Date.UTC(2015, 7, 1), 1.827], [Date.UTC(2015, 8, 1), 1.891], [Date.UTC(2015, 9, 1), 1.90], [Date.UTC(2015, 10, 1), 2.01], [Date.UTC(2015, 11, 1), 2.095], [Date.UTC(2016, 0, 1), 2.206], [Date.UTC(2016, 1, 1), 2.331], [Date.UTC(2016, 2, 1), 2.19], [Date.UTC(2016, 3, 1), 2.146], [Date.UTC(2016, 4, 1), 2.240], [Date.UTC(2016, 5, 1), 2.244], [Date.UTC(2016, 6, 1), 2.189], [Date.UTC(2016, 7, 1), 2.318], [Date.UTC(2016, 8, 1), 2.207], [Date.UTC(2016, 9, 1), 2.144], [Date.UTC(2016, 10, 1), 2.110], [Date.UTC(2016, 11, 1), 2.196], [Date.UTC(2017, 0, 1), 2.271], [Date.UTC(2017, 1, 1), 2.223], [Date.UTC(2017, 2, 1), 2.001], [Date.UTC(2017, 3, 1), 1.882], [Date.UTC(2017, 4, 1), 1.733], [Date.UTC(2017, 5, 1), 1.703], [Date.UTC(2017, 6, 1), 1.692], [Date.UTC(2017, 7, 1), 1.684], [Date.UTC(2017, 8, 1), 1.692], [Date.UTC(2017, 9, 1), 1.773], [Date.UTC(2017, 10, 1), 1.711], [Date.UTC(2017, 11, 1), 1.775], [Date.UTC(2018, 0, 1), 1.821], [Date.UTC(2018, 1, 1), 1.847], [Date.UTC(2018, 2, 1), 2.117], [Date.UTC(2018, 3, 1), 2.139], [Date.UTC(2018, 4, 1), 2.237], [Date.UTC(2018, 5, 1), 2.255], [Date.UTC(2018, 6, 1), 2.354], [Date.UTC(2018, 7, 1), 2.199], [Date.UTC(2018, 8, 1), 2.169], [Date.UTC(2018, 9, 1), 2.138], [Date.UTC(2018, 10, 1), 2.21], [Date.UTC(2018, 11, 1), 2.178], [Date.UTC(2019, 0, 1), 2.153], [Date.UTC(2019, 1, 1), 2.084], [Date.UTC(2019, 2, 1), 2.036], [Date.UTC(2019, 3, 1), 2.064], [Date.UTC(2019, 4, 1), 1.988], [Date.UTC(2019, 5, 1), 2.126], [Date.UTC(2019, 6, 1), 2.21], [Date.UTC(2019, 7, 1), 2.386], [Date.UTC(2019, 8, 1), 2.357], [Date.UTC(2019, 9, 1), 2.314], [Date.UTC(2019, 10, 1), 2.316], [Date.UTC(2019, 11, 1), 2.258], [Date.UTC(2020, 0, 1), 2.261], [Date.UTC(2020, 1, 1), 2.356], [Date.UTC(2020, 2, 1), 2.091385447379279]]
}, {
index: 0,
zIndex: 3,
legendIndex: 0,
color: '#e67a17',
name: 'Median CPI',
dataname: 'mediancpi',
legendname: 'Median CPI',
tooltipname: 'Median',
tooltip: {
valueSuffix: '%',
},
marker: {
enabled: false
},
xlsx: {
numberFormat: '0.0',
name: 'Median CPI'
},
data: [[Date.UTC(2011, 0, 1), .8566], [Date.UTC(2011, 1, 1), 1.099], [Date.UTC(2011, 2, 1), 1.269], [Date.UTC(2011, 3, 1), 1.419], [Date.UTC(2011, 4, 1), 1.588], [Date.UTC(2011, 5, 1), 1.64], [Date.UTC(2011, 6, 1), 1.80], [Date.UTC(2011, 7, 1), 2.031], [Date.UTC(2011, 8, 1), 2.11], [Date.UTC(2011, 9, 1), 2.186], [Date.UTC(2011, 10, 1), 2.23], [Date.UTC(2011, 11, 1), 2.313], [Date.UTC(2012, 0, 1), 2.389], [Date.UTC(2012, 1, 1), 2.295], [Date.UTC(2012, 2, 1), 2.351], [Date.UTC(2012, 3, 1), 2.354], [Date.UTC(2012, 4, 1), 2.306], [Date.UTC(2012, 5, 1), 2.306], [Date.UTC(2012, 6, 1), 2.268], [Date.UTC(2012, 7, 1), 2.206], [Date.UTC(2012, 8, 1), 2.189], [Date.UTC(2012, 9, 1), 2.176], [Date.UTC(2012, 10, 1), 2.195], [Date.UTC(2012, 11, 1), 2.147], [Date.UTC(2013, 0, 1), 2.109], [Date.UTC(2013, 1, 1), 2.173], [Date.UTC(2013, 2, 1), 2.072], [Date.UTC(2013, 3, 1), 2.056], [Date.UTC(2013, 4, 1), 2.074], [Date.UTC(2013, 5, 1), 2.092], [Date.UTC(2013, 6, 1), 2.086], [Date.UTC(2013, 7, 1), 2.063], [Date.UTC(2013, 8, 1), 2.058], [Date.UTC(2013, 9, 1), 1.999], [Date.UTC(2013, 10, 1), 2.043], [Date.UTC(2013, 11, 1), 2.131], [Date.UTC(2014, 0, 1), 2.103], [Date.UTC(2014, 1, 1), 2.09], [Date.UTC(2014, 2, 1), 2.232], [Date.UTC(2014, 3, 1), 2.242], [Date.UTC(2014, 4, 1), 2.291], [Date.UTC(2014, 5, 1), 2.222], [Date.UTC(2014, 6, 1), 2.255], [Date.UTC(2014, 7, 1), 2.222], [Date.UTC(2014, 8, 1), 2.198], [Date.UTC(2014, 9, 1), 2.304], [Date.UTC(2014, 10, 1), 2.274], [Date.UTC(2014, 11, 1), 2.23], [Date.UTC(2015, 0, 1), 2.198], [Date.UTC(2015, 1, 1), 2.165], [Date.UTC(2015, 2, 1), 2.130], [Date.UTC(2015, 3, 1), 2.192], [Date.UTC(2015, 4, 1), 2.188], [Date.UTC(2015, 5, 1), 2.327], [Date.UTC(2015, 6, 1), 2.286], [Date.UTC(2015, 7, 1), 2.277], [Date.UTC(2015, 8, 1), 2.365], [Date.UTC(2015, 9, 1), 2.353], [Date.UTC(2015, 10, 1), 2.354], [Date.UTC(2015, 11, 1), 2.308], [Date.UTC(2016, 0, 1), 2.376], [Date.UTC(2016, 1, 1), 2.394], [Date.UTC(2016, 2, 1), 2.388], [Date.UTC(2016, 3, 1), 2.445], [Date.UTC(2016, 4, 1), 2.499], [Date.UTC(2016, 5, 1), 2.427], [Date.UTC(2016, 6, 1), 2.473], [Date.UTC(2016, 7, 1), 2.567], [Date.UTC(2016, 8, 1), 2.490], [Date.UTC(2016, 9, 1), 2.467], [Date.UTC(2016, 10, 1), 2.484], [Date.UTC(2016, 11, 1), 2.497], [Date.UTC(2017, 0, 1), 2.538], [Date.UTC(2017, 1, 1), 2.592], [Date.UTC(2017, 2, 1), 2.556], [Date.UTC(2017, 3, 1), 2.356], [Date.UTC(2017, 4, 1), 2.273], [Date.UTC(2017, 5, 1), 2.258], [Date.UTC(2017, 6, 1), 2.232], [Date.UTC(2017, 7, 1), 2.203], [Date.UTC(2017, 8, 1), 2.232], [Date.UTC(2017, 9, 1), 2.268], [Date.UTC(2017, 10, 1), 2.270], [Date.UTC(2017, 11, 1), 2.351], [Date.UTC(2018, 0, 1), 2.390], [Date.UTC(2018, 1, 1), 2.337], [Date.UTC(2018, 2, 1), 2.366], [Date.UTC(2018, 3, 1), 2.506], [Date.UTC(2018, 4, 1), 2.564], [Date.UTC(2018, 5, 1), 2.630], [Date.UTC(2018, 6, 1), 2.641], [Date.UTC(2018, 7, 1), 2.615], [Date.UTC(2018, 8, 1), 2.622], [Date.UTC(2018, 9, 1), 2.627], [Date.UTC(2018, 10, 1), 2.711], [Date.UTC(2018, 11, 1), 2.707], [Date.UTC(2019, 0, 1), 2.655], [Date.UTC(2019, 1, 1), 2.737], [Date.UTC(2019, 2, 1), 2.797], [Date.UTC(2019, 3, 1), 2.810], [Date.UTC(2019, 4, 1), 2.786], [Date.UTC(2019, 5, 1), 2.820], [Date.UTC(2019, 6, 1), 2.887], [Date.UTC(2019, 7, 1), 2.931], [Date.UTC(2019, 8, 1), 2.958], [Date.UTC(2019, 9, 1), 2.958], [Date.UTC(2019, 10, 1), 2.914], [Date.UTC(2019, 11, 1), 2.836], [Date.UTC(2020, 0, 1), 2.883], [Date.UTC(2020, 1, 1), 2.845], [Date.UTC(2020, 2, 1), 2.805536112753315]]
}, {
index: 1,
zIndex: 2,
legendIndex: 1,
color: '#2875a8',
name: '16% Trimmed-Mean CPI',
dataname: 'trimmedmeancpi',
legendname: '16% Trimmed-Mean CPI',
tooltipname: 'Trimmed',
tooltip: {
valueSuffix: '%',
},
marker: {
enabled: false
},
xlsx: {
numberFormat: '0.0',
name: '16% Trimmed-Mean CPI'
},
data: [[Date.UTC(2011, 0, 1), 1.034], [Date.UTC(2011, 1, 1), 1.295], [Date.UTC(2011, 2, 1), 1.511], [Date.UTC(2011, 3, 1), 1.683], [Date.UTC(2011, 4, 1), 1.981], [Date.UTC(2011, 5, 1), 2.086], [Date.UTC(2011, 6, 1), 2.193], [Date.UTC(2011, 7, 1), 2.395], [Date.UTC(2011, 8, 1), 2.468], [Date.UTC(2011, 9, 1), 2.522], [Date.UTC(2011, 10, 1), 2.580], [Date.UTC(2011, 11, 1), 2.598], [Date.UTC(2012, 0, 1), 2.604], [Date.UTC(2012, 1, 1), 2.428], [Date.UTC(2012, 2, 1), 2.393], [Date.UTC(2012, 3, 1), 2.34], [Date.UTC(2012, 4, 1), 2.111], [Date.UTC(2012, 5, 1), 2.112], [Date.UTC(2012, 6, 1), 1.985], [Date.UTC(2012, 7, 1), 1.898], [Date.UTC(2012, 8, 1), 1.874], [Date.UTC(2012, 9, 1), 1.942], [Date.UTC(2012, 10, 1), 1.891], [Date.UTC(2012, 11, 1), 1.851], [Date.UTC(2013, 0, 1), 1.764], [Date.UTC(2013, 1, 1), 1.871], [Date.UTC(2013, 2, 1), 1.747], [Date.UTC(2013, 3, 1), 1.644], [Date.UTC(2013, 4, 1), 1.639], [Date.UTC(2013, 5, 1), 1.642], [Date.UTC(2013, 6, 1), 1.721], [Date.UTC(2013, 7, 1), 1.733], [Date.UTC(2013, 8, 1), 1.693], [Date.UTC(2013, 9, 1), 1.587], [Date.UTC(2013, 10, 1), 1.607], [Date.UTC(2013, 11, 1), 1.681], [Date.UTC(2014, 0, 1), 1.733], [Date.UTC(2014, 1, 1), 1.660], [Date.UTC(2014, 2, 1), 1.783], [Date.UTC(2014, 3, 1), 1.934], [Date.UTC(2014, 4, 1), 2.059], [Date.UTC(2014, 5, 1), 2.011], [Date.UTC(2014, 6, 1), 2.040], [Date.UTC(2014, 7, 1), 1.897], [Date.UTC(2014, 8, 1), 1.88], [Date.UTC(2014, 9, 1), 1.926], [Date.UTC(2014, 10, 1), 1.851], [Date.UTC(2014, 11, 1), 1.793], [Date.UTC(2015, 0, 1), 1.641], [Date.UTC(2015, 1, 1), 1.66], [Date.UTC(2015, 2, 1), 1.652], [Date.UTC(2015, 3, 1), 1.621], [Date.UTC(2015, 4, 1), 1.569], [Date.UTC(2015, 5, 1), 1.659], [Date.UTC(2015, 6, 1), 1.634], [Date.UTC(2015, 7, 1), 1.674], [Date.UTC(2015, 8, 1), 1.757], [Date.UTC(2015, 9, 1), 1.755], [Date.UTC(2015, 10, 1), 1.796], [Date.UTC(2015, 11, 1), 1.737], [Date.UTC(2016, 0, 1), 1.83], [Date.UTC(2016, 1, 1), 1.866], [Date.UTC(2016, 2, 1), 1.837], [Date.UTC(2016, 3, 1), 1.864], [Date.UTC(2016, 4, 1), 1.916], [Date.UTC(2016, 5, 1), 1.881], [Date.UTC(2016, 6, 1), 1.876], [Date.UTC(2016, 7, 1), 1.976], [Date.UTC(2016, 8, 1), 1.945], [Date.UTC(2016, 9, 1), 1.957], [Date.UTC(2016, 10, 1), 1.988], [Date.UTC(2016, 11, 1), 2.096], [Date.UTC(2017, 0, 1), 2.20], [Date.UTC(2017, 1, 1), 2.218], [Date.UTC(2017, 2, 1), 2.132], [Date.UTC(2017, 3, 1), 2.038], [Date.UTC(2017, 4, 1), 1.960], [Date.UTC(2017, 5, 1), 1.895], [Date.UTC(2017, 6, 1), 1.877], [Date.UTC(2017, 7, 1), 1.854], [Date.UTC(2017, 8, 1), 1.830], [Date.UTC(2017, 9, 1), 1.842], [Date.UTC(2017, 10, 1), 1.842], [Date.UTC(2017, 11, 1), 1.89], [Date.UTC(2018, 0, 1), 1.860], [Date.UTC(2018, 1, 1), 1.868], [Date.UTC(2018, 2, 1), 1.931], [Date.UTC(2018, 3, 1), 2.010], [Date.UTC(2018, 4, 1), 2.105], [Date.UTC(2018, 5, 1), 2.209], [Date.UTC(2018, 6, 1), 2.248], [Date.UTC(2018, 7, 1), 2.20], [Date.UTC(2018, 8, 1), 2.204], [Date.UTC(2018, 9, 1), 2.214], [Date.UTC(2018, 10, 1), 2.264], [Date.UTC(2018, 11, 1), 2.251], [Date.UTC(2019, 0, 1), 2.195], [Date.UTC(2019, 1, 1), 2.173], [Date.UTC(2019, 2, 1), 2.266], [Date.UTC(2019, 3, 1), 2.271], [Date.UTC(2019, 4, 1), 2.176], [Date.UTC(2019, 5, 1), 2.170], [Date.UTC(2019, 6, 1), 2.23], [Date.UTC(2019, 7, 1), 2.281], [Date.UTC(2019, 8, 1), 2.315], [Date.UTC(2019, 9, 1), 2.393], [Date.UTC(2019, 10, 1), 2.411], [Date.UTC(2019, 11, 1), 2.350], [Date.UTC(2020, 0, 1), 2.409], [Date.UTC(2020, 1, 1), 2.424], [Date.UTC(2020, 2, 1), 2.354615429655382]]
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment