Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed problem with chart shifting on the x-axis #2853

Open
fabiodurao opened this issue Apr 12, 2024 · 1 comment
Open

Fixed problem with chart shifting on the x-axis #2853

fabiodurao opened this issue Apr 12, 2024 · 1 comment
Assignees
Labels
community Community Reported Issues friend

Comments

@fabiodurao
Copy link

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:

  1. Go to the Watch List and select some unchanged binary variables
  2. 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
image

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.

@Limraj Limraj added community Community Reported Issues friend labels Apr 14, 2024
@Limraj
Copy link
Collaborator

Limraj commented Apr 14, 2024

Hi @fabiodurao,

  1. 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..

  2. 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"

  3. "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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community Reported Issues friend
Projects
None yet
Development

No branches or pull requests

3 participants