hcp-uw / syntext

website for practicing your typing
5 stars 0 forks source link

Modular Chart component #59

Open elimelt opened 1 year ago

elimelt commented 1 year ago

@karhu1

Since we are storing the data from each game played, an interesting feature would be to go back and view your performance from previous games, or how your skills change over time.

Thus, we should make a Chart (or Graph, or whatever else) component that takes an object or an array of objects (both should be possible) containing game data. That way we can reuse this component all around our App.

Initially it can be implemented as just an object like so: prop: {wpm-data: int[]}, but we should keep in mind the different use cases and add more attributes as well that are tailored to our use cases.