alicolville / Weight-Tracker

Wordpress plugin: https://wordpress.org/plugins/weight-loss-tracker/
5 stars 4 forks source link

Macros in Grams #562

Open sbservices opened 10 months ago

sbservices commented 10 months ago

People are having to calculate their macros grams manually. I checked the back office settings but there wasn't an option to change it from calories to grams.

So in this table here that the end user sees, it would be more useful to see this in grams or at least for the end user to be able to have the option to toggle it between grams & calories.

image

here are the number of calories for each protein/carbs/fats

1 gram of protein = 4 calories. 1 gram of carbohydrate = 4 calories. 1 gram of fat = 9 calories.

So 100 calories divided by 4 = 25g protein and say 90 calories of fat divided by 9 calories per gram is 10 grams of fat.

alicolville commented 9 months ago

I'll add this into the next release, but more as a spike to investigate the options and whether it is possible in the table control.

alicolville commented 6 months ago

Working on a prototype for the table at least :)

Image

alicolville commented 3 months ago

This is sitting in a branch, but requires more testing and time.