Get chart data as CSV with parameters using function
a