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 show break in line chart for more than one graph? #3810

Closed
1 task
pratik-jaiswal opened this issue Jan 8, 2019 · 6 comments
Closed
1 task

How to show break in line chart for more than one graph? #3810

pratik-jaiswal opened this issue Jan 8, 2019 · 6 comments

Comments

@pratik-jaiswal
Copy link

pratik-jaiswal commented Jan 8, 2019

What did you do?

I know there is a way that to break a chart into separate data sets but it will complicate lot of things for 4 lines in the same screen.

What did you expect to happen?

i want to know is there anything you can suggest instead of above. So that i can break the line chart with less of a complexity.

Charts Environment

Charts version/Branch/Commit Number:3.2.1
Xcode version:10.1
Swift version:4.2
Platform(s) running Charts:macOs high sierra
macOS version running Xcode:10.13.6

@liuxuan30
Copy link
Member

currently, use multiple data sets. Or you have to write the feature by yourself. I used to write one, but it's more complex so far with 3.0, so I suggest use multiple data sets

@RabiChourasiaOgma
Copy link

currently, use multiple data sets. Or you have to write the feature by yourself. I used to write one, but it's more complex so far with 3.0, so I suggest use multiple data sets

yes...I have used multiple data sets in the chart..... I have only requirement is charts color dynamic with Yaxis value...like that attached images....please tell me how can I do that

@pratik-jaiswal
Copy link
Author

pratik-jaiswal commented Feb 21, 2019

Please elaborate it properly @RabiChourasiaOgma or share some images so that we can understand what you are trying to do.

@RabiChourasiaOgma
Copy link

c448b068-dbd4-11e6-897a-ddc4ed5b27e5
@pratik-jaiswal I want try like this.....I want to add colours to the background of the chart. The colour zones depend on the y values.

@pratik-jaiswal
Copy link
Author

See as far as I know this is not possible in this library. But still you can ask @liuxuan30 if he knows any thing about it.

@anton-filimonov
Copy link

@RabiChourasiaOgma you can make chart view transparent and add your properly colored view behind it. You'll have to implement drawing (or just combining some views and their layout) yourself, using chart methods for coordinates transformation.

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