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:
parent
4a604d6d54
commit
3a34d11548
4
app.js
4
app.js
@ -2799,8 +2799,8 @@ function adjustChartSize() {
|
||||
option.series.levels[2].label.fontSize = level2FontSize;
|
||||
option.series.levels[2].label.fontWeight = level2FontWeight;
|
||||
|
||||
// Update level 3 labels: hide on mobile, show on desktop (with conditions)
|
||||
if (isMobile) {
|
||||
// Update level 3 labels: hide on compact/small screens, show on desktop
|
||||
if (isCompact) {
|
||||
option.series.levels[3].label.show = false;
|
||||
option.series.levels[3].label.position = 'inside';
|
||||
} else if (screenWidth < 950) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user