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
below there is the method that I use to generateLineData. However I would like to skip the data points where the data.price value is different than INT16_MIN.
Unfortunately there is no source code for " [[LineChartDataSet alloc] initWithYVals:entries label:@"Price"];". The code below does not seem to do the job as I believe passing a mutable array to the initWithYVals method is not the correct way to deal with this (there is no fixed enumeration on it so it would not know when a data point is missed).
What should I do to get the library to skip some data points?
you can just don't feed y value for the specific xIndex. It will pass it, and then connect the previous data to the next valid one.
e.g.
x: 0 1 2 3 4
y: 1 _ 3 5 6
it will connect 1 3 5 6
Hello,
below there is the method that I use to generateLineData. However I would like to skip the data points where the data.price value is different than INT16_MIN.
Unfortunately there is no source code for " [[LineChartDataSet alloc] initWithYVals:entries label:@"Price"];". The code below does not seem to do the job as I believe passing a mutable array to the initWithYVals method is not the correct way to deal with this (there is no fixed enumeration on it so it would not know when a data point is missed).
What should I do to get the library to skip some data points?
The text was updated successfully, but these errors were encountered: