SQL date to chart

@MA.ING you could use this solution as a starting point.