I'm using Pivot table in my angular project.
I'm getting the view and all the values but not getting the column headers.
Below is the html and ts code of that
<app-pivotview [dataSource]="dataSource" [dataSourceSettings]="dataSourceSettings"></app-pivotview>
this.dataSourceSettings = {
dataSource: reportInfo[0].kpiData.chartData,
type: 'JSON',
expandAll: false,
filters: [],
columns: [{ name: 'productName', caption: 'Product Name' }],
rows: [{ name: 'name', caption: 'DIV' }],
values: [
{ name: 'rfi', caption: 'RFI' },
{ name: 'submittal', caption: 'Submittal' },
{ name: 'pr', caption: 'PR' },
{ name: 'asi', caption: 'ASI' }
]
};