Hi Jon,
I'm assuming the script is working properly, and is not the issue here.
Numbers charts take their data from a specified set of cells. To get the new data onto the chart, you need to expand that range to include the cells containing the new data cells.
You can avoid the need to change the range every time you enter a new date-number pair by including several extra and empty) rows.
The chart will expand to include these data points, but won't show any values until there is data entered in a row.
BTW: A "line chart" is a Category chart. Each entered date is treated as a Category, not as a number or quasi-numeric value.
Data for March 1, March 2, March 7, March 9 and March 10 will be evenly spaced. If the time between samples is significant, consider using an XY scatter chart, with dates on the x axis and number values on the Y axis, and using straight line connections between data points. The X location of the data points will then be spaced according to the number of days between each entry.using the list above, the left-right spacing would look like this (Ignore the date labels, as Numbers would use calculated dates evenly spread in time and evenly spaced along the axis):
x x x x x
Mar 1, Mar 2, Mar 7, Mar 9, Mar 10
And the slope of the lines connecting those data points would be a more precise representation of 'change over time.
Regards,
Barry