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
2
votes
1 answer

Setting custom text on top of bar chart

Hello I want to achieve the following. So far everything went good by using the docs. However, I can't seem to set a value on top like € 230 or € 70. When I use the barChartView.drawValueAboveBarEnabled = true Because it sets the value…
Reshad
  • 2,570
  • 8
  • 45
  • 86
2
votes
4 answers

Make line chart with values and dates

In my app i use ios-charts library (swift alternative of MPAndroidChart). All i need is to display line chart with dates and values. Right now i use this function to display chart func setChart(dataPoints: [String], values: [Double]) { …
moonvader
  • 19,761
  • 18
  • 67
  • 116
2
votes
1 answer

IOS-Charts cannot show any x-axis labels in a line chart

(Hopefully simple question) How do I get X-axis labels to show. I want four words to show in a line chart with multiple plots. The plots and everything else works beautifully!
user462990
  • 5,472
  • 3
  • 33
  • 35
2
votes
3 answers

Setting top and bottom spacing for a BarChart - iOS Charts

I am trying to give my chart some top and bottom spacing, so it won't appear as on the picture below. Is there any way to set either maximum height or add a padding, so the label(in this case -1) won't collide with the date? Thank you.
Matti
  • 433
  • 6
  • 10
2
votes
1 answer

Radar/spider chart in iOS?

Is there any easy way to create radar chart like this one please? I found a very nice and useful library called ios-charts, but I can't seem to find a way to change the hexagon look they use for radar view with this circles that I need. Also, it…
andrejbroncek
  • 421
  • 5
  • 17
2
votes
1 answer

ios-charts visible data in LineChartView

I'm trying to figure out how to calculate which data indices (along x axis) are in range after panning/zooming the chart. For example, when I zoom in on my linechart, I want to be able to update a tableview to only show the details for the data…
user871177
  • 721
  • 5
  • 12
2
votes
1 answer

Does the legend limit the number of titles?

I am using iso-charts to try and draw a pie chart in an iOS app. No matter what I try, I can't seem to get the full number of titles to draw in the legend. I have my data set up as: ages = ["18-", "25-", "35-", "45-", "55-", "65-",…
Darren
  • 1,682
  • 1
  • 15
  • 33
2
votes
1 answer

Multiple datasets with different number of points on one chart (iOS-Charts)

I am having problems with iOS Charts when I try to put two lines on the same chart with a different number of data points. I've pasted my test code below. testLineChartView.delegate = self testLineChartView.xAxis.enabled = true …
Josh
  • 1,031
  • 2
  • 19
  • 31
2
votes
2 answers

Horizontal bar chart by ios-charts

How to create horizontal bar chart by ios-charts in xcode? I created View with class HorizontalBarChartView @IBOutlet weak var horChart: HorizontalBarChartView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup…
John Snow
  • 129
  • 1
  • 3
  • 7
2
votes
1 answer

Can I display iOS Charts (MPAndroidChart) on an Apple Watch?

I have the iOS Charts framework installed and running on my iPhone. I was wondering if there was a way to display the charts from my iPhone to the Apple Watch. How would I go about this?
Husein Kareem
  • 516
  • 1
  • 4
  • 12
2
votes
1 answer

Scrollable Line Chart

Am trying to use the ios-charts library based off the MPAndroidCharts; however am having some trouble getting a scrollable graph to work. By scrollable I mean that I try to show only a portion of the data of the line and that you can scroll…
Pao13
  • 69
  • 1
  • 3
2
votes
2 answers

iOS-Charts - Make a bar chart and field remaning with other color

I am trying to make a chart exactly as the guide lines of the designer but i am difficulty's in 3 of the things. This is the guide lines: And this is what i have done: As you can see it was supposed that the red bar had between self and the target…
Tiago Mendes
  • 4,572
  • 1
  • 29
  • 35
2
votes
1 answer

iOS-Charts - Graph incomplete due to missing data

I am working on getting multiple line charts displaying on the same graph. The problem is, when there are missing data points, the graph doesn't fill in gaps. Is there a way for it to automatically do this? The first and second images show the…
Jeff Lewis
  • 2,846
  • 1
  • 19
  • 24
2
votes
2 answers

setting yAxis in iOS-charts swift iOS 8

I'm learning ios-charts and I was wondering how to manipulare the yAxis since there is no method related to that. On the contrary xAxis can be customized. A small example, by default I have two set of labels for the yAxis as the figure shows. I…
Nicholas
  • 1,915
  • 31
  • 55
2
votes
1 answer

Replace label in LineLimit with image for ios-charts

I have a line limit with a label. I would like to replace that label with an image. I realize the ios-charts library can't do that directly but was looking for some insight on how to do this.
captainavi
  • 151
  • 8