options = ({
chart: {
animation: false,
background: "transparent",
reflow: false,
style: { fontSize: "1em" }
},
legend: {
itemStyle: { fontSize: "0.875em", fontWeight: "normal" },
symbolRadius: 0
},
plotOptions: { series: { animation: false } },
series: [
{
borderColor: "#66BB6A",
color: "#C8E6C9",
data: data.hires,
name: "Hires",
type: "column"
},
{
borderColor: "#FFA726",
color: "#FFE0B2",
data: data.terminations,
name: "Terminations",
type: "column"
},
{
color: "#2196F3",
data: data.averageHeadcount,
name: "Average Headcount",
type: "line",
yAxis: 1
}
],
title: {
style: { fontSize: "1.125em" },
text: `Hires & Terminations by Month for ${WorkforceData.sizeByMonthForCalendarYear.year}`
},
xAxis: [
{
categories: Data.monthAbbreviations,
labels: { style: { fontSize: "0.875em" } }
}
],
yAxis: [
{
labels: { format: "{value:,.0f}", style: { fontSize: "0.875em" } },
title: { text: "Hires/Terminations" }
},
{
labels: { format: "{value:,.0f}", style: { fontSize: "0.875em" } },
opposite: true,
title: { text: "Headcount" }
}
]
})