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

iOS-Charts grouped bar chart with size to fit

I recently added "barChartData.groupBars(fromX: 0, groupSpace: 0.5, barSpace: 0.03)" to my Bar Chart so that I don't have overlapping bars and I can't figure it out how to set the width to fit (no horizontal overflow) func…
Robert Varga
  • 477
  • 1
  • 7
  • 15
2
votes
2 answers

iOS Charts no longer work after Xcode and Swift Update

I recently updated Xcode to version 9.0 and many errors suddenly occurred inside the Charts framework that I was using inside my app. I installed Charts iOS using Carthage and admittedly, I don't have a ton of experience with Carthage and setting…
M. Black
  • 353
  • 1
  • 4
  • 20
2
votes
2 answers

iOS Charts, lineChartView animation stuttering

Could someone explain me how to have a fluid animation on my lineChartView? With lineChartView.animate(xAxisDuration: 3.0, easingOption: .linear) I get this: I tried every easingOption and everytime I get this stuttering animation. Can someone…
Elia Crocetta
  • 318
  • 1
  • 6
  • 20
2
votes
1 answer

iOS charts marker not displayed for all chart elements

I have an issue with the BalloonMarker I used for my graph as it won't display the marker for all the chart elements, but only for one of them. I used the BalloonMarker from the ChartsDemo project for a bar chart. The marker gets displayed, but only…
Alina
  • 142
  • 2
  • 13
2
votes
2 answers

iOS-Charts drawing values below circle

I'm using Daniel Gindi's Charts. In normal, values are above the circles; 1- But I need to pull down the values/labels to below of circles, when there is no enough space for label (because of lines) 2- I need to give extra offset between circle and…
David
  • 217
  • 1
  • 2
  • 10
2
votes
1 answer

ios-charts combined chart: bars going past right axis of chart

I'm trying to make something similar to this Im going to have 4 BarChartDataSets grouped, and 2 LineChartDataSets, each data set has 7 data points, the user can add or remove these datasets at will The bars seem to be grouping fine, and the line…
Derek Hannah
  • 537
  • 7
  • 23
2
votes
1 answer

Should I update to Swift 3 to use Charts library version 3

I am using Swift 2.2. But as per requirement of Charts library, I need to upgrade Charts to version 3. Should I migrate to Swift version 3 or I can use this library of version 3 in my Swift 2.2.
jenny sam
  • 191
  • 3
  • 13
2
votes
1 answer

How to cut highlight in iOS Charts only up to the data point?

How can I customize the highlighter in Line Charts? I want to cut the highlight to be drawn only up to the data point. I also want to customize the label on the x-axis where it's highlighted. Below is a reference picture on what I'm trying to…
taki
  • 21
  • 1
  • 4
2
votes
1 answer

Bars not showing when saving Bar Chart view

My chart shows up fine in my app, but when I save the chartView to camera roll or for use in another UIViewController the bars don't show up. Fine in my app: Bars don't show up when save the chartView to camera roll or for use in another…
SRMR
  • 3,064
  • 6
  • 31
  • 59
2
votes
1 answer

Chart in swift have a black background by default

I'm using the library Charts for Swift and by default it has a black background. I just updated to version 3.0.2 and still have a default black background behind my chart. I added a UIView in Storyboard and set the class to LineChartView, modules…
Eury Pérez Beltré
  • 2,017
  • 20
  • 28
2
votes
0 answers

How to graph a function in iOS-charts

I am using the iOS-charts library in (Swift 3) to plot my data into a scatter chart. I have a scatter chart and now would like a line chart to display a non-linear best fit line from the scatter data. Does the charts library have any easy functions…
2
votes
0 answers

iOS Charts graphing a line from a function

I am using the iOS-charts library in (Swift 3) to plot my data into a scatter chart. I can do this part easily but now I am trying to get a non-linear best fit line to display too. Does the charts library have any easy functions for finding a best…
Quinn
  • 89
  • 2
  • 10
2
votes
0 answers

iOS-Charts - X Axis Labels Disappear when Scrolling

I've been working with iOS-Charts from Daniel Gindi and it is a GREAT Framework! However, I've been struggling with this issue for a long time now. I'm using a BarChart and managed to display the correct Values @ the Axis labels. Now I Don't know…
Hernan Arber
  • 1,626
  • 3
  • 22
  • 35
2
votes
1 answer

Draw Candlestick Charts in swift

I am a beginner to iOS. I need to draw Candlestick Chart. Is any framework available to draw this? Can anyone one guide me to implement candlestick chart?
Jana
  • 41
  • 1
  • 2
2
votes
2 answers

iOS Charts - single values not showing Swift

When I have multiple points in an array for a line on a line graph, everything shows perfectly. But when there is only one point, the dot does not show. I dont know why? the delegate is being set elsewhere, but this doesnt seem to be the issue. The…
ThundercatChris
  • 481
  • 6
  • 25