-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Problem with charts in UITableView cells #2888
Comments
several issues here:
|
Stack trace:
|
this seems wrong. You need to debug why it causes this way. It's in internal override func calcMinMax()
{
// calculate / set x-axis range
_xAxis.calculate(min: _data?.xMin ?? 0.0, max: _data?.xMax ?? 0.0) post the value how it calculates to an inf. It looks like you are passing empty data sets into the chart so no data to calculate the range. You should get your data first and then create the chart. Try that way. This is similar in another thread #2845 |
What if I want to live stream accelerometer data and show it in a chart? |
It doesn't crash now when added these three lines at the beginning: |
Problem solved |
performance issue solved? What's your solution? |
Hi! I am trying to show live data from accelerometer and gyroscope, but I get an error:
Also the preformance of tableview is very low. After a few seconds it lags a lot. I would like to scroll to the newest values from accelerometer and gyroscope.
`func startAccelerometer() {
let indexPathForAccCell = IndexPath(row: 0, section: 0)
let accCell = testView.tableView.cellForRow(at: indexPathForAccCell) as! ChartCell
let setX = LineChartDataSet(values: ChartDataEntry, label: "X")
let setY = LineChartDataSet(values: ChartDataEntry, label: "Y")
let setZ = LineChartDataSet(values: ChartDataEntry, label: "Z")
The text was updated successfully, but these errors were encountered: