Track statistics on the stats page and display the stats in charts. Stores the stats in the browser's local storage.
< Opiniones de AO3 Statistics tracker
From the image, it looks like the data has been "mixed". In other words, you have looked at another account or another year and tracked the stats at that time, causing it to be non-linear. The script is very simple, so it only reads the stats off the screen. It doesn't check anything else. The graph will get confused if you added data points that don't really belong.
If you want to fix the data, you could export the data and find the culprit, and remove it. Clear the data from the browser's indexed DB (or local storage if you haven't updated to v2 yet), and import the fixed version. Alternatively, skip fixing it and just clear the data and start fresh.
Thank you so much for your answer. I haven’t looked at another account or another year, but I think I figured out what the problem was. One of my fics had an ‘&’ in the title, and I think that’s what confused the data. I changed it to ‘and,’ cleared the history, tracked the data a few times, and it looks like that fixed the problem. Thank you again for this script!
Good that it worked out for you. Though, I don't think the ampersand (&) is the issue. That's related to work stats, which are separate from total stats. Unless something is *very* wrong, those should never affect each other.
Clearing out the data would have fixed it anyway. I still think one time was tracked incorrectly. There might be more than my examples that causes the numbers to change. I see people accidentally do things all the time and they have no idea how it could've happened, and yet it must have because we see the reults. So you likely just didn't notice it.
Remember to export the data sometimes if you want to create backups in case the data is lost or "corrupted". Then it's super easy to clear the old stuff and import the non-corrupt data.
I've been using your script for a few months now, and I always had this problem, even after clearing the data. I also couldn’t import the exported data, but I thought it was just a formatting issue or some another issue on my part. Then I opened the exported file and realized that every line with the name of my fic that included an ‘&’ was broken: the part after the ‘&’ in the title was showing as statName. Changing the name fixed both problems for me: the dots and the import issue (I exported the data and imported to check it and it worked!). I have no idea how that’s connected to anything, since I don’t know much about scripts. I’m really grateful for your help!
Thank you for bringing this to my attention. I've now fixed the issue with the script. Ampersand (&) is a special character and specifically a reserved character in HTML, so it was being encoded as "&" given how I parsed the text. Because that includes a semicolon, it was interpreted as an additional delimiter (basically adding a new column that shouldn't be there). Setting a different delimiter would've given correct graphs, but it would have still had the incorrect title in the exported files.
I've updated the script, and now it should work with any special characters 😊 So you can change the name back if you want to, after you update to v2.0.1.
I love your script! I’ve been using it for some time already, and I have to say it’s wonderful. There’s just one bug I can’t get rid of: the dots don’t connect in one line. Do you happen to know what triggers it? Can I fix it?
Once again, I love your script (I’m also using the one for reordering tags — it’s a lifesaver for a WIP writer). Thank you so much for sharing them!