I'm trying to display the data in a bar chart depending on a year selected and a specific driver name/id
Right now I have the chart displaying the # of the rides per month. However, I want to add a drop down menu for the years with default year as 2020 and an other drop down menu for the driver name/ id that made the rides.
Basically, I want to show the rides that have been made by specific driver by month. on other words, How many rides a driver has made per month. my code for representing the rides and the driver is working. but I don't know how to represent it by drop down menu on the UI here is the code that calculate # of rides a driver made by month:
How would I filter the data so when I choose 2019 with a driverid for example it will show all the rides that has been made that year by that driver?
I would Appreciate your help. Thank you.