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

How does the addEntry method update LineChart in realtime?

I'm using the iOS-Charts to display a simple cubic line chart and want to update the chart every second with new data being reported. I've tried using the addEntry method to dynamically add the value to the end of the array and I've verified that…
user1038280
  • 109
  • 2
  • 7
3
votes
1 answer

How to create UITableViewCells with complex content in order to keep scrolling fluent

I am working on a project where I have a table view which contains a number of cells with pretty complex content. It will be between usually not more than two, but in exceptions up to - lets say - 30 of them. Each of these complex cells contain a…
Christian Anton
  • 357
  • 1
  • 4
  • 13
2
votes
0 answers

import Charts conflicts with cocoa pod library's name

I am trying to use Apple's Swift Charts (iOS 16 only) but it can't compile, I presume because the import statement is interpreted as targeting this library: https://github.com/danielgindi/Charts (that I am using in other places in the App and…
mowafok764
  • 21
  • 2
2
votes
2 answers

How to draw a line in line chart for single value in Charts(IOS)

I need to draw a single value in line chart. Currently i am using ios-charts library for line graph purpose. The data will be varied some times i'll get the single data inside the data set at that time i need to draw the single value in the line…
2
votes
2 answers

iOS Charts Line Chart X Axis values repeated

I have multiple data points for each month: And I get the x-axis of my graph repeated like Feb Feb Feb Mar Mar Mar Mar Each data point is important because it reflects how long something took them on that day. So I cannot just sum all the values for…
123432198765
  • 276
  • 3
  • 14
2
votes
0 answers

iOS Charts Line Chart not selecting values on tap/drag in SwiftUI - Latest Release 4.0.2

What did you expect to happen? When I tap or drag across the chart I expected it to select all the entries one-by-one. What happened instead? However, it only selects the values on the far right. Which is really weird. Charts Environment Latest…
123432198765
  • 276
  • 3
  • 14
2
votes
1 answer

LineChart with optional Y parameter swift

Require a LineChart where in it allows y value as nil. As when no data for that particular day(x) is there the line should just go forward. Currently I have researched on SwiftChart & Charts but both doesn't provide that functionality. Please refer…
Anirudha Mahale
  • 2,526
  • 3
  • 37
  • 57
2
votes
1 answer

iOS Charts Disable Zoom

How do you disable zoom for iOS Charts but not completely stop user interaction? For example, still using the highlight tap. This takes care of the zoom, but it disables everything else as well. chartView.userInteractionEnabled = false
Ben
  • 3,346
  • 6
  • 32
  • 51
2
votes
3 answers

How to change the No Data message using iOS Charts?

When using iOS Charts and there is no data, there is a default message that says "No chart data available". Can this default be edited and handle translations?
Ben
  • 3,346
  • 6
  • 32
  • 51
2
votes
1 answer

How to set String value as x of ChartDataEntry.init in Charts?

I'm currently developing an application using SwiftUI. I'm trying to use a Charts(Charts) in my SwiftUI project. I want to show some String value as x-axis, but when I call ChartDataEntry.init there is an error because the type String data can't be…
Tio
  • 944
  • 3
  • 15
  • 35
2
votes
1 answer

iOS Charts Radar Chart size

I'm using the Charts library and am trying to replicate this design: I'm sort of getting there, but the chart is rendering itself way too small: I'm expecting the chart to fill the entire width of the screen, and use all the vertical space. To be…
Kevin Renskers
  • 5,156
  • 4
  • 47
  • 95
2
votes
1 answer

How to show only 24hr column in line chart?

I'm working with chart-ios library and i manage to show data in graph like below image. My Json data is like below. i showing field1+field2+field3 in X and created_at in y axis. this data is for 1 day. [ { "created_at": "2020-05-10T00:01:09Z", …
Pratik Prajapati
  • 1,137
  • 1
  • 13
  • 26
2
votes
1 answer

DanielGindi Chart, increase bottom space between chart and Legend. iOS Swift

I am trying to increase the space between a chart and a legend in iOS Swift. But I haven’t been able to achieve it. My present code looks something like this: override func configureChartView() { super.configureChartView() …
user2476796
2
votes
1 answer

cannot set custom colors for pie charts

I am using iOS charts to make a pie chart, and I cannot figure out how to set the colors as custom colors with RGBA values. here is the code var colors: [UIColor] = [] colors.append(UIColor.init(red: 206, green: 173, blue: 128,…
Amara
  • 21
  • 3
2
votes
2 answers

Charts iOS: How do I implement tap recognizing for LineChart label

I have got a wide LineChart with many entries. I want to let user tap (or better longtap/3D touch) on an entry to show modal card where user could edit data entry. I tried implementing chartValueSelected but the problem is that it runs even when…
Hekes Pekes
  • 1,175
  • 2
  • 12
  • 28