- Find a suitable chart library and install it (e.g. https://recharts.org/en-US/)
- GraphComponent: create a new graph component
2.1 GraphComponent: pass the data to be displayed through the props
2.2. TestComponent: include the new component into the TestComponent
2.3. TestComponent: Use the getDailyCheckValues function (exampleData.ts) to get the DailyCheck data
2.4. GraphComponent: show the weight history of the user - SelectGraphComponent: Create a wrapper for GraphComponent with four selection buttons
3.1 SelectGraphComponent: Allow the user to select different graphs with the buttons (e.g. weight, calories etc.) - Use CSS Classes or react styles to give the SelectGraphComponent an appealing and intuitive design
- TestComponent: add a button with which the user can display additional SelectGraphComponents (Like a customisable dashboard)
5.1. graphsSettingsSlice: store and read all information about the additional graphs in Redux (e.g. as string array) - persist the Redux store using redux-persist (already installed)
5.1 Extendstore.ts
with Redux Persist
5.2. add the persist gate toindex.tsx