Is the query template you configured returning any data?
Did you assign a model for the data and filled it in with respect to the chart you're trying to draw?
If the data chain is broken, getRows can't return anything, hence the error that a variable/method there is undefined.