Below is the screenshot of chart, as you see on hover Current spend needs to at the bottom but it’s on Top.
Bellow is aggregation that I’m using.
[
{
$unwind: "$tieredReduction.formattedDetails"
},
{
$project: {
facility: 1,
vendor: 1,
productCategory: 1,
contractExpiryDate: 1,
contractEffectiveDate: 1,
contractId: 1,
priceReductionTierLabel:
"$tieredReduction.formattedDetails.priceReductionTierLabel",
priceReductionTierAmount:
"$tieredReduction.formattedDetails.priceReductionTierAmount"
}
}
]