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

Line chart line color array issue #4052

Closed
1 task done
amaanmakhani opened this issue Jul 1, 2019 · 0 comments
Closed
1 task done

Line chart line color array issue #4052

amaanmakhani opened this issue Jul 1, 2019 · 0 comments

Comments

@amaanmakhani
Copy link

What did you do?

What I need to happen is the line connecting dots to change between data points. So what I am trying to do is if it is a negative slope the line connecting the dots is red, if not the line would be green.

What I tried to do it set the dataset.colors and add many colors in the array so it alternates that pattern.

What did you expect to happen?

The colors of the line should have alternated, however, it does not.

What happened instead?

It chooses the first color in the array and displays that.

Charts Environment

Charts version/Branch/Commit Number:
**Xcode version: 10.2
**Swift version:3.3.0
**macOS version running Xcode: 10.14.5

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

1 participant