Skip to content

Commit 0d13e4d

Browse files
committed
chore(chart): auto-update setChartVerticalLines axis according to categories count
1 parent 530fb71 commit 0d13e4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/helper/modify-chart-helper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ export default class ModifyChartHelper {
7272
});
7373

7474
new ModifyChart(chart, workbook, data, slots).modify();
75+
76+
ModifyChartHelper.setAxisRange({
77+
axisIndex: 0,
78+
min: 0,
79+
max: data.categories.length,
80+
})(element, chart);
7581
};
7682

7783
/**

0 commit comments

Comments
 (0)