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

How to remove these white/gray lines #758

Closed
Luke47 opened this issue Feb 16, 2016 · 8 comments
Closed

How to remove these white/gray lines #758

Luke47 opened this issue Feb 16, 2016 · 8 comments

Comments

@Luke47
Copy link

Luke47 commented Feb 16, 2016

I can not figure out, what produces this "frames" around my bars. How can I disable them?

Thank you! :)

screen shot 2016-02-16 at 19 40 11

@Luke47 Luke47 changed the title How to remove this white/gray lines How to remove these white/gray lines Feb 16, 2016
@liuxuan30
Copy link
Member

did you draw gird line or axis line? Check them out.

public var drawGridLinesEnabled = true
public var drawAxisLineEnabled = true

@Luke47
Copy link
Author

Luke47 commented Feb 17, 2016

@liuxuan30 Thank you for your reply!
I have disabled the axis completely:

chartView.leftAxis.enabled = false
chartView.rightAxis.enabled = false

I've added your code as well, but nothing changed. Guess it's not something related with the axis? Maybe some property of the bars? I also tried to disabled the shadows, but that did also not help.

@liuxuan30
Copy link
Member

I don't remember bar chart has such bounding rect... it's like grid lines.
Have you tried with charts demo?

@danielgindi
Copy link
Collaborator

You should disable drawGridLinesEnabled on both xAxis and yAxis, and drawGridBackgroundEnabled on the chart itself.

@narekyan
Copy link

narekyan commented Feb 14, 2017

@danielgindi
what about these small lines
seems there is small padding between every LineChartDataSets
I have LineChartData with multiple LineChartDataSets
and every LineChartDataSet has two ChartDataEntry

I didnt find the other way to draw this
simulator screen shot 14 feb 2017 17 27 46

@liuxuan30
Copy link
Member

those small lines seems your pixel is not aligned. Check from there.

@narekyan
Copy link

narekyan commented Feb 16, 2017

what pixels you mean ? I m not doing any custom work

and I have that lines even If I have small amount of data
and simulator is in 100% scale
they are more like spaces and not lines , because when I set bg color of whole chart I see that color under that spaces.
I have multiple LineChartDataSets

you can see the main line goes OK on top of graph (see arrows)

simulator screen shot 16 feb 2017 10 34 02

@liuxuan30
Copy link
Member

sorry, but it seems irrelevant to this topic. and I don't quite understand what's the issue then.

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

4 participants