Line breaking for null value for the line chart

Hello, I am trying to plot line chart with heart rate data and I want to represent the line breaks when heart rate is not recorded. But I am still getting a line for that instead of line breaking.

Does anyone knows any options?

More details would be helpful. How are the plotting the data now and what have you tried? I can think of a number of ways to fix this. You can add a β€œNaN” where there is missing data. You could plot each section separately. You could plot using markers rather than lines.