Figure widget to distinguish solid and dotted line plot based on condition(Year)

HI @Arshad welcome to the forums.

Could you please format your code for better readability?