Adding zoom functionality in chart.