Data graph resets after duration
I have a dataset defined for true wind, sampling 1/s, duration 1min, and a data chart for it. I was expecting to always see the wind speed of the past minute on the graph. Instead it plots for one minute, then resets and starts again. So every minute I lose the graph that was built the minute before. I tried recreating the dataset and the component, but that doesn't change the behaviour.
https://github.com/user-attachments/assets/c0b18aaf-4240-4fd9-9f2d-dde409590bea
Can you download your config and attach it to this issue?
I see in your config that the Dataset is configured to minute scale with a period of 60. This is different than the video that appears to be a Seconds scale with a period of 60. Do you still have the problem over one hour? I cannot reproduce at 60 Seconds.
I tried with the scale always at minutes, and for duration either 1 or 60. (I wasn't sure what the unit for duration is, I assume now it's what is set for scale, in my case minutes.) The behaviour is always the same, as shown in the video. When it starts, everything gets compressed to the left, but when "full", instead of scrolling to the left, it resets and starts over. The reset happens every 60 seconds. Tried Chrome, Firefox and Safari, always the same.
I just implemented the same graph. I got the same issue than @JonyIvy. The dataset is always resetting after the period.
I'll dig deeper but I can't reproduce so far which I find very strange.
The scale affects the data sample rate. Minutes is every second and Seconds is every 250ms. Don't abuse the sample rate and create large datasets as it strains KIP when you switch dashboard.
Datasets are not meant for data analysis but rather as a simple and quick visual trend guide.
If you need more, Grafana is the best tool and works well with the embedded widget.
I can't reproduce the issue still. Very strange.
This is what I use for Dataset:
- path: self.environnement.wind.speedTrue
- Source: Default
- Sacle: Minutes
- Duration: 1
and just a default DataChart widget set to this dataset. It does not reset when full.
Do you see any errors or warning in the browser console log? You should see the Dataset service starting the datasets with log like such:
[Dataset Service] Starting Dataset recording process: afbe4e41-26f5-404f-a55d-9f7b9b76fbd1
[Dataset Service] Path: self.environment.wind.speedApparent, Scale: minute, Period: 1, Datapoints: 60
[Dataset Service] Starting Dataset recording process: 2f40e935-e759-46f4-8950-2508c8a039dc
[Dataset Service] Path: self.environment.wind.speedTrue, Scale: minute, Period: 1, Datapoints: 60
Can you share what you have please?
I've changed the array size count in the next v3.3 release. See if that fixes it but I have doubts.
@JonyIvy @hanneskoch Is anyone with the Data Chart reset issue available for a quick test?