Month field error in graph of weight

In the graph for “Weight list” (above the daily weight list) the months are off by 1, i.e., what should appear as “February” appears as “March”. (It’s obvious it’s a 0- vs. 1-based indexing problem.)

It shows up in the following ways that I’ve found so far:
(1) In the last line where the months occur (to show what time period is to be seen), it is 2 months too high (i.e., the first month of the year is March); this is a combination of an off-by-1 error and the fact that the month is to the left of the dividing line between the months instead of the right (where there’s no space). I would suggest leaving the text where it is and adjusting the appropriate index by 2 if this is under your control. This is a less important fix than the following.
(2) In the months line above (1) (which is the caption line for the main graph and the month names are centered directly on the month separator dates), there is an obvious off-by-1 error, i.e., “June” appears where “May” should appear, (and is where my current entries are appearing.) Because of this my January 29-31 values don’t appear (since it’s cutting off for February), and “March” 29-31 graph entries have no dates entered since no data for February 29-31 was entered (for obvious reasons).
(3) In the field that appears in the upper right corner when you “hover” over a date, the month shown has an off-by-one error the same as the rest, i.e., if the graph (erroneously) shows “June” in the caption, instead of “May”, then the month in the upper right will show “June” as well.

I’m sorry I can’t help you myself, as I’m a coder, but not a web coder. I can, however, have my 19-year-old take a look at it if you want, as he has a lot of experience with this stuff.

(Obviously if the error is on my end let me know and I’ll try to figure out what’s wrong with my system. Just surprised I haven’t seen a thread on this in the first two pages of threads.)

On another note, is there a reason why my weight is graphed in kg when I enter it in lbs?

Thanks. We’ll get it fixed.

Thanks, Mike. So the chart in there is a very provisional and temporary one, and as these things tend to go, it’s still in there. I have been looking for a long time for a new library of charting routines and have at least finally settled on one. Now the next step is to implement the weight chart using the new library and I have NOT done that part yet.

I will move this up in the priority: I’m glad to hear somebody is using it and paying attention.

Thank you!

-Eric

I have updated the weight graph. Let me know what you think of it. And it actually knows if you are looking for pounds or kilograms!

-Eric

The new one looks nice. I would have liked to keep the choice of how much data to post, but that is not that important. (But if you send me the before and after of the code, my son and I can take a look at it to see if we can have the best of both worlds. He has done a lot of debugging of code for webpages and I have a Ph.D. in CS, so we might be able to help.)

Anyway, good job. Thanks!

Nice! It isn’t a code question per se, more of an issue just configuring the new graphing library to do what we want. There are timescale based filters that can be activated on it. I just started with a basic chart.

Cheers,

-Eric