Skip to content

Commit 10564e4

Browse files
committed
fix(chart): assert first column in workbook table has id 1
1 parent 41e3783 commit 10564e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/modify/modify-chart.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,21 @@ export class ModifyChart {
536536
},
537537
});
538538

539+
this.setWorkbookTableFirstColumn()
539540
this.columns.forEach((addCol, s) => {
540541
this.setWorkbookTableColumn(s + 1, addCol.label);
541542
});
542543
}
543544

545+
setWorkbookTableFirstColumn(): void {
546+
this.workbookTable.modify({
547+
tableColumn: {
548+
index: 0,
549+
modify: ModifyXmlHelper.attribute('id', 1)
550+
},
551+
});
552+
}
553+
544554
setWorkbookTableColumn(c: number, label: string): void {
545555
this.workbookTable.modify({
546556
tableColumn: {

0 commit comments

Comments
 (0)