Fixed getMaxRangeArray() function
Fixed getPrimaryGraphJson() for negative cases