You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeap. I got it to work by creating a view, creating an IBOUTLET named "lineChartView" in my ViewController, and adding the linechart graph as a subview of "lineChartView".
Hello,
I've been experimenting with your Swift files to create a graph on an existing UIView layer, but can't seem to get it to work.
I tried to adding the lines of the graph during viewWillLayoutSubviews, but I keep getting error on:
layer.strokeColor = colors[lineIndex].CGColor
in drawLine() in LineChart.swift file.
"fatal error: Cannot index empty buffer"
Is there any other way that I can plot graphs without having to initialise a LineChart instance manually?
The text was updated successfully, but these errors were encountered: