geometer / FBReaderJ

Official FBReaderJ project repository
http://www.fbreader.org/FBReaderJ/
1.83k stars 802 forks source link

[Feature] Reading statistics like Kobo "Reading Life" #261

Open mantonelli opened 9 years ago

mantonelli commented 9 years ago

Would be nice see statistics about reading habits per book, like time expended and percentage read.

liquiddandruff commented 9 years ago

I would love to see this as well. Stats are always so awesome to look at.

liquiddandruff commented 9 years ago

With some thought, I have decided to modify LibraryTree to allow unique views so that the statistics view can be tweaked. Is this okay, geometer? It can be done using the default view (but it might not look as good), so I can revert to that if necessary. There may be a better way.. suggestions?

liquiddandruff commented 9 years ago

https://github.com/PhilJay/MPAndroidChart

I would love the chance to integrate these charts into FBReader. It would add a ton of functionality and variability in showing the user their reading statistics (pie chart for time spent per genre, clicking each slice would bring up the list of each genre's books, sorted by time spent; line chart with date on x axis and time spent reading on y axis, clicking on data points would show the books read that day; etc, etc, countless options).

The library seems to support all the platforms that FBReader targets, and the charts are also very pretty. Displaying the user's reading statistics in such accessible ways would be very interesting to anyone who would like to know how they read! Gimme your thoughts about this, geometer!

Putting the integration of this on hold for now while I get the "model" aspect of this more complete.

liquiddandruff commented 9 years ago

Here's what the WIP layout looks like currently. The statistics calculations are separate from the view calculations, so complete layout changes in the future should be simple. I have tested this extensively through the following situations and things appear to be working normally.

Implementation details

To do

Bugs

Binary

layout1_scaledlayout2_scaled

geometer commented 9 years ago

Looks interesting. I will finish with Bookshelf plugin soon, then will read this carefully.

liquiddandruff commented 9 years ago

Updated the layout and added a few more statistics.

Binary

layout3