In this experiment, I’m trying use Plot to chart cumulative percentages of fully vaccinated people in different areas of Italy.
I’m wondering if there is a way to sort facets:
- by highest milestone (i.e., dots in chart)
then, in case of equal milestones - by milestone date
then, if dates are equal too - by area name.
E.g., Given the following data:
[
{area: "ABR", date: 2021-04-26, milestone: 0.1},
{area: "ABR", date: 2021-05-21, milestone: 0.2},
{area: "ABR", date: 2021-07-19, milestone: 0.5},
{area: "ABR", date: 2021-08-26, milestone: 0.7},
{area: "BAS", date: 2021-04-21, milestone: 0.1},
{area: "BAS", date: 2021-05-22, milestone: 0.2},
{area: "BAS", date: 2021-07-24, milestone: 0.5},
{area: "BAS", date: 2021-09-04, milestone: 0.7},
{area: "CAL", date: 2021-04-30, milestone: 0.1},
{area: "CAL", date: 2021-05-27, milestone: 0.2},
{area: "CAL", date: 2021-07-23, milestone: 0.5},
]
The facet sorting should be: ABR, BAS, CAL