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
13
votes
3 answers

bitcode bundle could not be generated because iOS Charts

I make app with 3d library iOS-Charts. But I get the error bitcode bundle could not be generated because was built without full bitcode. from today widget. I installed it with help Carthage and I did all the instructions. I do not know how can I fix…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
12
votes
3 answers

IOS-Charts set maximum visible x axis values

I'm using ios-charts (https://github.com/danielgindi/Charts). I have a LineChartView with 12 values in the x axis. This however is far too many to see at the same time, so I want to display only 5 and then let the user drag to the right to see the…
Jonas
  • 1,112
  • 5
  • 17
  • 28
12
votes
6 answers

How to remove the value label above each bar in bar chart for ios-charts

Each bar has a value above it, but whenever I get too many data entries graphed, these values are spilling over into each other and making themselves unreadable. The only way to edit these that I could find was setting them to either above or below…
Dan
  • 165
  • 1
  • 1
  • 8
12
votes
4 answers

Xcode dynamic live update line chart

I am trying to create a line chart in which I will continuously plot data so the graph can be observed in real time updating, will be plotting around 5 points or so a second. The kind of graph I am looking for will look something like the graph…
AdamM
  • 4,400
  • 5
  • 49
  • 95
11
votes
2 answers

How to add "%" to data in ios-chart

chart, here is my code: private func setChart(pieChartView: PieChartView, values: [Double]) { var dataEntries: [PieChartDataEntry] = [] let dataPoints = ["Mar","Apr","May"] for i in 0..
OuSS
  • 1,047
  • 1
  • 15
  • 23
11
votes
2 answers

How can I add a name for each column on ios-chart?

I am doing a BarChart with ios-chart library. As it is similar to MPAndroidChart I do not have a lot of problems creating them but I am not able to add a name/label above each column with the days of the week. On Android, after setting the values to…
Francisco Romero
  • 12,787
  • 22
  • 92
  • 167
11
votes
2 answers

Show and hide line chart highlight on touch

I want to only highlight a data point when the finger is on the chart, as soon as it lifts off the screen I want to call, or simple deselect the highlight. func chartValueNothingSelected(chartView: ChartViewBase) { print("Nothing Selected") …
Nick Hayward
  • 178
  • 2
  • 12
11
votes
1 answer

How to hide values in iOS-charts PieCharts?

I'm trying to change a PieChartView to not show the values on the Chart. Indeed I'm looking to a similar function to pieChartView.drawSliceTextEnabled = false but just for the values. I would be very thankful for some help :)
patreu22
  • 2,988
  • 4
  • 22
  • 31
11
votes
3 answers

Module not found error when importing Swift pod into Objective-C project

I have an existing project which is written in Objective-C. I want to use the iOS Charts library by Daniel Gindi, which is in Swift, in that project. How can I achieve this? importing swift framework into a objective-c project is related, but in my…
Rohan Sanap
  • 2,773
  • 2
  • 21
  • 39
10
votes
5 answers

How to disable the cross and other touch events in ios-charts?

i have a Line Chart view in my iOS app. @IBOutlet weak var lineChartView: LineChartView! the zooming and touching is enabled. I do not let the user do anything in the chart, even selecting is not allowed. I…
Peter Shaw
  • 1,867
  • 1
  • 19
  • 32
10
votes
4 answers

Carthage requires git 2.3.0 or later

I am using charts library and trying to run the demo. Before running I have to install the dependencies using Carthage. I goto project folder location and type in terminal: carthage update I got the below error:- Carthage requires git 2.3.0 or…
pkc456
  • 8,350
  • 38
  • 53
  • 109
10
votes
1 answer

How to override internal framework method in application (outside framework)

Is there anyway to override internal framework method when subclassing in Swift? Ex. Superclass public class BarChartRenderer: ChartDataRendererBase { internal func drawDataSet(context context: CGContext, dataSet: BarChartDataSet, index: Int)…
Mateusz Tylman
  • 271
  • 1
  • 2
  • 17
10
votes
3 answers

NSNumberFormatter : Show 'k' instead of ',000' in large numbers?

I'd like to change my large numbers from 100,000 to $100K if this is possible. This is what I have so far: let valueFormatter = NSNumberFormatter() valueFormatter.locale = NSLocale.currentLocale() valueFormatter.numberStyle =…
Dan Beaulieu
  • 19,406
  • 19
  • 101
  • 135
10
votes
3 answers

Convert bar chart to a grouped bar chart with danielgindi/ios-charts and Swift

i have created the simple bar chart with the library at https://github.com/danielgindi/ios-charts still can't figure out how to make this a grouped bar chart. I've added the units sold array to the chart, but don't know how to get the unitBought…
9
votes
3 answers

Different colors for bars in BarChart depend on value

How can I change the color of a single bar, dependent on its value, in a bar chart? For example: I have five different values (= five different bars) in my bar chart. All bars that have a value less than 30 should be red, all bars between 30 and 70…
OSX55
  • 160
  • 2
  • 10
1
2
3
56 57