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

How do I make iOS Charts LineChartView show as a spline (smooth line chart)?

I'm new to iOS Charts, but I've figured out how to do many things with it. One thing I can't figure out (or find anywhere) is how to show the LineChartView as a spline instead of distinct lines to each data point. I want it to be smooth and…
9
votes
4 answers

How do I remove the dots in LineChartView iOS charts

I'm learning ios-charts. I was using the tutorial found here. The first picture shows the result I am getting. How do you remove the blue circle dots so that it only shows a smooth line like what is shown in the second picture? Here is snippet of…
lil9porkchop
  • 231
  • 2
  • 6
9
votes
5 answers

How to make a grouped BarChart with ios-charts?

I am using ios-charts library. I would like to group my inverter values so that each year is one group. Unfortunately, the number of monthly values per year may vary. My data json looks like…
AntonSack
  • 1,021
  • 2
  • 25
  • 47
8
votes
4 answers

iOS Charts ValueFormatter

I am using iOS charts plugin (line chart) and wish to style the chart values (the number above each point) to a decimal number. The value is a double, but charts by default is rounding it and displaying it as an integer. I have tried the following…
George Filippakos
  • 16,359
  • 15
  • 81
  • 92
8
votes
3 answers

Change label size in iOS-Charts library

I am trying to change the size of the labels below the graph, these labels have the texts "Explanation for set1" and "Explanation for set2". Changing the valueFont of the sets only changes the font/size of datapoints on the graph it self, but not…
DevB2F
  • 4,674
  • 4
  • 36
  • 60
8
votes
4 answers

iOS-Charts xAxis Labels cut off

I am using iOS-Charts to show a horizontal bar chart. The x-Axis labels on the left are cut-off. Only when I double tap on the chart, the correct sizing appears to happen and the labels are not cut off anymore. Here's the code I'm using func…
Tobi
  • 161
  • 1
  • 7
8
votes
2 answers

iOS pie chart properties

I´m using Charts for iOS and have a pie chart. I would like to remove the inner circle and change the width for each pie inside the pie chart. I have not been able to find how to decrease the width for the pie chart and remove the inner circle. The…
John Doe
  • 81
  • 1
  • 2
8
votes
5 answers

iOS-Charts Float to Integer YAxis

I'm building a chart using iOS-charts I'm trying to convert the floats into int, but iOS-charts only allows for Floats in the data entry: let result = ChartDataEntry(value: Float(month), xIndex: i) Does anyone know the method for making sure…
HannahCarney
  • 3,441
  • 2
  • 26
  • 32
7
votes
1 answer

How to create a Chart with Date / Time on the bottom Axis using iOS Charts Library?

I am currently working with the iOS Library Charts and have some issues to implement a TimeLine for the x Axis. Library Link: https://github.com/danielgindi/Charts I have a List of Objects as the Input for the Chart. let objectList : [Object] =…
christophriepe
  • 1,157
  • 12
  • 47
7
votes
2 answers

Interactive Tracking with iOS Charts. How to

Using iOS Charts (by Daniel Gindi https://github.com/danielgindi/Charts), is it possible to track touching? So when I move my finger on the screen, instead of panning the graph, it would continuously highlight the entry I touched. Something like the…
Jack Guo
  • 3,959
  • 8
  • 39
  • 60
7
votes
1 answer

How to debug missing dataset

I am working on a graph implementation for a health app and the user can choose which fields to graph. There are some combination of fields which never appear on the graph. From the debugging I have done so far I can see that the values for all the…
lewis
  • 2,936
  • 2
  • 37
  • 72
7
votes
3 answers

iOS Chart: How to set bar width to a fixed size?

I would like bar width equal to 30 pixels. barData.barWidth let me change it but this is proportional to chart width and number of bars to display, which display a big bar on iPad for only one element. Do you have an idea? Thanks.
thierryb
  • 3,660
  • 4
  • 42
  • 58
7
votes
1 answer

Charts lineChartDataset rounded values

I'm trying out a few things with the iOS Charts library with Swift 3.0. I have a question about formatting of the lineChartDataset values (displayed above each value point). Right now these values are 'double' and are displayed as 2.0 and 3.0…
user2403221
  • 435
  • 1
  • 3
  • 12
7
votes
2 answers

Set Maximum Zoom for iOS Charts

I am new to programming and swift, so I have a question... How to set the maximum zoom in iOS charts? tried: func setBarChart(dataPoints: [String], humidity: [Double], andDays: Int, forTime: String) { let formato = BarChartFormatter() let…
7
votes
3 answers

Create a MarkerView when user clicks on Chart

I have searched and searched for how to display the MarkerView when the user clicks on a bar in a bar chart using Charts (was iOS-charts) for Swift. The documentation states the library is capable of "Highlighting values (with customizable…
Tophat Gordon
  • 699
  • 2
  • 9
  • 22
1 2
3
56 57