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

How can I set custom X-Axis label intervals?

I am using https://github.com/danielgindi/Charts What I want to happen: I want the graph to have 2 x-axis ticks/labels with custom label values. My x-axis values are in date/time (I use a DateTimeFormatter based on IAxisValueFormatter). If, for…
Lauren
  • 29
  • 5
1
vote
0 answers

changing width of individual pieces in piechart swift 4

I need percentage wise width for each piece of piechart I need it to look like this:
1
vote
1 answer

iOS Charts : Bar chart spacing and position

Objective I'm trying to display data from two sets (ACTIVE and REST) in a bar chart. The sets are alternating (meaning there is one ACTIVE interval, followed by a REST interval, etc...). Rather, there is alwats one REST set between every two ACTIVE…
kmn
  • 2,615
  • 4
  • 18
  • 28
1
vote
1 answer

Set labels at RadarChartData

I am using Charts v3.2.2 framework by danielgindi for iOS and macOS to draw a RadarChartView. There is a github repository that provides an example xcode project including Playgrounds. One is for RadarChartView. Following the example I can set…
J.E.K
  • 1,321
  • 10
  • 17
1
vote
0 answers

Charts iOS Horizontal Bar Chart Value Labels Cut Off

I have set up a Horizontal Bar Chart and placed a custom value in each bar. Unfortunately most of the small values are not properly rendered into the bar. Is there a way to set the minimum length of a bar to avoid this problem (or something else). I…
Tommy
  • 11
  • 2
1
vote
1 answer

How to put bar's value inside bar on HorizontalBarChartView of Swift iOS Charts?

I'm trying put the bar's value inside bar on my HorizontalBarChartView, because some values are clipping on the right side of the screen, but I not found solutions on the web search. Also, I want put the labels on left side of the chart, but I don't…
Augusto
  • 3,825
  • 9
  • 45
  • 93
1
vote
2 answers

Display three label on XAxis of chart

I'm using iOS Chart to display line graph in my application. I have facing one issue while display xAxis. I have following code which are used to configure chart and display data on it. import UIKit import Charts class TotalSalesVC: BaseVC { …
Sagar Chauhan
  • 5,715
  • 2
  • 22
  • 56
1
vote
1 answer

Formatting Custom Legend Entries in Chart's PieChartView?

I'm having difficulty formatting my custom legend entries for my pieChartView. I need the legend entries to be different than those on the pie chart (why I need to customize). The below works but anything larger than size 6 text (which is too…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
1
vote
2 answers

IOS Chart / MPAndroidChart. Axis Height

I need to give the x-axis labels more space. Is this possible? If you see the green box, the axis' labels are cut off. I have tried this but with no effect: xAxis.labelHeight = CGFloat(40) I just added the colors to show the areas. Thanks.
diogenes
  • 1,865
  • 3
  • 24
  • 51
1
vote
0 answers

iOS Charts issue for Line Chart. Missing Alignment while zooming

I am having very hard time while implementing line chart. I am using latest Charts pod. When I zoom chart its not work properly. X-axis missing its coordinate. I have attached both images. // Make sure that only 1 x-label per index is shown …
Manish Mahajan
  • 2,062
  • 1
  • 13
  • 19
1
vote
0 answers

Tap gesture on custom Marker View using iOS-Charts

I've created a custom marker view that loads from xib. I want to detect tap on the marker so that I can perform certain action on my VC. How can I do this? PerformanceHomeViewController: @IBOutlet weak var segmentBarChartView:…
da32
  • 703
  • 1
  • 9
  • 18
1
vote
0 answers

iOS charts - Border on bar shadow

I'm using iOS Charts by danielgindi. Is there a way for put border on barShadow? I can put border on the value bar but I need a border on the bar shadow as well. Anyone can help?
da32
  • 703
  • 1
  • 9
  • 18
1
vote
0 answers

iOS Charts in a tableview: correct use of a delegate and global zoom

I'm using iOS Charts in my project, and I've been able to embed my charts in a tableview (every cell will contain a chart, up to maximum number of possible entries to keep under control the performance). I would like to use the 'touchMatrix' feature…
Salva
  • 707
  • 2
  • 9
  • 18
1
vote
1 answer

danielgindi/Charts - iOS - Set Label above Specific bar on bar chart

I am using danielgindi/Charts library for my iOS project in swift. Specifically, I am using bar charts where each day (x Axis) represents some value (y axis). I know we can Draw the values on each bar by setting the setDrawValues on chart data.…
Piyush Hirpara
  • 1,279
  • 1
  • 11
  • 29
1
vote
2 answers

iOS Charts framework maximumFractionDigits not working

I am using iOS Charts framework to show bar chart on my app. My leftAxisFormatter is like this let leftAxisFormatter = NumberFormatter() leftAxisFormatter.minimumFractionDigits = 0 leftAxisFormatter.maximumFractionDigits =…
Paras Gorasiya
  • 1,295
  • 2
  • 13
  • 33