chartjs – Only connect dots if less than 1 minute apart

I have a chart with values that arrive at variable intervals. usually i have data point per second, but during a pause i could get no point at all for 20 minutes. or over a whole weekend.. here is a screenshot of my current chart:

enter image description here

what I would like to do, is to delete the connetion line between the points if the points are more than 1 minute apart. I could do it by inserting “null” values, but given that the data arrives every second I would have to add a lot of null values over multiple weekends..

is there an automated way to get to this result? i have been searching extensively without finding a proper solution. SpanGaps does not affect my data since there is no empty value in between.
what i would need is the opposite of spanGaps.. sort of like “createGaps” that accpets an integer as max interval for the gap.

This is my current flask template code for the green line:

  var myChart = new Chart(ChartDateTime, {
    type: 'line',
    data: {
        labels: [{% for day in days %}'{{ day }}',{% endfor %}],
        datasets: [{
            label: 'Recognized',
            data: [{% for okCrate in recognized %}{{ okCrate }},{% endfor %}],
            backgroundColor: 'transparent',
            borderColor: '#abef14',
            borderWidth: 1,
            radius:2,
            lineTension: 0.1,
            spanGaps: false,
            pointBackgroundColor: '#abef14',
            yAxisID: 'y'
        },
        
       ...
       ...

Any help appreciated.