Remove unused parameter 'error' from callback
Extract named function drawChart() from anonymous callback