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

Make the ChartXAxisRenderer more flexible: now possible to overwrite drawing the line or label of the ChartLimitLine #1065

Closed
wants to merge 3 commits into from

Conversation

forkch
Copy link

@forkch forkch commented Oct 2, 2015

Hi Philipp

I have done a few refactorings of the ChartXAxisRenderer that allow the following:

It is now possible to extend the renderer and overwrite selectively the label or line drawing method for a ChartLimitLine (in my project I needed e.g. to draw a triangle as arrow at the top in one case or a short line at the bottom as well as change the label offset, now easily possible)
When not overriding these new methods it will do the same as before.

A corresponding pull-request for ios-charts has already been submitted by my colleague.
ChartsOrg/Charts#432

Thank you very much!
Best Regards
Ben

@PhilJay PhilJay closed this Oct 4, 2015
PhilJay added a commit that referenced this pull request Oct 4, 2015
@PhilJay
Copy link
Owner

PhilJay commented Oct 4, 2015

LimitLine now also extends ComponentBase and allows custom offsets.

@forkch
Copy link
Author

forkch commented Oct 5, 2015

Thanks for implementing the label offset

In my Pull-Request there was also a refactoring included which made it possible to change how a limit line is actually rendererd. By extracting the rendering of one limit line (in XAxisRenderer) into its own method one can then override this method to provide a custom rendering of the limit line.

regas99 pushed a commit to regas99/MPAndroidChart that referenced this pull request Apr 1, 2019
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