Fix range boundry calculations for ThresholdLineRange chart extension