You can get an idea here

https://playground.jsreport.net/w/anon/6zp1nhY0

or even here
https://playground.jsreport.net/w/anon/1F6UWRv5