Hide level 3 outside labels in compact donut mode

iPhone 17 Pro Max landscape is 956px wide, above the previous 950px
label threshold. Use isCompact flag instead of isMobile for hiding
level 3 outside labels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Anton Volnuhin 2026-02-07 23:33:24 +03:00
parent 4a604d6d54
commit 3a34d11548

4
app.js
View File

@ -2799,8 +2799,8 @@ function adjustChartSize() {
option.series.levels[2].label.fontSize = level2FontSize; option.series.levels[2].label.fontSize = level2FontSize;
option.series.levels[2].label.fontWeight = level2FontWeight; option.series.levels[2].label.fontWeight = level2FontWeight;
// Update level 3 labels: hide on mobile, show on desktop (with conditions) // Update level 3 labels: hide on compact/small screens, show on desktop
if (isMobile) { if (isCompact) {
option.series.levels[3].label.show = false; option.series.levels[3].label.show = false;
option.series.levels[3].label.position = 'inside'; option.series.levels[3].label.position = 'inside';
} else if (screenWidth < 950) { } else if (screenWidth < 950) {