Need advice on side project

Hello, I started building weather widget, my main goal is to display weather hourly for 2 days and i want to make it looking something like this:
weather

When you click arrow you simple moving backward/forward for next hours, displaying data.

I’m fetching data from weather api, but don’t know how to approach making chart inside slider, i’m using React, any suggestion how can i accomplish this?