Questions tagged [ios-charts]

ios-charts is a powerful chart library for iOS, written in Swift.

ios-charts is a powerful chart library for iOS, written in Swift. It is the iOS equivalent to the popular MPAndroidChart.

845 questions
1
vote
1 answer

How do I draw the line chart with unpontinuous numbers in iOS Charts?

I'm working on drawing the line chart with data like: [50,40,60,-,80,-,70,10] and couldn't figure out how I draw the line for these data. "-" means no value, not zero. Guessed that Charts would accept nil for it, but it doesn't. Please let me know…
1
vote
1 answer

iOS-Charts - cannot hide Y axis

I am trying to hide all of the lines that iOS-Charts displays. However there is one line that I cannot hide. I have searched through the docs but could not find an answer. let data = LineChartData() let ds =…
Satsuki
  • 2,166
  • 5
  • 17
  • 33
1
vote
1 answer

Migration from Xcode 10.3 to Xcode 11+ breaks call from overridden function in iOS Charts?

I'm currently using Charts with CocoaPods and I have an issue that I don't quite understand. I created a subclass of PieChartView and overwrote the function calcMinMax from PieChartView in my custom class, allowing me elsewhere to create a custom…
Pangu
  • 3,721
  • 11
  • 53
  • 120
1
vote
1 answer

How to Setup Data According to weekdays in iOS Bar Chart

I am working on a project of step counter, Where I have to implement the functionality to store the current day steps and append it to ios bar chart data according to the day names. Basically I want to represent the total step counts on the daily…
Ben Smith
  • 159
  • 1
  • 1
  • 9
1
vote
1 answer

Custom xAxis formatting in iOS Charts library

I'm using the following library to implement charts in my iOS app: https://github.com/danielgindi/Charts On the xAxis I would like to have a formatting similar to the one on the screenshot. I would like to display the name of the month once,…
aumanets
  • 3,703
  • 8
  • 39
  • 59
1
vote
3 answers

How to get consistent bubble sizes in BubbleChartView in Charts for iOS

EDIT I've spent a very long time trying to find a relationship between BubbleChartDataEntry.size and BarLineChartViewBase.leftAxis/rightAxis min and max values. I can't seem to find a connection. I'm trying to get bubbles of absolute size that…
1192805
  • 988
  • 2
  • 10
  • 26
1
vote
2 answers

iosChart not displaying LineChartView points in UITableViewCell

The following is based on the LineChartView example (from youtube) which worked fine in a standard View (single view app) & the BarChartView worked fine in a TableViewCell using the identical idiom to that shown below. I have a time expiring every…
eklektek
  • 1,083
  • 1
  • 16
  • 31
1
vote
2 answers

How to have charts of the same type (ie LineChart) on the same axis using Daniel Gindi's chart library?

I have a graph that will display multiple line charts and scatter charts on the same axis. They will all have identical x-axis. I cannot seem to have multiple lineCharts be inside the same axis. I have tried implementing CombinedChartView. I have…
danaq
  • 117
  • 11
1
vote
0 answers

How do I synchronise zooming/scrolling/panning for multiple ios charts?

I have a page in my app that displays multiple (16) charts using Daniel Gindi's Charts library. I have them arranged in a stackview so that I can toggle their display on/off. I would like to be able to synchronise zooming/pannning/scrolling of the…
danaq
  • 117
  • 11
1
vote
1 answer

App crashes when I add Charts UIView as IBOutlet to ViewController

I am using Daniel Gindi's Charts library. I have a ViewController in my app that is a scrollview, and it is supposed to display 4 line charts on different axes (i.e they are in different UIViews), and because the lineCharts themselves are quite big,…
danaq
  • 117
  • 11
1
vote
1 answer

Changing point labels to specific string values using iOS charts?

I'm playing with the label feature provided in the ios-charts library and I'd like to be able to set a custom label (as a string) rather than have the program automatically set the label to the y value of that point. I've googled around and can't…
Daniel Bod
  • 23
  • 4
1
vote
1 answer

plotting sine and cosine with charts have kinks

I use this changed code from another user to plot sine and cosine iOS Charts, wavy lines import UIKit import Charts class ViewController: UIViewController, ChartViewDelegate{ var lineChartView: LineChartView! override func viewDidLoad()…
TBH
  • 145
  • 1
  • 11
1
vote
1 answer

Charts update chart in realtime - data recorded on one VC and charted in another

I have a tabbed app that starts recording on one tab, and plots the mic levels on another tab. In the first VC, I'm gathering mic levels and storing them in an array in the model. I'm using another method in the model to update the data, and I'm…
froggomad
  • 1,747
  • 2
  • 17
  • 40
1
vote
1 answer

How to remove static string "DataSet" from Legends of Pie Chart for danielgindi/Charts ios?

I am using danielgindi/Charts for iOS/Swift. There is an extra Legend Entry with label "DataSet" displays in Pie Chart as seen in this image: When I traced, I found there are two entries in the array of LegendEntry found in the PieChartView legend,…
Jigaroza287
  • 635
  • 5
  • 13
1
vote
3 answers

How to display bar values on the top of bar?

I'm using iOS charts library for add custom charts in my app, I have created a bar chart which is working as my requirement, For some reason I have inverted the graph so now the problem is the values based on which the bar chart is created are…
gurmeet kaur
  • 111
  • 1
  • 10