Kixeye/graphite-web — pull request #33 by steve-dave (2014-07-17 08:12:20+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 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.