IRC logs for #farmOS, 2021-04-19 (GMT)

2021-04-18
2021-04-20
TimeNickMessage
[20:22:08]<ssoyrnoz[m]>I have a stupid question, or at least I feel like it is stupid. I'm trying to modify farm_livestock_weight.js to adjust how weights are plotted. I want to plot days since birth (x) by weight (y) so I can more easily identify individual animals that might be having issues. My question is, how can I bring in the birthdate data for the animal(s) being plotted?
[20:29:50]<ssoyrnoz[m]>Or is there a better/easier way to make that change?
[07:11:30]<mstenta[m]>ssoyrnoz: the JS gets it's content from the `settings` variable that is passed into it from the server: https://github.com/farmOS/farmOS/blob/c5c15043cf30275fa1bdadf8e39a9393ff...
[07:12:02]<mstenta[m]>These are the two places that data is assembled in PHP:
[07:12:30]<mstenta[m]>group report: https://github.com/farmOS/farmOS/blob/7.x-1.x/modules/farm/farm_livestoc...
[07:12:45]<mstenta[m]>individual report: https://github.com/farmOS/farmOS/blob/c5c15043cf30275fa1bdadf8e39a9393ff...
[07:12:55]<mstenta[m]>you can trace that backwards to learn how it is assembled