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

Multiple colors for the same line #3816

Closed
cyril94440 opened this issue Jan 14, 2019 · 5 comments
Closed

Multiple colors for the same line #3816

cyril94440 opened this issue Jan 14, 2019 · 5 comments

Comments

@cyril94440
Copy link

Hi there

I am trying to draw a single line with a different color according to a y-value-threshold.
Is there a way to achieve such a thing?

This is the UI I am currently using but it is not beautiful, that is why I am trying to apply the background color directly on the line.

Thanks !!!

Screenshot

@cyril94440 cyril94440 changed the title Multiple Colors for the same line Multiple colors for the same line Jan 14, 2019
@liuxuan30
Copy link
Member

check

    /// All the colors that are used for this DataSet.
    /// Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array.
    var colors: [NSUIColor] { get }

@cyril94440
Copy link
Author

I may be wrong, but this will not color a single set/line with multiple colors.

Like this:

Example

@liuxuan30
Copy link
Member

eh you are talking about gradient lines? that's a different story then. There is a PR but we didn't review yet.

@rameswarprasad
Copy link

rameswarprasad commented Mar 5, 2019

@liuxuan30 Are there any plan to review/merge the PR in near future?

@seanhamstra
Copy link

Looking for this feature too! Love the library.

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