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 charts in same view #3103

Closed
atalayasa opened this issue Dec 14, 2017 · 7 comments
Closed

Multiple charts in same view #3103

atalayasa opened this issue Dec 14, 2017 · 7 comments

Comments

@atalayasa
Copy link

I need to have different charts in same view and these different charts data's are different from each other. I created a custom table view cell and I have putted UIView into inside. However, that view's type is UIView but as far as I understood from library if one view needs to be bar chart view its class needs to inherit from BarChartView. How can I change that type for both line chart and bar chart. Shall I create a view programmatically or is it possible to have it using storyboard table view?

@SeRG1k17
Copy link

SeRG1k17 commented Dec 15, 2017

A similar problem.
I need to place a linear graph at the top of the chart, and in the lower part of the bars.
Graphs(line, bars) may overlap slightly
Maybe for bars I can use a stepped linear chart
screen shot 2017-12-15 at 13 01 53

@jjatie
Copy link
Collaborator

jjatie commented Dec 17, 2017

Seems like two different questions. If you want to have multiple data sets displayed on the same graph with different graph types, use the CombinedChartView. If you need to two graphs next to each other, use two separate views.

@SeRG1k17
Copy link

@jjatie Use two different graphics, and then have to synchronize them (scrolling, pinch, zoom). I think my option CombinedChartView.
Thank you.

@atalayasa
Copy link
Author

@liuxuan30
Copy link
Member

liuxuan30 commented Jan 10, 2018

I don't find https://stackoverflow.com/questions/47819397/multiple-charts-in-same-view-ios-charts/ actually solved the sync problem. It just puts several views together. The evil is inside syncing the panning/zooming. If they have the same x axis values, should be easier then.

@liuxuan30
Copy link
Member

We might come with a protocol or something in the future, if time allowed, for syncing the charts.

@jjatie
Copy link
Collaborator

jjatie commented Jan 12, 2018

#3177

@ChartsOrg ChartsOrg locked and limited conversation to collaborators Jan 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants