[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

I've recently been trying my hand at javascript canvase

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 18
Thread images: 4

I've recently been trying my hand at javascript canvases so I made a website that let's you see the amount of essential micronutrients in a food relative to your daily RDA. I haven't been working on it long, but I'm starting to get burned out and would like to see at least some use out of it now that it's at least semi-functional http://nutricharter.xyz
>>
Bump damn it.
>>
File: iranian girl.jpg (17KB, 480x360px) Image search: [Google]
iranian girl.jpg
17KB, 480x360px
nigga what the fuck is the y axis on that bar graph
>>
>>36989372
No y-axis yet, but it's percent of your RDA. The red line is 100%.. but since that's what sticks out to you most, that'll be changed in the next patch.
>>
>>36989235
where are you getting your data and how accurate is that data?
>>
>>36989547
Right now I'm mining it from nutritiondata.self.com. I'm eventually going to change to a nutrition composition database and you'll have to search for the food.

As for the RDAs, wikipedia.
>>
File: cara_pensive.jpg (56KB, 600x550px) Image search: [Google]
cara_pensive.jpg
56KB, 600x550px
Overall good idea, shit execution so far
>literal garbage on mobile thanks to fucking Bootstrap
>wasting bandwith on Bootstrap
>putting a picture of a fucking salad in the background
>not sourcing nutrient goals for weight/sex
>not using USDA nutrient database so you have more than 20 fucking foods
>increments of 10 g for each food, no textbox
>JUST
>>
File: smug jude.jpg (166KB, 1200x1156px) Image search: [Google]
smug jude.jpg
166KB, 1200x1156px
>>36989589
>"mining"
>copy pasted 2 dozen nutrition data facts from self.com

I wasted 35kb of data for this
>>
Op bout to be a millionaire mang
>>
seriosuly OP, fix this >>36989599 shit and report back. Shouldn't take you more than like 10 days if you're even mildly competent
>>
>>36989599
What do you mean by sourcing nutrient goals for weight/sex?

80% of the other stuff you listed is on my to-do list, I'm just using this as an oppurtunity to arrange that to-do list.
>>
>>36989641
Actually, it should take me about 3-4 days, but I need like 1 day rest.

>>36989614
Haha, no... there's a nutrientData object on every list I basically console.logged the necessary parts.
>>
>>36989235
This is pointless dude. There's a ton of variation in the vitamin contents of food based on growing conditions and preparation. Those numbers you see online are just averages to give to give you a rough estimate. Just eat a variety of whole foods and that's all you need.
>>
>>36989704
I know, I wouldn't say it's pointless though.
>>
>>36989669
meaning how did you arrive at those numbers but you answered that here >>36989589

ppl will wonder where you got it, so just put that in there somewhere
>>
>>36989704
Then you could use the tool to give an "average" indication. It can still serve as a basic indicator.

I'd like to see ranges on it though. Since the data are averages, there should really be something simple like a range 2 standard deviations wide (one in each direction).
>>
>>36989793
That's a good idea, but it might be impossible since nutrient composition databases most likely don't contain that info.
>>
>>36989827
then you should seek out whatever source these databases are relying on. Somewhere someone did the actual measurement and if it's a legitimate source they will have report deviation.
Thread posts: 18
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.