{
return new Table.Visualiser(vis, {
data: WorkforceData.sizeByMonthForCalendarYear.months,
columns: [
{
label: "Month",
source: (record, column) => Data.monthAbbreviations[record.month - 1]
},
{
label: "Opening\nHeadcount",
source: "openingHeadcount",
typeId: "wholeNumber"
},
{
label: "Starting\nHires",
source: "startingHires",
typeId: "wholeNumber"
},
{
label: "Starting\nHeadcount",
source: (record, column) =>
record.openingHeadcount + record.startingHires,
typeId: "wholeNumber"
},
{
label: "Starting\nFTE",
source: "startingFTE",
typeId: "wholeNumber"
},
{
label: "Total\nHires",
source: "hires",
typeId: "wholeNumber"
},
{
label: "In\u00a0Period\nHeadcount",
source: "inPeriodHeadcount",
typeId: "wholeNumber"
},
{
label: "Distinct\u00a0Period\nHeadcount",
source: "distinctPeriodHeadcount",
typeId: "wholeNumber"
},
{
label: "Total\nTerminations",
source: "terminations",
typeId: "wholeNumber"
},
{
label: "Average\nHeadcount",
source: "averageHeadcount",
typeId: "decimalNumber"
},
{
label: "Full-Time\nEquivalents",
source: "fte",
typeId: "decimalNumber"
},
{
label: "Ending\nFTE",
source: "endingFTE",
typeId: "wholeNumber"
},
{
label: "Ending\nHeadcount",
source: (record, column) =>
record.closingHeadcount + record.endingTerminations,
typeId: "wholeNumber"
},
{
label: "Ending\nTerminations",
source: "endingTerminations",
typeId: "wholeNumber"
},
{
label: "Closing\nHeadcount",
source: "closingHeadcount",
typeId: "wholeNumber"
}
]
}).show();
}