How to create a graph that show the ammount of registers per day ?

I want to display all days between the initialDate and the finalDate parameters but i don't know how to make this work, my graph will only display days wich there are registers linked, How can i make this work the way i intend to ? 

Solution

Hi Lucca,

You need to create a DataPoint for each date, not just for the dates that happen to have values in your database. There are several ways you could go about this, but you'll need some sort of "manual" loop (i.e., not using a For Each but an If) and create a DataPoint with a 0 value if there's no value from the database for that date.

Solution

Hi Killian, thanks for your reply!

How can i create a datapoint that stores dates?

Hi Lucca,

It would help if you indicated what exactly you didn't understand of my explanation "you'll need some sort of "manual" loop (i.e., not using a For Each but an If) and create a DataPoint with a 0 value if there's no value from the database for that date."