-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Pie and Combined(bar + line) chart in HealthFragment #43
feat: add Pie and Combined(bar + line) chart in HealthFragment #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome job prince, please try to execute these changes and send them through in your next PR
app/src/main/java/com/example/cyclofit/ui/fragment/TimeCombinedChartFragment.kt
Outdated
Show resolved
Hide resolved
val months = arrayOf( | ||
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use enums instead of an array. Also make sure that you define them in a separate file. So basically make an Enum by the name of Months.kt
and define months there
app/src/main/java/com/example/cyclofit/ui/fragment/KcalCombinedChartFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/example/cyclofit/ui/fragment/KcalCombinedChartFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/example/cyclofit/ui/fragment/KcalCombinedChartFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/example/cyclofit/ui/fragment/DistanceCombineChartFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/example/cyclofit/ui/fragment/DistanceCombineChartFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/example/cyclofit/ui/adapter/CombinedChartAdapter.kt
Outdated
Show resolved
Hide resolved
enum class Months { | ||
Jan, | ||
Feb, | ||
Mar, | ||
Apr, | ||
May, | ||
Jun, | ||
Jul, | ||
Aug, | ||
Sep, | ||
Oct, | ||
Nov, | ||
Dec | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this inside of a new file . I had told you to put this inside Months.kt
please squash your commits. To squash a commit you can use |
- Add menu(in toolbar) in HealthFragment for changing chart type - Add Pie chart for KCal, Time and Distance in HealthFragment - Add Combined chart for KCal, Time and Distance in HealthFragment
0731ec1
to
bd35f27
Compare
Hey @PratyushSingh07, I fixed all the issues you mentioned in this PR. Please review and merge my PR fast as CodePeak is ending soon. |
This PR adds a Pie and Combined(Bar + Line) chart in HealthFragment
Fixes #13
Screen recording
Record_2023-12-22-13-26-29.mp4