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

broken graph with two data loads since version 4.11.0 #373

Closed
mf8hd opened this issue Oct 12, 2023 · 4 comments
Closed

broken graph with two data loads since version 4.11.0 #373

mf8hd opened this issue Oct 12, 2023 · 4 comments
Assignees
Labels
bug Something isn't working needs info feedback from requester required

Comments

@mf8hd
Copy link

mf8hd commented Oct 12, 2023

I have a dataset with two data loads, both HTML grabbers with "timestamp of dataload" set to yes.
Dataset

In Analytics version 4.10.0 the line graph look good, but since the update to version 4.11.0 the graph looks like this:
Line Graph

When I change the graph style to "bar graph" it looks like this:
Bar Graph

I think there is something wrong with the cronological sort order of the second data row. The data point of the second data row, that are shown after the last data point of the first data row should fill in the gabs of the second data row.
Bar Graph X Axis

I have reset the data collection after the update to version 4.11.0, but nothing changed.

@Rello
Copy link
Owner

Rello commented Oct 13, 2023

Hi,
thank you for the report.
I will check where the sorting got lost...

@Rello Rello self-assigned this Oct 13, 2023
@Rello Rello added bug Something isn't working in progress development in progress labels Oct 13, 2023
@Rello
Copy link
Owner

Rello commented Oct 17, 2023

Hi, can you export the report and drop me the file here:
https://home.scherello.de/owncloud/s/FdwAJ52FkxTa7cm

I tried and I could not reproduce.
what is the time format you are adding?

@Rello Rello added the needs info feedback from requester required label Oct 17, 2023
@mf8hd
Copy link
Author

mf8hd commented Oct 17, 2023

The report works fine if i use chart type "timeline" but does not work if i use chart type "line". (I uploaded the reports and sample data.). If thats the intended behaviour then it's ok with me.

Thank you for your great work!

@Rello
Copy link
Owner

Rello commented Oct 18, 2023

Hi,
this is the point: bar chart will not work unless you load the data with exact the same timestamp. then they can be grouped. but this will not work in this case because the data loads run with some seconds apart.
See this example. I added a line manually with the same timestamp and it works to combine both
Bildschirmfoto 2023-10-18 um 19 24 25

using the normal line will also not solve the problem, because it will look plain at the values and not evaluate them as datetime. then it will plot them in the sequence received.
but what should work is the timeline chart. can you confirm this?

one hint: with using {"scales": {"xAxes": {"time": {"unit" : "day"}}}} in the chartoptions will make the x-axis look better...

@Rello Rello removed the in progress development in progress label May 24, 2024
@Rello Rello closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs info feedback from requester required
Projects
None yet
Development

No branches or pull requests

2 participants