Setting Y axis boundaries of the company trend graph dynamically based on the values

Setting Y axis boundaries of the company trend graph dynamically based on the values