score:7

Accepted answer

duration property would help you to restrict view to a specific time limit. it accepts time in millisecods and for 20 minutes view you can configure it like below.

for more details, check plugin configuration

realtime: {
    onrefresh: function(chart: any) {
            // eslint-disable-next-line functional/immutable-data
    },
    delay: 2000,
    duration: 1200000,
},

Related Query

More Query from same tag