Skip to content

Conversation

@hannesa2
Copy link
Collaborator

This is a rebased #363 on upstream to enable screenshot compare function on pull request.

Added: Auto Full Radius Mode
Introduced a new setUseAutoFullRadius(true) function that enables automatic calculation of full corner radius for bars.

When enabled, the radius dynamically adapts based on the bar’s current screen width and height, ensuring fully rounded corners regardless of zoom level or chart scale.

This feature improves visual consistency, especially when zooming in/out, as the rounding remains proportional to each bar’s dimensions.

Fixed: Marker Not Showing on Highlight
Previously, markers were not appearing when bars were highlighted due to missing positional metadata.

This has been resolved by ensuring setHighlightDrawPos(...) is called inside drawHighlighted(), which correctly updates the Highlight object with the marker's draw position.

Now, the custom and other markers will be properly displayed above highlighted bars, even when using this renderer.

@hannesa2 hannesa2 force-pushed the RoundedBarChartRenderer branch from 6fb2d81 to e013328 Compare December 28, 2025 08:31
@hannesa2 hannesa2 changed the title Update RoundedBarChartRenderer Update RoundedBarChartRenderer 4 Dec 28, 2025
@hannesa2 hannesa2 changed the title Update RoundedBarChartRenderer 4 Update RoundedBarChartRenderer 4.x Dec 28, 2025
@hannesa2 hannesa2 force-pushed the RoundedBarChartRenderer branch 2 times, most recently from fe2b79e to 9afb56e Compare December 28, 2025 16:44
@hannesa2 hannesa2 force-pushed the master branch 4 times, most recently from 159d22d to 7dc3b14 Compare December 29, 2025 12:14
Added: Auto Full Radius Mode
Introduced a new setUseAutoFullRadius(true) function that enables automatic calculation of full corner radius for bars.

When enabled, the radius dynamically adapts based on the bar’s current screen width and height, ensuring fully rounded corners regardless of zoom level or chart scale.

This feature improves visual consistency, especially when zooming in/out, as the rounding remains proportional to each bar’s dimensions.

Fixed: Marker Not Showing on Highlight
Previously, markers were not appearing when bars were highlighted due to missing positional metadata.

This has been resolved by ensuring setHighlightDrawPos(...) is called inside drawHighlighted(), which correctly updates the Highlight object with the marker's draw position.

Now, the custom and other markers will be properly displayed above highlighted bars, even when using this renderer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants