Hi all,

My data:

Code:
input float(Datum_n total_unem_bymonth sum_newpositions_bymonth)
723 148245 2261
724 150673 4089
725 144790  855
726 143049 5430
727 145249 5507
732 164182 4655
733 162495 5044
734 152841 5753
735 146375 4993
736 138150 4628
737 127136 3637
738 123275 3318
739 121203 3301
740 115404 3811
744 117633 3418
745 113398 4188
746 105133 3700
747  99974 3164
749  87939 3584
I would like to plot these data using a twoway line, with two y-axes; one for new positions, one for unemployment. The x-axis should be for time (Datum_n).

I ran the following code:
Code:
twoway line sum_newpositions_bymonth Datum_n , yaxis(2) ytitle("Monthly Total New Dual VET Positions") || line total_unem_bymonth Datum_n, yaxis(1) ytitle("Number of Registered Unemployed Individuals (Monthly Total)")
When I run the code above, both lines are continuous, however I do not want them to be.

The thing is, as is visible from the data extract, there are gaps in Datum_n, and I would like these gaps to be reflected in the line of the following variable: sum_newpositions_bymonth. Basically, I would want the line of sum_newpositions_bymonth to be discontinuous, meaning that it should be "interrupted" whenever there is no "Datum_n" (e.g. over the period 727 to 732) and then, after the gap, start again at the next available date for Datum_n.

Could anyone please let know how to adapt the code to show this discontinuity?

​​​​​​​Many thanks in advance!