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

The horizontal line that forms the grid of the LineChartView are not the same color #1051

Closed
daisoreanu opened this issue May 18, 2016 · 5 comments

Comments

@daisoreanu
Copy link

daisoreanu commented May 18, 2016

Hi and thank you in advance for any support,

My issue is that I don't seem to be able to change the yAxis grid properties for the LineChartView, so that it can make the color of the line into lightGray. The issue is that the original grid lines are not the same color, as some of them appear with different alphas or something like that...

Please check the photo for more detail:
chart picture

@liuxuan30
Copy link
Member

I don't know why I can't see your image while I can google..

@daisoreanu
Copy link
Author

not sure I understand, maybe you have a chrome issue of some sort...

@daisoreanu
Copy link
Author

Also is there a way to add only a one transparent circle maybe using circleRadius or setCircleColor from the class LineChartDataSet

@liuxuan30
Copy link
Member

I see your image now. Have you changed anything about the grid line? Normally it won't be such cases. They will be same color I surpose. Did you see it on ChartsDemo?

To your second question, if you have any custom requirements, you will need to take a look at the code about how the circle is drawn(in drawCircles of line chart renderer), and see if current properties can meet your demand, or you have to slightly change some code.

@danielgindi
Copy link
Collaborator

You have a scaling issue.
If you're watching it in iPhone Simulator, then please make sure you're in 100% zoom.
Otherwise, make sure that your app is configured for 100% scale, 1:1 with device logical pixels. This is achieved by having correct Default___.png for the device. For iPhone 6+, have a [email protected] in the correct size.
If you are on iPhone 6+, and don't have a correct Default.png (either in a file or in Assets), then the iPhone scales it up - and you get weird alpha issues.

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

3 participants