Add unit type filter to player stats tracker #82

Open
opened 2025-10-11 19:42:43 +00:00 by ntguardian · 5 comments
ntguardian commented 2025-10-11 19:42:43 +00:00 (Migrated from github.com)

The player stats tracker is an excellent tool.

Image

What I would like is to have a filter where you select specific units, such as T1 bot constructors, grunts, etc., and the graph will show time series plots for that kind of unit.

For example, if I filter on T1 bot constructor, I can see how many constructors each player has as the game caries on, or it shows the metal value of the T1 cons (not as useful but illustrative), or shows the combined build power, etc.

The filter could work like on the BAR replay website where you can filter matches by participating players, only here it would be for units.

Image
The player stats tracker is an excellent tool. <img width="1467" height="741" alt="Image" src="https://github.com/user-attachments/assets/47d2c337-3acc-469f-98aa-3118a479cda1" /> What I would like is to have a filter where you select specific units, such as T1 bot constructors, grunts, etc., and the graph will show time series plots for that kind of unit. For example, if I filter on T1 bot constructor, I can see how many constructors each player has as the game caries on, or it shows the metal value of the T1 cons (not as useful but illustrative), or shows the combined build power, etc. The filter could work like on the BAR replay website where you can filter matches by participating players, only here it would be for units. <img width="408" height="256" alt="Image" src="https://github.com/user-attachments/assets/858f3a1f-6900-4680-a421-4134fd3cdf23" />
Varunda commented 2025-10-11 22:22:12 +00:00 (Migrated from github.com)

sure, i like this

sure, i like this
Varunda commented 2025-10-19 19:00:23 +00:00 (Migrated from github.com)

worked on a bit in 93db3afc45 but not super happy with how it is

Image

struggling with the design for this but i think it's a good idea

worked on a bit in 93db3afc45983b165f46654613a1e73f6ef485ae but not super happy with how it is <img width="1484" height="653" alt="Image" src="https://github.com/user-attachments/assets/9d9881c6-903c-46da-a16c-285f61e490d1" /> struggling with the design for this but i think it's a good idea
ntguardian commented 2025-10-24 03:00:09 +00:00 (Migrated from github.com)

That's an interesting design, not what I had in mind. The tooltip could be incorporated elsewhere, and instead of showing everything it just shows top X, and users can control what X is. That would be interesting information.

What I was originally thinking of (which would also address why the tool up here seems to not have a good interface) was an interface where you can select what to include in the graph and what metrics to track. For example:

Image

(Source: https://dash.gallery/dash-clinical-analytics/?_gl=1ya85jy_gcl_auNjU3ODAzNDk3LjE3NjEyNzQzMTU._gaMTQ4OTYzMzg1Ny4xNzYxMjc0MzE1_ga_6G7EE0JNSC*czE3NjEyNzQzMTUkbzEkZzEkdDE3NjEyNzQzMjkkajQ2JGwwJGgw)

You could make a tool resembling the "Select Admit Source" interface where you are instead selecting which units/buildings to include in your metal/energy/BP/count trackers. To add/subtract units, you can click on the box and start typing, and it will make suggestions for units as you type. You may also have some pre-defined groups included in the tags, such as "All mobile constructors", "All bots," "All T2 bots", etc., for common categories people may want to filter on. (I think mobile BP, units with BP, bots, vehicles, air, T1, T2, etc. would be common categories for which there would be a pre-made tag.)

That's an interesting design, not what I had in mind. The tooltip could be incorporated elsewhere, and instead of showing everything it just shows top X, and users can control what X is. That would be interesting information. What I was originally thinking of (which would also address why the tool up here seems to not have a good interface) was an interface where you can select what to include in the graph and what metrics to track. For example: <img width="704" height="645" alt="Image" src="https://github.com/user-attachments/assets/71ee3419-9417-4413-809d-6586caf8c627" /> (Source: https://dash.gallery/dash-clinical-analytics/?_gl=1*ya85jy*_gcl_au*NjU3ODAzNDk3LjE3NjEyNzQzMTU.*_ga*MTQ4OTYzMzg1Ny4xNzYxMjc0MzE1*_ga_6G7EE0JNSC*czE3NjEyNzQzMTUkbzEkZzEkdDE3NjEyNzQzMjkkajQ2JGwwJGgw) You could make a tool resembling the "Select Admit Source" interface where you are instead selecting which units/buildings to include in your metal/energy/BP/count trackers. To add/subtract units, you can click on the box and start typing, and it will make suggestions for units as you type. You may also have some pre-defined groups included in the tags, such as "All mobile constructors", "All bots," "All T2 bots", etc., for common categories people may want to filter on. (I think mobile BP, units with BP, bots, vehicles, air, T1, T2, etc. would be common categories for which there would be a pre-made tag.)
ntguardian commented 2025-11-05 01:26:47 +00:00 (Migrated from github.com)

Found it! I think what you should be using is Selectize.js to manage filtering.

https://selectize.dev/

Found it! I think what you should be using is Selectize.js to manage filtering. https://selectize.dev/
Varunda commented 2025-11-05 19:19:55 +00:00 (Migrated from github.com)

seems like that requires jQuery, which i don't have in this project and don't really want to add all of jQuery for just 1 feature

i do have something similar to that already added for match searching

Image

the feature idea does seem pretty cool, i just struggle a lot with front end work lol

seems like that requires jQuery, which i don't have in this project and don't really want to add all of jQuery for just 1 feature i do have something similar to that already added for match searching <img width="448" height="142" alt="Image" src="https://github.com/user-attachments/assets/a78a719b-c67e-4cf1-a156-f0dbc94af267" /> the feature idea does seem pretty cool, i just struggle a lot with front end work lol
Sign in to join this conversation.
No description provided.