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

labels density #38

Closed
eriktelepovsky opened this issue Apr 27, 2015 · 2 comments
Closed

labels density #38

eriktelepovsky opened this issue Apr 27, 2015 · 2 comments

Comments

@eriktelepovsky
Copy link

Hi, first of all, thanks for library!
I try to figure out how to set line chart to show labels correctly if there are many same values.

For example:

lineChart.xLabels = [
            "27.3","28.3","29.3","30.3","31.3","1.","2.",
            "3.","4.","5.","6.","7.","8.","9.",
            "10.","11.","12.","13.","14.","15.","16.",
            "17.","18.","19.","20.","21.","22.","23.",
            "23.","24."
        ]

var data01Array: [CGFloat] = [
            2, 4, 5, 3, 5, 2, 3,
            1, 4, 2, 0, 5, 6, 4,
            3, 4, 2, 1, 5, 0, 3,
            2, 5, 4, 1, 3, 2, 4,
            1, 5
        ]

produces line chart with same y labels with overflow:

labels

There should be only 7 y labels 0, 1, 2, 3, 4, 5, 6.

Thanks for help.

@kevinzhow
Copy link
Owner

Swift version is not quite usable, please use the objc version

@eriktelepovsky
Copy link
Author

All right. Thank you for your answer.

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