Skip to content

Remove no longer needed offset and width calculation for bars in bar chart. #22792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

linuspahl
Copy link
Contributor

@linuspahl linuspahl commented Jun 4, 2025

Please note, this PR needs a backport for 6.2 and 6.1. (both versions implement the required plotly version)

Description

Motivation and Context

Due to a plotly update (related change: plotly/plotly.js#7009) we no longer have to calculate the width and offset bars in the bar chart manually (Thank you for finding this @maxiadlovskii).

This is improving the bars width in some scenarios, like the one described in #22163.

Fixes #22163
/nocl

@linuspahl linuspahl changed the title Simplify offset and width calculation for bar chart traces. Remove no longer needed offset and width calculation for bar chart traces. Jun 4, 2025
@linuspahl linuspahl changed the title Remove no longer needed offset and width calculation for bar chart traces. Remove no longer needed offset and width calculation for bars in bar chart. Jun 4, 2025
@linuspahl linuspahl marked this pull request as ready for review June 4, 2025 14:04
@maxiadlovskii maxiadlovskii merged commit 4bfd17e into master Jun 5, 2025
26 of 28 checks passed
@maxiadlovskii maxiadlovskii deleted the issue-22163-v2 branch June 5, 2025 10:11
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.

Narrow Bars on Bar Chart/Group Mode with Time Field Group By
2 participants