STEP 1:
I Followed the instructions in this link https://medium.com/@alainber/adventures ... cf2c5c562b to understand the proper way to began with and understand how to build charts using Frappe Charts library.
STEP 2:
I take advantage of Ali's experience in building charts and from his code I used couple of lines, for more details:
To call the page using button and return some value from the button form to the chart page I used the following
code in button form.js
Code: Select all
frm.add_custom_button(__("Burn-Down Chart"), () => {
window.location.href ="#burndownchart/"+frm.doc.project_name;
});following code to take the value you need
Code: Select all
var projectName = frappe.get_route();just like this:
Code: Select all
console.log(projectName[1]);