1
1
@{
2
- List<PivotData> pivotData = new List<PivotData>();
2
+ List<PivotData> pivotData = new List<PivotData>();
3
3
pivotData.Add(new PivotData { Sold = 31, Amount = 52824, Country = "France", Products = "Mountain Bikes", Year = "FY 2015", Quarter = "Q1" });
4
4
pivotData.Add(new PivotData { Sold = 51, Amount = 86904, Country = "France", Products = "Mountain Bikes", Year = "FY 2015", Quarter = "Q2" });
5
5
pivotData.Add(new PivotData { Sold = 90, Amount = 153360, Country = "France", Products = "Mountain Bikes", Year = "FY 2015", Quarter = "Q3" });
76
76
pivotData.Add(new PivotData { Sold = 109, Amount = 29576, Country = "United States", Products = "Road Bikes", Year = "FY 2017", Quarter = "Q3" });
77
77
}
78
78
79
- <ejs- pivotview id= "PivotView" height= "300" showFieldList= "true">
80
- <e- datasourcesettings dataSource= "@pivotData" expandAll= "false" enableSorting= "true" allowLabelFilter= "true" allowValueFilter= "true">
81
- <e- formatsettings>
82
- <e- field name= "Amount" format= "C0" maximumSignificantDigits= "10" minimumSignificantDigits= "1" useGrouping= "true"></e- field>
83
- </e- formatsettings>
84
- <e- rows>
85
- <e- field name= "Country"></e- field>
86
- <e- field name= "Products"></e- field>
87
- </e- rows>
88
- <e- columns>
89
- <e- field name= "Year" caption= "Year"></e- field>
90
- <e- field name= "Quarter"></e- field>
91
- </e- columns>
92
- <e- values>
93
- <e- field name= "Sold" caption= "Units Sold"></e- field>
94
- <e- field name= "Amount" caption= "Sold Amount"></e- field>
95
- </e- values>
96
- </e- datasourcesettings>
97
- </ejs- pivotview>
79
+ < ejs - pivotview id = "PivotView" height = "300" showFieldList = "true" >
80
+ < e - datasourcesettings dataSource = "@pivotData" expandAll = "false" enableSorting = "true" allowLabelFilter = "true" allowValueFilter = "true" >
81
+ < e - formatsettings >
82
+ < e - field name = "Amount" format = "C0" maximumSignificantDigits = "10" minimumSignificantDigits = "1" useGrouping = "true" ></ e - field >
83
+ </ e - formatsettings >
84
+ < e - rows >
85
+ < e - field name = "Country" ></ e - field >
86
+ < e - field name = "Products" ></ e - field >
87
+ </ e - rows >
88
+ < e - columns >
89
+ < e - field name = "Year" caption = "Year" ></ e - field >
90
+ < e - field name = "Quarter" ></ e - field >
91
+ </ e - columns >
92
+ < e - values >
93
+ < e - field name = "Sold" caption = "Units Sold" ></ e - field >
94
+ < e - field name = "Amount" caption = "Sold Amount" ></ e - field >
95
+ </ e - values >
96
+ </ e - datasourcesettings >
97
+ </ ejs - pivotview >
0 commit comments