options = ({
chart: {
animation: false,
reflow: false,
style: { fontSize: '1em' },
type: 'waterfall'
},
legend: {
itemStyle: { fontSize: '0.875em', fontWeight: 'normal' },
symbolRadius: 0
},
plotOptions: {
series: { animation: false },
waterfall: { stacking: 'normal' }
},
series: [
{
borderColor: '#BDBDBD',
color: '#EEEEEE',
data: data.openingHeadcounts1,
legendIndex: 0,
lineWidth: 2,
name: 'Headcount',
stack: 0
},
{
borderColor: '#FFA726',
color: '#FFCC7F',
data: data.endingTerminations,
legendIndex: 4,
lineWidth: 0,
name: 'Terminations at End',
stack: 0
},
{
borderColor: '#66BB6A',
color: '#C8E6C9',
data: data.hires,
legendIndex: 2,
lineWidth: 0,
name: 'Hires During',
stack: 0
},
{
borderColor: '#FFA726',
color: '#FFFFFF',
data: data.terminations,
legendIndex: 3,
lineWidth: 0,
name: 'Terminations During',
stack: 0
},
{
borderColor: '#66BB6A',
color: '#A5D6A7',
data: data.startingHires,
legendIndex: 1,
lineWidth: 0,
name: 'Hires at Start',
stack: 0
},
{
borderColor: '#BDBDBD',
color: '#EEEEEE',
data: data.closingHeadcounts,
lineWidth: 0,
name: 'Headcount',
showInLegend: false,
stack: 0
},
{
color: '#2196F3',
data: data.averageHeadcounts,
legendIndex: 5,
name: 'Average Headcount',
type: 'line'
}
],
title: {
style: { fontSize: '1.125em' },
text: `Change in Headcount by Month for ${WorkforceData.sizeByMonthForCalendarYear.year}`
},
xAxis: [
{
categories: ["Open"].concat(Data.monthAbbreviations).concat(["Close"]),
labels: { style: { fontSize: '0.875em' } }
}
],
yAxis: {
labels: { format: '{value:,.0f}', style: { fontSize: '0.875em' } },
min: 1075,
title: { text: 'Headcount' }
}
})