Making a React Dashboard That shows a bar graph to represent the number of Registrations (Y-axis) to date (X-Axis) I want to make an efficient algorithm that helps me \'zoom