How to implement Financial Analytics reports?

Hello everyone,

I have been trying to create an Analytics report like Sales Analytics from Selling and i can’t find the way to do it. When i opened the sales_analytics.js file in page folder, i saw a lot of JavaScript code.

the question are:

1- If i want to create an Analytics reports to see my expenses monthly, i need to write a lot of js code?

2- Exists a step by step guide to create an Analytics Report?

Hello,

Analytics report based on Chart of Account is already available in the Accounts module. Please check:

Account > Main Reports > Financial Analytics

Hope this helps.

Create a query / script report:

https://frappe.io/kb/reports

@umair i know, i saw the code and i have one ready, but i feel the code that i wrote it’s not the best one. I want to know the right way to do it. Even, my filters are html elements(not like filters) and i listen by a query event.

@rmehta i need a flot based chart. i used a page.

@geekroot do send in a pull-request if it is any good