As the given data can not be used directly it is important to pre-process.
React.js: React is fast, easy to use, component based, very popular.
Recharts: Reacharts library is based on d3js and built on react component, vastly customizable.
Foundation: Foundation is standard framework I use, because of extremely useful classes and familiarity
react-router: a Standard router for react.
- Optimize the loading time:
- Optimized loading time, by creating a basic HTML & CSS structure(similar to dashboard) with a loader, so user can see something, while browser is fetching JS.
- By making API call when the user opens a particular tab or page.
- Mobile responsive
- Made the app responsive with foundation framework without and self-written media query
- Two tabs contain the table, made them scrollable on small screens.
- In Desktop graph filter and options are visible at once, but on mobile & tablets, user can use a button to switch between them so he doesn't have to scroll down much.
- Progressive Web App
- Created progressive web app, by installing service worker and saving all important files like the index, CSS, js by user installs the app.
- Fulfilled
- Offline Usable
- Service worker catches every request app makes, whether on PC browser or via mobile app, so it can be used even when the internet is not available.
- Better view than table for top players
- Allow user to select from top players page, then jump to to comparison
- Selection always visible so user can quickly remove one and add another.
- PWA Cache the json response with some expiry data to app can work offline always.