Approach 1: If you want, you can build the charts using any chart library like chartjs using it with stimulus and passing all the data of your models/controllers to the stimulus controller.
Approach 2: You can use the chartkick gem and everything will be handled like a charm. This gem has a pretty good documentation.
I have used both approaches and it's totally depends on what do you wanna do/ how do you wanna do.
But if you go with the first approach you'll have more control about what is happening and how to customize it if you have a good knowledge about rails/assets/javascript.
https://chartkick.com/ + https://github.com/ankane/groupdate
https://www.chartjs.org/ + stimulus
https://stimulus-chartjs.stimulus-components.com/
Approach 1: If you want, you can build the charts using any chart library like chartjs using it with stimulus and passing all the data of your models/controllers to the stimulus controller.
Approach 2: You can use the chartkick gem and everything will be handled like a charm. This gem has a pretty good documentation. I have used both approaches and it's totally depends on what do you wanna do/ how do you wanna do. But if you go with the first approach you'll have more control about what is happening and how to customize it if you have a good knowledge about rails/assets/javascript.