Hello,
there is a new ado available in the ssc that generates stacked area graphs for up to 10 variables with alternating positive and negative values.
It includes a few options for labeling, consistent colors and ordering of the variables.
You can install it by typing
Two examples:
Annual change in employed in germany by country of origin:

Foreign trade of germany with selected countries, the total then represents the balance:

The corresponding data:
foreign trade data, Statistik 51000 in destatis by Statistisches Bundesamt (Destatis), 2023
employment data, migration monitor by Statistik der Bundesagentur für Arbeit, Juni 2023
If you encounter problems or anything you can also contact me via email.
Greetings
Jonathan
there is a new ado available in the ssc that generates stacked area graphs for up to 10 variables with alternating positive and negative values.
It includes a few options for labeling, consistent colors and ordering of the variables.
You can install it by typing
Code:
ssc install stckar
Annual change in employed in germany by country of origin:
Code:
stckar ger eu balkan easterneurope asyl other months, graphopt(xlabel(,angle(60)) ylabel(,angle(60)))
Foreign trade of germany with selected countries, the total then represents the balance:
Code:
stckar China1 China2 USA1 USA2 UK1 UK2 NL1 NL2 FR1 FR2 year, nosort
foreign trade data, Statistik 51000 in destatis by Statistisches Bundesamt (Destatis), 2023
employment data, migration monitor by Statistik der Bundesagentur für Arbeit, Juni 2023
If you encounter problems or anything you can also contact me via email.
Greetings
Jonathan