{
const { qdtCompose, QdtSelections, QdtPicasso, useLineChartSettings } = QdtComponents;
qdtCompose({
element: selectionsToolbarElement,
component: QdtSelections,
app,
options: {},
properties: {
qSelectionObjectDef: {},
}
});
qdtCompose({
element: chartElement,
component: QdtPicasso,
app,
options: {
settings: useLineChartSettings(),
height: 400,
},
properties: {
qHyperCubeDef: {
qDimensions: [
{ qDef: { qFieldDefs: ['Date.autoCalendar.YearMonth'] } },
],
qMeasures: [
{ qDef: { qDef: 'Sum([Number of New Cases])', autoSort: false }, qSortBy: { qSortByNumeric: 1 } },
],
qInterColumnSortOrder: [1, 0],
},
}
});
}