Charts and Graphs Displaying Incorrect Books by Year Read

DiscussionsBug Collectors

Rejoignez LibraryThing pour poster.

Charts and Graphs Displaying Incorrect Books by Year Read

1Michael.Rimmer
Juin 12, 2022, 6:10 am

I've noticed that if I select an older year on the Read In tab, the books displayed in the graph set are actually for the year after. For example, I select Read in 1982 and the books displayed are those I actually read in 1983. More recent years display correctly, and I'm too lazy to work through to see where they start to go wrong, but at some point they do. Has anyone else noticed this?

2kristilabrie
Modifié : Juin 13, 2022, 9:54 am

Hmmm, I'm seeing some inaccuracies in your account, for sure, with "read" dates:

1. go to https://www.librarything.com/stats/Michael.Rimmer/read
2. select "Read In" drop-down menu and select 1970
3. Open the "Read by Year" table by clicking on the graph

See the following (excuse the formatting):
Year // Books
1970 // 4
1990 // 2
2020 // 1

4. Click "1970" in the table to see the 4 books read in 1970.

Bug: I'm seeing only 2 books read in 1970, looking at the "Finished" reading date field, plus 1 in 1990 and 1 in 2020.

NB: Note there are two filters being applied, both the "Filter: Read in 1970" and "Read: 1970". I'm not sure if that's messing anything up.... Ah, if I go back to step 4 and click 1990, I get the two books read in 1990 and 2020, with the "Filter: Read in 1970" and "Read: 1990" as filters. Interesting.

3kristilabrie
Juin 13, 2022, 10:15 am

Ahh, excuse my note earlier: the two books *have* reading date entries 1970, though they're not the most recent reading date entry.

4kristilabrie
Juin 13, 2022, 10:19 am

>1 Michael.Rimmer: Okay, back to your specific example because the only issue I'm seeing now is more of a display quirk (the way we're showing reading dates in Charts & Graphs) than a real bug.

I'm looking at your "Read in" 1982 books and seeing 1982 dates. Can you specify where, exactly, you're looking? A link to the page and/or graph? Can you give me one or two books that are showing 1983 reading dates where you're expecting to see 1982 dates? Also, what browser and OS (operating system) are you using (e.g. Google Chrome, version 90 and Windows 7, etc.)? Thanks!

5Michael.Rimmer
Modifié : Juin 13, 2022, 11:09 am

>2 kristilabrie: Thank you for time in looking at this for me 🙂

Using the filter you describe in your first post, then clicking through to see those seven records in Your Books, only one of them did I actually read in 1970, the others having start and finish dates in 1971, which you can hopefully see here: https://www.librarything.com/catalog.php?view=Michael.Rimmer&collection=-1&a...

I think I now see the source of the issue: the one book showing correctly has a full date, as I know I received it on 25th December 1970. The other books have only the year (1971) in the started and finished fields, though why that would cause the filter to pick them up incorrectly is beyond me. Perhaps it will make sense to you 🙂🤞🏻

The same holds for 1982, which year I picked as a random example: If the "date read" fields have a full dd-mm-yyyy, they are filtered correctly, but if only a yyyy they are filtered incorrectly.

6knerd.knitter
Juin 13, 2022, 11:45 am

This seems to be a time zone issue: when I look at your data from my own account, I only see 4 and they look correct, but when I logged in as you I see 7, just like you said with dates of 1971, so I think we're converting 1971 to a different time zone and getting 1970 instead... will need to look into this

7knerd.knitter
Juin 13, 2022, 12:13 pm

I made a change that I think fixed this problem; please let me know if you still see it.

8Michael.Rimmer
Juin 13, 2022, 12:13 pm

>6 knerd.knitter: Thanks KK 🙂

9Michael.Rimmer
Juin 13, 2022, 12:17 pm

>7 knerd.knitter: Yes, thank you! That's fixed it 😊👍🏻🥇