Skip to content
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

AG-12936 Fix zoom on bar series with only one series #3500

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

lsjroberts
Copy link
Member

@lsjroberts lsjroberts force-pushed the AG-12936-zoom-min-vis-bar-series branch 2 times, most recently from 9c4e55e to 79615e9 Compare February 6, 2025 13:31
@lsjroberts lsjroberts marked this pull request as ready for review February 6, 2025 13:56
@@ -848,7 +848,9 @@ export abstract class CartesianSeries<
if (!dataModel || !processedData) return Infinity;

const crossValues = this.keysOrValues(crossAxisKey);
const allAxisValues = axisKeys.map((axisKey) => this.keysOrValues(axisKey));
const allAxisValues = axisKeys.map(
(axisKey) => processedData.columns[dataModel.resolveProcessedDataIndexById(this, axisKey)] ?? []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Maybe use dataModel.resolveColumnById()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the one, forgot which fn it was that I used previously.

@lsjroberts lsjroberts force-pushed the AG-12936-zoom-min-vis-bar-series branch from 79615e9 to 7a87c8b Compare February 6, 2025 14:20
Copy link
Member

@alantreadway alantreadway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alantreadway alantreadway merged commit 17d77b4 into latest Feb 6, 2025
26 checks passed
@alantreadway alantreadway deleted the AG-12936-zoom-min-vis-bar-series branch February 6, 2025 16:00
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