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

Ios charts zoom back out after double tap

Hi i am new to iOS charts. iOS-Charts I am using double tap to zoom into my LineChart, but cannot find a way to zoom back out. Is there a simple way to do this or do I have to intercept the double tap and save my state and restore it later? I am…
M. Kim
  • 41
  • 6
3
votes
1 answer

add an image for each slice in iOS-chart pieChart

I'm using ios-charts. I want to create a pie chart like below image. I have done all the confings, but I have problem with adding the image in the circle beside the values outside the circle. Can anybody help me how to to add the circles and image…
Maryam Fekri
  • 605
  • 8
  • 19
3
votes
2 answers

How to achieve trackball and access label above Bar on Bar charts in Swift 3x

Hello Developers I am working on project where I have used danielgindi/Charts a third party library now the challenge here is I need to present a track ball like shown in the image on highest point of the chart.How can I achieve this any suggestions…
Harshit Goel
  • 679
  • 1
  • 6
  • 20
3
votes
2 answers

How to set x-axis on bar chart data - ios-charts?

Previously we can set the x-Axis of bar chart data as below:- BarChartData *data = [[BarChartData alloc] initWithXVals:xvals dataSets:dataSets]; In latest updated of ios-charts library, the syntax changed to below:- BarChartData *data =…
pkc456
  • 8,350
  • 38
  • 53
  • 109
3
votes
1 answer

How to use iOS Charts when pulling in multiple data from an array?

I have been learning to use iOS Charts over the past few days and have successfully gotten to them work when dealing with 'single' data called in from an API. However I am now stuck because I want to pull in multiple data from an array. My aim is to…
RDowns
  • 651
  • 1
  • 10
  • 35
3
votes
1 answer

"Unknown class BarChartView in Interface Builder file" error when using a custom framework

I am trying to use the Charts framework in my app. I have build the binary for this using Carthage and added to my app and contains two files: - Charts-Swift.h - Charts.h Then I have set the custom class of a view to BarChartView, but it seems…
Adrian
  • 19,440
  • 34
  • 112
  • 219
3
votes
3 answers

Is it possible to change dots size on LineChart?

I am creating a CombinedChart with ios-chart library and I would like to change the dots size (data markers) of the LineChart. I would like to make them smaller because they are very big in comparison of the data. You can see an screenshot…
Francisco Romero
  • 12,787
  • 22
  • 92
  • 167
3
votes
1 answer

How to render only chosen axis labels in ios Charts

Library I'm using: charts I have line chart with values at specific days in year. I don't want to draw each day as label on x axis (there may be more than 300 days range) so I'm looking to draw months only. Right now, my xVals looks like: [nil, nil,…
Maciej Kozieł
  • 959
  • 11
  • 24
3
votes
0 answers

iOS-Charts Line Graph with shadow under the line and fill gradient

I'm using ios-charts framework to implement a line graph like the one displayed below. Line Graph With Background Gradient and Shadow under the line The documentation cannot be very specific on everything we want to create so maybe someone has an…
Painful
  • 137
  • 1
  • 11
3
votes
0 answers

Get scroll position of draggable LineChart

Probably a very simple question: I have created a simple draggable/scrollable linechart and need to get the current scroll position to determine whether I have reached the end of the chart. So something like -100 points in the example below. EDIT:…
DEls
  • 241
  • 3
  • 14
3
votes
2 answers

iOS-Charts - yAxis labels not start exactly at bottom

I use Charts swift library in my project.I use two datasets in line chart, but the labels of Yaxis not start exactly at bottom.I want the first label on the yAxis to be exactly at bottom-left corner of chart. I try to set minimum of yAxis but it…
radopitonak
  • 33
  • 1
  • 7
3
votes
4 answers

iOS-charts won't put the x-axis at zero on the y-axis

I can not get an iOS-charts bar chart to put the bars zero (the bottom of the bars) on the x-axis. They seem to float just above the x-axis: The bars in orange are set to 100 which is the max height of the y-axis for illustration. The only thing…
Jason Leach
  • 3,889
  • 7
  • 37
  • 54
3
votes
5 answers

iOS-Charts draw slice text outside the slices in pie chart

I want to draw the slice text outside the slices in pie chart, like in this image: slice text outside slices How can I achieve this? Thanks :)
leonidster
  • 61
  • 1
  • 5
3
votes
2 answers

Hiding separator lines and top border line in iOS Charts

I have a generated chart. I'm trying to make it as simple as possible, thus removing all the unneeded lines, grids, labels etc. I can't get rid of the separator line between the bars and the top and right border lines, as you can see on the picture.…
Eugleo
  • 418
  • 4
  • 11
3
votes
1 answer

How to set minimum and maximum of the x axis using iOS-Charts

I'm trying to use ios-charts to draw charts and I have figured out how to set the minimum and maximum of the y axis. However, I have spent more than 5 hours and I still cannot set the minimum and maximum for the x axis. So can anyone help me? The…
Josh Meng
  • 53
  • 1
  • 4