rilling / OpenTracks-Winter-2024-COMP-354

OpenTracks is a sport tracking application that completely respects your privacy.
https://OpenTracksApp.com
Apache License 2.0
5 stars 26 forks source link

Add a graph to the session history area #76

Open achneerov opened 8 months ago

achneerov commented 8 months ago

Feature Request: In the previously built stats area for session history, which we will call session history from now on, we should implement a graph, this graph should be a bar graph that is easily customizable and easy to connect data too. Moreover it should also update in real time when the data it takes from changes. The data will be passed as an array. Expected Outcome: We expect there to be a bar graph that takes data and represents it accurately and quickly. Alternative Solutions: We could have implemented a regular graph with points that connect to each other. However some other applications that track activity such as Apple Health Steps use bar graphs so we felt like it was a better option. Completeness Requirement: This ticket is complete if there is a bar graph that is easily adjustable and changes in real time based on its data. The data should be passed as an array.

achneerov commented 7 months ago
image

After spending over 20 hours on a thorough inspection, my teammates Duc Huy, Shayne, and I confirmed that the graph represents an aggregate of the statistics. Initially, we tried to add our own bar chart using com.github.mikephil.charting.data.BarData but encountered integration difficulties. However, we later realized that the application already had a graph view, making our pull request somewhat redundant. As a result, pull requests #75 and #76 are no longer necessary, while #76 and #77 are still relevant for continuation.