Hello erpnext community,
I found a solution but different way, which is also posted here.
[Tutorial] Script Report / Chart
Once you create a report, you can build a chart using purely server side and automatically rendered in the report page including the report table. By adding the chart to a dashboard, it automatically captures what is displayed in the report page for rendering in dashboard page.
I avoid using Page because I already have existing cards so that I don’t have to redo it.