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 make a combine chart (line chart + bar chart) with leftAxis taking the top half area of the combined graph and right axis taking the bottom half #3690

Closed
amirsiddi opened this issue Oct 16, 2018 · 1 comment

Comments

@amirsiddi
Copy link

amirsiddi commented Oct 16, 2018

What did you do?

I want to make a combine chart (line chart + bar chart) of stock price history where stock price is shown in line chart and number of shares traded as bar chart. The line chart needs to be in top half of the graph, and bar chart needs to be on bottom half. Sort of typically how stock historical prices are usually shown. Images are provided of what i want.

What did you expect to happen?

this is something i want where bar chart takes the bottom half of the combined chart and line charts takes the upper half

What happened instead?

This is what i have been able to get

Charts Environment

Charts version/Branch/Commit Number:
Charts-Demo-iOS-Swift
Xcode version:
10
Swift version:
4
Platform(s) running Charts:
macOS version running Xcode:
High Sierra

Demo Project

Yes

@amirsiddi amirsiddi changed the title how to make a combine chart (line chart + bar chart) with different leftAxis and rightAxis how to make a combine chart (line chart + bar chart) with leftAxis taking the top half area of the combined graph and right axis taking the bottom half Oct 16, 2018
@liuxuan30
Copy link
Member

check out charts demo for combined chart.

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