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

Can't render CombinedChartView #1926

Closed
kutran opened this issue Dec 7, 2016 · 0 comments
Closed

Can't render CombinedChartView #1926

kutran opened this issue Dec 7, 2016 · 0 comments

Comments

@kutran
Copy link

kutran commented Dec 7, 2016

I am successful at using LineChartView. But when I am trying to render CombinedChartView, nothing shows up. Also, everything there is a touch event in the graph, it shows "CGAffineTransformInvert: singular matrix."

@IBOutlet weak var chartView: CombinedChartView!

var lineData = [ChartDataEntry]()
lineData.append(ChartDataEntry(x: Double(0), y: drand48()))
let lineDataSet = LineChartDataSet(values: lineData, label: "line")

var barData = [BarChartDataEntry]()
barData.append(BarChartDataEntry(x: Double(0), y: drand48()))
let barDataSet = BarChartDataSet(values: barData, label: "bar")

let combinedData = CombinedChartData(dataSets: [lineDataSet, barDataSet])
chartView.data = combinedData
charView.notifyDataSetChanged()

Am I totally missing something here?
Thank you.

@kutran kutran closed this as completed Dec 7, 2016
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