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

Remove mLabelRotatedHeight counted twice, when calculating legend offset #4013

Conversation

RobertZagorski
Copy link
Contributor

@RobertZagorski RobertZagorski commented May 9, 2018

Fix for #2369.

PR Checklist:

PR Description

Removed statements described in ticket as they were completely not needed. Calculating offsets is already done in BarLineCharBase#calculateOffsets(...) (calculateLegendOffsets(...) is called inside it).
The code, where calculating legend offset is done in BarChartLineBase#473
Modified temporarily LineChartActivity1 code to reproduce the issue and tested against various legend positions.
Additionally I changed one inner variable name to be more of Java style.

…sets. (Fix for PhilJay#2369).

Removed statements where completely not needed as calculating offsets is alredy done in BarLineCharBase#calculateOffsets(...)
@almic
Copy link
Contributor

almic commented May 9, 2018

LGTM

And thank you for using the template 👍

@almic almic merged commit 9ee3a74 into PhilJay:master May 9, 2018
regas99 pushed a commit to regas99/MPAndroidChart that referenced this pull request Apr 1, 2019
…-legend-offset-is-not-calculated-twice-for-line-chart

Remove mLabelRotatedHeight counted twice, when calculating legend offset
danielgindi added a commit to ChartsOrg/Charts that referenced this pull request Jan 26, 2020
IncredibleStar added a commit to IncredibleStar/daniel-charts that referenced this pull request May 26, 2021
rcblue added a commit to rcblue/Charts that referenced this pull request Jan 6, 2023
SwiftPolar pushed a commit to SwiftPolar/Charts that referenced this pull request Mar 20, 2023
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