DEV Community

Cover image for eSlayers part 7 - fetching more data for math history
Rembrandt Reyes (He/Him)
Rembrandt Reyes (He/Him)

Posted on

3 1

eSlayers part 7 - fetching more data for math history

Last post I was working on fetching data and trying to get some information to display for player match history. Now that I can fetch data from the match API I am going through and pulling all relevant data for match history

So far I have

  • Player name
  • Placement
  • Gold left
  • In-game level
  • Players eliminated
  • Trait of units used
    • Trait name
    • Number of units
    • Tier style
    • Tier of trait
  • Units
    • Unit name
    • Tier
    • Items

This is what my Match.tsx component looks like now
Match Component

And how it looks in localhost
Alt Text

So now that I have match history I want to pull more information related to the summoner. So in my case, I would like to pull some stats for Rjeezy.

Here are the data points I am looking to get for the summoner:

  • Average placement
  • Trait stats for the last 20 games
  • Most used units

So next up I will create some logic that will filter out all players besides the summoner so I can get access to summoner specific data for the data points I am trying to show.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️