I need to create a dynamic dataset where the data will be filled through a query in the database, this data can generate N bars to be plotted so the dataset needs to be created according to the information coming from DB .
The number of bars you create also depends on the query. It will look like this:
Data 1-> barra 1
Data 2 -> barra 2
Data 3 -> barra 3
Data 1(horario diferente, mesmo ID) -> barra 4....
I'm using chartsjs to plot.