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

How to plot points in iOS-chart by taking values from a different method

I want to make a graph by taking values from json api. I have defined it in requestFinished method but I want to call the values in setDataCount method. I have defined the model in requestFinished method as: for (NSMutableArray *dictionary in…
Itaws
  • 330
  • 1
  • 22
3
votes
2 answers

iOS Charts Github :: Spacing

I'm using ios-charts to build a line chart and have been customizing it's design. However I'm having some issues with changing some settings/designs right now. This is what it currently looks like. I can't seem to add vertical spacing between the…
Tyler Rutt
  • 49
  • 4
3
votes
1 answer

SwiftUI iOS CHARTS: How to get highlighted value

Using iOS Charts (by Daniel Gindi https://github.com/danielgindi/Charts) and SwiftUI, I would like to get the selected value from a Line Chart, the highlighted value when the user tap it. The highlight is working, I can see the additional lines for…
ThomasFr
  • 65
  • 7
3
votes
2 answers

Repeating values on x-axis for iOS Charts

I'm using the iOS Charts and I'm getting a repeating labels on my x-axis. I'm getting numerous answers (first, second, third) that I should set the granularity settings: xAxis.granularityEnabled = true xAxis.granularity = 1.0 but, when I do the…
Kevvv
  • 3,655
  • 10
  • 44
  • 90
3
votes
2 answers

iOS-Charts: How to fill the area between two ChartLimitLines by using Charts Cocoapod?

With Charts Cocoapod, I can set up two ChartLimitLines as dashed lines. But the requirement is to fill the area between two ChartLimitLines on the graph. Here is my code: let lowLimitLine = ChartLimitLine(limit: 3, label: "") lowLimitLine.lineWidth…
Pravalika
  • 145
  • 1
  • 1
  • 15
3
votes
1 answer

How to display each month on X Axis using Charts (IOS)

I trying to use Charts, but i can't display each month on X axis, only through one. Look at picture. In stringForValue i tried to print value and it's show : 0 2 4 6 8 10 0 1 2 3 4 5 6 7 8 9 10 11 0 2 4 6 8 10 But why it's passed three time which…
Viktor
  • 55
  • 6
3
votes
0 answers

iOS Charts - save full chart as image

I'd like to save a full-sized image of my entire chart. I usually show a maximum of 15 X values (barChartView.setVisibleXRange(minXRange: 3, maxXRange: 15)), so users must scroll to view all data. I currently save the image like so: let number =…
user7987142
3
votes
0 answers

IOS Swift, Custom renderer for bar values in Bar chart

I am using Chart library (https://github.com/danielgindi/Charts, Thanks to Daniel) for drawing different charts in Android and IOS application. I need grouped bar charts and the bar values are high. So when I display, the values are overlapping. I…
3
votes
2 answers

iOS Charts not showing all xAxis Value

I am writing an iOS App in Swift 4.2 I am using Charts library to display Horizontal Bar Chart. I need to set its xAxis Values. Only last value is being displayed. Issue Screenshot: Code Snippet: @IBOutlet var chartView:…
Atif Shabeer
  • 167
  • 3
  • 16
3
votes
1 answer

IOS Charts highlight specific labels on X-axis and dashed gridline only in the middle

I am trying to have different colours for the labels on the X-axis based on the current date of the month, but I can't seem to individually configure them. I am also trying to have a gridline that has dashes for the midline and the ceiling line…
Darsshan
  • 896
  • 1
  • 11
  • 22
3
votes
1 answer

Change Background Color of Line Chart Entry on Selection in ios-charts

I'm using the iOS Charts framework and am trying to achieve this custom selection style. Screenshot of Chart In this screenshot, the blue circles are my line data entries, and the purple box that red arrow points to on the '15.2' entry represents…
spirograph
  • 59
  • 1
  • 5
3
votes
2 answers

Remove Line Chart values which is on the line on Chart

I've created a line chart by using Charts. I need to remove data points values (Which is on the line). Is there any accessible parameter to disable this? Thanks
Mudith Chathuranga Silva
  • 7,253
  • 2
  • 50
  • 58
3
votes
1 answer

iOS Chart Library : In Linechart , Legends are overlapping

I am using this chart library https://github.com/danielgindi/Charts in my application . I implemented the line chart from it, the legends are overlapping on each other . I am not sure what is wrong here , I did play with different attributes of the…
Bharat Jagtap
  • 1,692
  • 2
  • 22
  • 35
3
votes
2 answers

iOS: Two Bar Charts together

I am using charts library (Charts) I am developing the application allows me to show number of guests in restaurant realtime and compare data between different days. For example look at this picture The dashed line means data for the compared to…
Artem Z.
  • 1,243
  • 2
  • 14
  • 36
3
votes
1 answer

How to hide the markerView if bar value is 0.0. in bar graph using iOS charts

I am adding on marker on tap using iOS charts. I want to open the marker only if value is not zero. Can we do this using iOS Charts library.