exports Pivot data to an Excel file
The method will be removed in the next version. Use pivot.export.xlsx() instead:
pivot.export.xlsx({
name:"pivot_data",
url:"//export.dhtmlx.com/excel"
});
Check the Exporting Pivot section for more details.
settings | object | an object with export settings: the name of the exported file and the URL that executes export |
object | an object with exported data parameters |
pivot.export({
name:"pivot_data",
url:"//export.dhtmlx.com/excel"
});
The returned data object contains the following parameters:
For example:
var data = {
name:"pivot_data",
columns:[
{ width: 100 },
{ width: 100 }
// more objects
],
header:[
[" ", " ", "Q1", " ", "Q2", " "],
[" ", " ", "Oil (Max)", "Oil (Min)", "Oil (Max)", "Oil (Min)"]
],
data:[
["Constitutional monarchy", " ", "78.276", "2.946", "80.259", "5.564"],
[" ", 2012, "23.650", "23.650", "80.259", "51.127"],
// more arrays with cells values
],
styles:[
css:{
major:{ color: "#ff00ff", background: "#0000AA", fontSize: 14 }
},
cells:[
[1,2,"major"]
]
]
}
deprecated since v1.4
Back to top