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

no limitLineSegmentsBuffer in YAxisRenderer #1981

Closed
leonidster opened this issue Dec 19, 2016 · 1 comment
Closed

no limitLineSegmentsBuffer in YAxisRenderer #1981

leonidster opened this issue Dec 19, 2016 · 1 comment

Comments

@leonidster
Copy link

leonidster commented Dec 19, 2016

Hi,

I migrated to Charts 3.0 from 2.x in our project.

I used the object limitLineSegmentsBuffer in YAxisRenderer class.

I have these lines of code to draw custom limit line:

    _limitLineSegmentsBuffer[0].x = viewPortHandler.contentLeft; // swift3 no limitLineSegmentsBuffer property
    _limitLineSegmentsBuffer[0].y = position.y;
    _limitLineSegmentsBuffer[1].x = viewPortHandler.contentRight;
    _limitLineSegmentsBuffer[1].y = position.y;

What is the alternative code for these lines?

@danielgindi
Copy link
Collaborator

That is a private member of the class. It's just an array of CGPoint, you can create your own.

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

No branches or pull requests

2 participants