Yes I understand that.
It might be that we have a SUM(Minutes) in combination with WHERE in our code. It always results an error.
However to solve this, we have now used the static template and wrote a serie of queries that add all the minutes up. Afterwards they are passed to the x and y value of the chart.
It works! Maybe this helps somebody who is confronted with the same problem!
Thanks