Currently the columns in the ejPivotGrid are auto-sorted in a some unknown order
var tempData_4 = [
{ weekend: "Mon", value: 1 }
, { weekend: "Wed", value: 2 }
, { weekend: "Thes", value: 3 }
, { weekend: "Fri", value: 4 }
, { weekend: "Thur", value: 5 }
, { weekend: "Sun", value: 6 }
, { weekend: "Sat", value: 7 }
];
$(function () {
$("#PivotChart").ejPivotGrid({
dataSource: {
data: tempData_4,
rows: [
{
fieldName: "weekend",
fieldCaption: "weekend"
}
],
columns: [
/*{
fieldName: "columnValue",
fieldCaption: "columnValue"
}*/
],
values: [
{
fieldName: "value",
fieldCaption: "value"
}
]
}
//, enableGroupingBar: true
//, enableConditionalFormatting:true
//, enablePivotFieldList: false
//, enableDeferUpdate: true
//, enableJSONRendering: true
//, jsonRecords: JSON.stringify(tempData_4)
, enableSortOrder: false
/*,
isResponsive: true,
type: ej.PivotChart.ChartTypes.Column,
commonSeriesOptions: {
enableAnimation: true,
type: ej.PivotChart.ChartTypes.Column, tooltip: { visible: true }
},
size: { height: "460px", width: "950px" },
primaryYAxis: { title: { text: "등급별" } },
primaryXAxis: { title: { text: "구매건수-구매자수-성별-연령대" } },
legend: { visible: true },
load: "loadTheme"*/
});
});