Js chart and API for reports