luanti-org / luanti-org/contentdb

Cannot see exact figures for all packages in stats when an account has too many packages

Open
#554 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

@ Front End Bug
Dominant language
Python
Stars
115
Forks
62
Avg merge
19h 7m
Merged PRs (30d)
5

Description

## Summary
There is an issue with the JavaScript chart viewer for package statistics pages where it cannot show the exact figures for a date when there are too many packages. The issue is probably not the fault of ContentDB but of upstream (chart.js I think?)

##### Steps to reproduce
Go to the [mt-mods stats page](https://content.minetest.net/users/mt-mods/stats/) and hover over the chart without filtering any packages out. Notice that only about 1/3 of the packages are listed in the hover text since there are so many, and moreover those are the bottom 1/3 of packages not the top 1/3.

##### Workarounds
- Exclude packages until you have an amount visible that won't overflow
- Use your own visualisation with the JSON format data provided

##### Suggested fixes
Fixes would probably have to involve a lot of rework like forking upstream. It also works within the confines of a canvas. Still, I will provide them as ideas:
- Scrollwheel to go up and down the tooltip list
- Drawing an additional column of the list each time it overflows until they are all visible

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the JavaScript chart viewer used by the user stats page and reproduce the tooltip with all packages selected, using the mt-mods stats page linked in the issue. Check whether the limitation comes from chart.js; done means the tooltip exposes exact figures for every package on a date without requiring packages to be filtered out.

Written by the indexing model from the issue text.

Assessment

Tech stack
chart.js, javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.