Saurabh,
Do you mean calculating high and low of entire dataPoints including dataPoints which are outside the viewport of the chart?
Can you kindly brief us more about your requirement so that we can understand it better and help you out?
—-
Manoj Mohan
Team CanvasJS