mwin1201 / fpl-draft-2022

FPL Draft website to track league team performance stats
2 stars 1 forks source link

Add breakdown of points by position #135

Open mwin1201 opened 11 months ago

mwin1201 commented 11 months ago

could include a breakdown of a teams season points and gameweek points by position:

This could be an interesting way to see where owners are getting most of their points from

mwin1201 commented 10 months ago

Added position stats to the gameweek stat arrays in local storage. They resemble the following: { "minutes": 836, "goals_scored": 0, "assists": 2, "clean_sheets": 5, "goals_conceded": 9, "yellow_cards": 1, "red_cards": 1, "bonus": 0, "total_points": 29, "teamId": 82391, "person": "Mo Money Mo Problems", "league_entry": 82627 "GKP_minutes": 90, "GKP_goals": 0, etc. }

Now I need to determine how to display these values. Only the gameweek stats page, season stats page, and dashboard are showing this information.

ideas: Gameweek/Season stat pages -

  1. Have more toggles. GKP, DEF, MID, and FWD all get one and they would show the same existing cards
  2. Include a breakdown toggle that would (only on team cards) display the position breakdown of each total stat