load(url: String, requestHeaders: Object)
[starting from version: 1.4]
Loads the report file from the specified URL.
1) Load local report:
pivot.load("data/reports/report2.json");
2) Load remote report:
pivot.load("https://yourserver.com/script_which_returns_report_json.php");
Open the example on JSFiddle.
3) Load a report from a resource that requires specific request headers (e.g., authorization headers):
pivot.load("https://yourserverwithauth.com/report_json.php",
{
AuthToken: "XXXX"
}
);
open
save
getReport
setReport
shareReport
Save and restore the report