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

Stacked bar chart with charts in Swift

I am trying to build a stacked bar chart with the Charts framework (Swift) in my iOS project. All I can build at the moment is a grouped bar chart. Does someone know how to do this? All I found is: Convert bar chart to a grouped bar chart with…
Daniel
  • 31
  • 1
  • 3
3
votes
2 answers

Force deselecting a slice from pie chart

I am looking for a way of forcing the slice of the pie chart to become unselected. It automatically deselects when you click out of the pie chart however I was wondering if there was a way to deselect it within a button action? I have various…
Jess Murray
  • 1,273
  • 1
  • 10
  • 32
3
votes
2 answers

.noDataText not updating within Chart. Swift 2

I am using the Chart Library (danielgindi/Charts). I have a segment which displays a Day, Week, Month and Year option. Depending on what is selected will show on the Chart. I have the following code: var highestValue : Double = 0.0 @IBAction func…
Jess Murray
  • 1,273
  • 1
  • 10
  • 32
3
votes
2 answers

Line Chart - Display xAxis at bottom

I've looked everywhere and tried various approaches and cannot figure this out. How do I position the xAxis at the bottom of the line chart? In viewDidLoad: [self initChartProperties]; [self updateChartData:5]; initChartProperties: -…
3
votes
1 answer

Is it possible to set lineChart's xAxis values manually one-by-one using ios-charts in swift?

I am creating a lineChart using ios-charts API in Swift language. On the xAxis there are dates in mm.dd-day format, for example 03.02-Wednesday. On the yAxis there are double values.I want to show on xAxis every monday and nothing else. The best…
faklyasgy
  • 826
  • 1
  • 6
  • 10
3
votes
2 answers

How to set font for y-axis iOS Charts

I know that I am able to set the font of the x-axis in iOS Charts using the following code: myChart.xAxis.labelFont = UIFont.init(name: "AvenirNext-Regular", size: 10)! So, I thought that I would be able to change the font of the y-axis using…
Harish
  • 1,374
  • 17
  • 39
3
votes
2 answers

BarChartView xAxis label doesn't display all labels

I have a BarChartView with 31 bars, and thus 31 labels. I add everything and set it up according to examples and it works as it should - except that the BarChartView only displays each 3rd label. So I try to print out 1, 2, 3, 4, 5, 6,..., 30, 31…
ClockWise
  • 1,509
  • 15
  • 32
3
votes
2 answers

iOS-Charts error: Thread1: EXC_BAD_ACCESS (code=2, address=0x2a0c220)

So, I'm following the iOS-Charts tutorial on AppCoda, I followed it perfectly, then when I was having issues I also copied the code to match their exactly. The problem is, when I try and create a pie chart, then run it. I get the error: Thread1:…
JamesG
  • 1,552
  • 8
  • 39
  • 86
3
votes
1 answer

How can I import Charts.xcodeproj using cocoapods?

I'd like to use ios-charts on my iOS App written in Objective-C, and tried to fetch it from cocoapods. My Podfile is platform :ios, "9.0" use_frameworks! target 'MyApp' do pod 'FMDB', '~> 2.0' pod 'Charts', '~> 2.1' end I could retrieve…
Masaru Kitajima
  • 343
  • 1
  • 2
  • 13
3
votes
1 answer

iOS Charts , Swift 2.1.1 Xcode 7.2 seems doesn't work,

I was trouble in 2 weeks, so please let me ask question. Situation XCode 7.2 Apple Swift version 2.1.1 (swiftlang-700.1.101.15 clang-700.1.81) https://github.com/yosuke1985/ios-charts iOS Chart ttps://github.com/danielgindi/ios-charts This code is…
YOSUKE
  • 331
  • 3
  • 13
3
votes
1 answer

scatter graph + line graph in ios-Charts

Hi i need a graph as attached for ios. I am using ios-Chart library(swift alternative of MPAndroidChart) for swift . I have managed to get these points on the graph using the scatter graph. But i couldn't figure out how will i connect the two…
neena
  • 365
  • 1
  • 6
  • 22
3
votes
1 answer

Cannot distribute inhouse build with ios-charts library embedded to my project

first of all, I would like to thank you for creating this library. I have embedded it in my project (as written in the README file) by dragging it into the project, embedding it in the binaries and so on. Target iOS version is 8.0. Everything worked…
andrejbroncek
  • 421
  • 5
  • 17
3
votes
0 answers

ios-charts - Multiple Value selected methods for chart selections

I am using ios-charts for plotting charts in my view controller. I have 3 charts in the view where I want to show the 2nd chart based on value selection of 1st chart and same I want to show the 3rd chart based on value selection of 2nd chart, in a…
AppsWise
  • 1,244
  • 1
  • 14
  • 20
3
votes
2 answers

rotate x axis labels in ios-charts

I know label rotation is not supported in ios-charts. Any issue asking for this is promptly closed however this is a very basic feature. I've seen people posts about how to do it in MPAndroidChart (which this is based on) but those solutions appear…
rjb101
  • 514
  • 5
  • 14
3
votes
3 answers

Custom Swift NSNumberFormatterStyle

I'm using iOS charts to chart some data in my Swift iOS app including some times. The times are stored in Int variables as seconds but obviously people don't want to see 1 hour and 45 minutes on the Y axis as 6300 so I need to format it. iOS charts…
365SplendidSuns
  • 3,175
  • 1
  • 21
  • 28