You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Charts with datapoints that have static behaviors, when drawn, do not complete the lines up to the current moment or have an empty beginning. This happens because the graph only connects two points stored in the database and the recording pattern "Record only when the value changes" does not favor variables that are not dynamic, in this case, the user is forced to change to the "Register all data" so that the graph is complete, on the other hand, more information is stored than necessary, which can take a toll on disk space.
Reproduce
Steps to reproduce the behavior:
Go to the Watch List and select some unchanged binary variables
Click to generate the consolidated graph and you will see the drawing of some graphs ending earlier than others and not having a straight line until the end date of the range.
Expected behavior
It is expected that the graph will be drawn from the beginning of the interval to the end regardless of the change.
Screenshots
Desktop (fill in the following information):
OS: Windows 11
chrome
Scada-LTS 2.7.6.1
Additional context
I have two suggestions for a solution:
1 - For all datapoints, record every change as an INSERT in the DB but in the next reading that has an equal value, record that same value as a new line in the DB (INSERT) and then every new reading with the same value, just get this second record and make an UPDATE with the time of the last reading.
2 - Suggestion 1 may not be enough for a variable that has no record in the graph range. Therefore, it would also be interesting for all graphs to look for the first record prior to the start of the graph interval and use it as a starting point to draw the graph.
Step 1 could be the first step to resolve another issue which is to show on the graph the interval in which there was no reading, there is a great demand from users for something like "Null" to appear when communication failed, today only the point is connected before and after the lack of communication. I don't want to explore this issue now, but it's good to keep the scenario in mind.
The text was updated successfully, but these errors were encountered:
From what I understand, what you mean is that even though the point has a value before the start of the range and from that moment to the value on the chart, no changes have been made, the chart is shifted on the x-axis, as if the point had no values before range start?
You might think of it taking the first value before the start of the range, and similarly the first value beyond the end of the range..
Try to add the most concise titles possible. "Charts with datapoints that have static behaviors, when drawn, do not complete the lines up to the current moment or have an empty beginning."
This is too long.
I suggest changing the title to:
"Fixed problem with chart shifting on the x-axis"
"Step 1 could be the first step to resolve another issue which is to show on the graph the interval in which there was no reading, there is a great demand from users for something like "Null" to appear when communication failed, today only the point is connected before and after the lack of communication. I don't want to explore this issue now, but it's good to keep the scenario in mind."
Fabio, this issue concerns a specific problem, if you want to present a different problem, you have to do it in a separate issue, and I have absolutely no idea what you wrote there, so remember to present the problems clearly and divide them into separate issues. If you don't create a clear issue, we can't do anything about it, so the topic doesn't exist.
Regards,
Kamil Jarmusik
Limraj
changed the title
Charts with datapoints that have static behaviors, when drawn, do not complete the lines up to the current moment or have an empty beginning.
Fixed problem with chart shifting on the x-axis
Apr 16, 2024
Describe the bug
Charts with datapoints that have static behaviors, when drawn, do not complete the lines up to the current moment or have an empty beginning. This happens because the graph only connects two points stored in the database and the recording pattern "Record only when the value changes" does not favor variables that are not dynamic, in this case, the user is forced to change to the "Register all data" so that the graph is complete, on the other hand, more information is stored than necessary, which can take a toll on disk space.
Reproduce
Steps to reproduce the behavior:
Expected behavior
It is expected that the graph will be drawn from the beginning of the interval to the end regardless of the change.
Screenshots
Desktop (fill in the following information):
Additional context
I have two suggestions for a solution:
1 - For all datapoints, record every change as an INSERT in the DB but in the next reading that has an equal value, record that same value as a new line in the DB (INSERT) and then every new reading with the same value, just get this second record and make an UPDATE with the time of the last reading.
2 - Suggestion 1 may not be enough for a variable that has no record in the graph range. Therefore, it would also be interesting for all graphs to look for the first record prior to the start of the graph interval and use it as a starting point to draw the graph.
Step 1 could be the first step to resolve another issue which is to show on the graph the interval in which there was no reading, there is a great demand from users for something like "Null" to appear when communication failed, today only the point is connected before and after the lack of communication. I don't want to explore this issue now, but it's good to keep the scenario in mind.
The text was updated successfully, but these errors were encountered: