I have a database table with a series of events, these events have dates for when they happen. Now I would like to display the number of events for each month and show them in a line chart. I get the data via php and generate the js-code in a loop using data.addrow
Now this works fine, but if there is a month with no events it will not be added as a row and the line will simply interpolate the missing month. So for example january 5 events, february 0 and march 5 events, would create a horizontal line going from january to march making it look like there where 5 events in february.
How can i make the line go down to zero for a "empty" month?
Do I need to fill in empty rows/months with null? This would not seem very practical.