graphite-project/graphite-web — pull request #785 by steve-dave (2014-07-17 23:52:36+00:00)
Title: JSON[P] Render Bugfix (master)

Basically the key to this is that the range() function returns a list of numbers up to but not including series.end. This meant that if the final timestamp in a series aligned exactly with the end of a series a datapoint was dropped because it's timestamp was not generated. A symptom of this was the the constantLine function only generated one (the first) out of two points when using the JSON format (used by Grafana, etc) so no line was displayed.

I've also made a change to ensure all parameters to range() are ints (as down elsewhere throughout the code) as it seems that sometimes the values can be floats which causes an unhandled exception.

This should resolve https://github.com/graphite-project/graphite-web/issues/539