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
4
votes
2 answers

ios-charts radar chart turn auto scaling OFF

These two radar charts have the same data points for the orange bit, but different for the gray. However, as you can see it is autoscaling, and the orange bit ends up bigger on the second chart, even though they are the same exact data points. Is…
HannahCarney
  • 3,441
  • 2
  • 26
  • 32
4
votes
2 answers

iOS-Charts how to allow clicks only on plotted points?

I'm using iOS charts framework to plot this chart, I want to detect tap or touch only on the line's path or on the small circle's on the lines. My question is, Is there any default code block to do this? I tried comparing the entry.value with the…
Rajesh S
  • 133
  • 1
  • 9
4
votes
3 answers

Vertical lines at X Axis iOS-charts

Maybe this is a simple question but I wanted to know how I can draw vertical lines under X Axis and upper labels in X Axis in iOS-charts. (See the pic, like red lines) UPDATE: the library I'm using is this https://github.com/danielgindi/ios-charts
Aili
  • 55
  • 1
  • 5
4
votes
5 answers

How can I add a Marker on ios-charts?

I'm creating an iOS app using Objective-C and I need to use ios-charts. Now I'm facing a problem that I couldn't find the way to add a Marker to my graphView. Also, I need to change the YAxis data set by user action, but I have no idea how to…
Masaru Kitajima
  • 343
  • 1
  • 2
  • 13
4
votes
2 answers

Animating a Double from 0 to 1 in Swift over a specified interval

I am trying to call a function continually over a specified period of time by passing through the progress indicator (Double) should change from 0 to 1 over that period of time. Is there a way to "animate" such change from 0 to 1 in…
Grzegorz Aperliński
  • 848
  • 1
  • 10
  • 23
4
votes
1 answer

How to draw time based graphs using ios-charts

I'm trying to draw a temperature graph using iso-charts where the x axis data would be set from a server timestamp but the labels would be readable text. For instance the graph x-axis label would start at Monday 00:00 and end Tuesday 12pm but the…
Xav
  • 61
  • 1
  • 5
4
votes
2 answers

ios-charts PieChart's label (legends) missing

I am trying to implement pie chart from ios-charts library everything is working great, however I am missing legends from the graph - Here is my code - // This is the delegate method for creating data for chart func…
AppsWise
  • 1,244
  • 1
  • 14
  • 20
4
votes
1 answer

Swift pod in objective-C project

my pod looks like this platform :ios, '8.1' pod 'Masonry' pod 'Parse' pod 'SSKeychain' pod 'Reachability' When I add 'pod Charts', I get error like this [!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta.…
Paulius Vindzigelskis
  • 2,121
  • 6
  • 29
  • 41
4
votes
3 answers

ios-charts background color

Hi would like to change the background color of my iOS-chart. I tried: barChartView.backgroundColor = UIColor.redcolor() But it changed the color around my bargraph, not the color inside, ie. behind the vertical bars. Any Idea?
Eric
  • 592
  • 10
  • 26
4
votes
1 answer

Drawing multiple lines using iOS charts

EDIT: The example in the question is purely to simplify it but I do not need to create a line, but a line with data points. That's why I need to use a graph library. The data is dynamic not static. Some user suggested me to use an image for this but…
mm24
  • 9,280
  • 12
  • 75
  • 170
4
votes
4 answers

How do I get index of selected slice in Pie Chart View with ios-charts?

I can't figure out how to make a UILabel visible if a slice is selected in a Pie Chart View. I need to know how to identify if a slice was selected and then what slice was selected so I can put the right text in a UILabel and then unhide the label.…
Max Phillips
  • 6,991
  • 9
  • 44
  • 71
4
votes
2 answers

iso-chart BarChart with rounded corners

Is there a setting in the BarChartView to enable rounded corners for the bars? I want to achieve a similar effect to this other library iosbarchart
user2471214
  • 729
  • 9
  • 17
4
votes
2 answers

How to set up iOS charts y-axis with min, max value and a fixed step between the grid lines?

I'm just in the learning phase of using ios-charts. I would like to change the x-axis grid to fixed values. My plotted y-values are just int numbers like 1, 2, 3,..., 10. Nevertheless, the left y-axis shows values like 6.3, 9.1, etc., depending on…
Morpheus78
  • 870
  • 1
  • 9
  • 21
4
votes
2 answers

How to change the highlight sytle of selected slice in PieChart of ios-charts

ios-charts is a cool library I'm using recently. This is the expected highlighting slice: This is my current highlighting effect: The difference is the highlighted effect is too much than I expected. I wonder which method can I use to adjust the…
Ranger Way
  • 539
  • 6
  • 11
4
votes
1 answer

Set pie chart to non touchable

I'm using this awesome plotter framework ios-charts. The documentation for the android version states that one can disable touch events on the charts with "setTouchEnabled(false). However I can't find this function in the iOS version. "touchesBegan"…
user1259201
  • 706
  • 7
  • 21