asreview/asreview-insights

Incorrect plots when plotting partly labeled state files

J535D165 opened this issue · 1 comments

ASReview users can plot a state file from the ASReview LAB GUI. However, this results in incorrect plots.

bug_plot_partly_labeled

This is the file:
result.json.zip

Frontend shows the following:

image

The 5% reviewed is correct. There are about 6k items in the dataset. So the issue is in the y axis.

Relates to asreview/asreview#392. This PR makes it possible to visualize an ASREVIEW project file.

This might relate to the way the analysis class computes the number of inclusions found.

https://github.com/asreview/asreview/blob/d81a8c3062959f4c44840cda87c5a537638c11cb/asreview/analysis/analysis.py#L122-L173