Skip to content

Commit ae48ff0

Browse files
authored
feat: chart max tick limit support (#1580)
1 parent 5eb7808 commit ae48ff0

File tree

1 file changed

+5
-0
lines changed
  • src/unfold/static/unfold/js

1 file changed

+5
-0
lines changed

src/unfold/static/unfold/js/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,11 @@ const DEFAULT_CHART_OPTIONS = {
444444
ticks: {
445445
color: "#9ca3af",
446446
display: true,
447+
maxTicksLimit: function (context) {
448+
return context.chart.data.datasets.find(
449+
(dataset) => dataset.maxTicksXLimit
450+
)?.maxTicksXLimit;
451+
},
447452
},
448453
grid: {
449454
display: true,

0 commit comments

Comments
 (0)