I created a line chart for the machine\'s production of different materials(let say A, B, C, D, and so on) over the months. Now I want to automate the code