Skip to content

matthayes/anki_progress_stats

Repository files navigation

Anki Progress Stats

Build Status Release

This is a plugin for Anki that adds the following graphs. You can find it listed under Anki addons here.

Important: For Anki versions 2.1.28 and higher you need to shift+click on the stats link to view the old stats page with these graphs.

Graphs

Learned Cards

This is the number of cards that were learned. A card is considered "learned" if it leaves the learning phase. This ignores cards that were relearned. This also plots the cumulative total. When this is plotted over the deck lifetime, the final cumulative total roughly equals the number of young cards plus the number of matured cards plus the number of young and mature cards that are suspended.

Learned Cards

Net Matured Cards

This is the net change in the number of matured cards, equal to the number of matured cards minus the number of cards that were mature but were forgotten. A card is considered "matured" when its interval increases above 21 days and forgotten when its interval drop below 21 days. This also plots the cumulative total. When this is plotted over the deck lifetime, the final cumulative total roughly equals the number of matured cards plus the number of matured cards that are suspended.

Net Matured Cards

Matured Cards

This is the number of matured cards, as explained above. This is included to help understand the values in the Net Matured Cards graph.

Matured Cards Lost

This is the number of matured cards lost, as explained above. This is included to help understand the values in the Net Matured Cards graph.

Motivation

Anki includes a Review Count graph that plots the total reviews for learning, relearning, young, and mature cards. This graph is great if you want to know how many reviews occurred in each category, but it can be difficult to understand progress using it. Since one of the goals is to learn cards and have them eventually mature, this plugin tracks statistics for that specifically.

Version History

  • 0.1: Initial Release
  • 0.2: Fix for error when no reviews
  • 0.3: Fix learned cards wrong for filtered deck
  • 0.4: Fix Anki yaxis tick rounding issue
  • 0.5: Fix issue including relearned cards in Learned Cards graph
  • 0.6: Revert recent learned cards changes pending better solution for filtered decks
  • 0.7: More robust detection of learned cards
  • 0.8: Improve graph performance
  • 0.9: Fix calculation of matured cards due to apparent lastIvl bug in revlog table
  • 0.10: Fix bug with last_ivl leading to overcounting of mature cards
  • 0.11: Fix import warning about _ (thanks klieret). Set absolute maximum value of cumulative line as ymax (thanks mattbenscho).
  • 0.12: Move graphs above pie chart.
  • 0.13: Set y axis min based on data. Fix bucket labels for Anki 2.1. Fix deck life bucket ticks for young decks.
  • 0.14: Fix issue with incorrect x axis tick units in some scenarios.
  • 0.15: Fix issue computing stats for beta of Anki 2.1.24.

License

Copyright 2016-2020 Matthew Hayes

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.