Skip to content

Chart Axis labels not visible on Android devices with specific density for category axis #218

@SaiyathAliFathima

Description

@SaiyathAliFathima

Description

Category X-axis labels are not visible on Android devices with specific screen densities. This issue occurs consistently on devices with XXHDPI (density value of 3.0), while labels display correctly on devices with lower density values.

Expected Behavior

All X-axis (category axis) labels should be visible on all Android devices regardless of screen density.

Actual Behavior

X-axis labels are completely missing on devices with XXHDPI screen density (density value of 3.0), while they appear correctly on devices with lower densities.

Device Comparison

S.NO S.NO Density DensityDpi All Label Visibility
1 Pixel 7 2.625 D420 Yes
2 Redmi Note 11 Pro 5G 2.75 D400 Yes
3 Samsung Galaxy A14 5G 3 Xxhigh No
4 OnePlus Nord CE4 lite 3 Xxhigh No

Platform Details

Affected Platform: Android
Maui Toolkit Version: v1.0.5
Affected Density: XXHDPI (density value of 3.0)

Actual image

Image

Expected image

Image

Steps to Reproduce

  1. Create a chart with X-axis labels
  2. Run the application on an Android device with XXHDPI density (density value of 3.0)
  3. Observe that X-axis labels are not visible
  4. For comparison, run the same application on a device with lower density to confirm labels are visible

Code Snippet

<chart:CategoryAxis LabelRotation="90"/>

Version with bug

1.0.5

Is this a regression from previous behavior?

Not sure, haven't tested other versions

Affected platforms

Android

Affected Platform Versions

Android 15

Metadata

Metadata

Labels

bugSomething isn't workingchartChart and graph related issues

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions