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

iOS Charts add legend text

I created a bubble chart with iOS Charts that has three different colors. Now I want to add a legend for every color. The little colored squares for the legend already show up but the text doesn't. That is how I tried to add the legend text, is…
OSX55
  • 160
  • 2
  • 10
2
votes
1 answer

How to draw 2 LineCharts with xAxis with Strings

I am new in programming and swift and I am trying to make a chart with 2 lines. And on top of the chart to enumerate the Array of Strings that I have (DD-MM in my case). I managed to draw just one line like so: let testArrayTemp = [22.43,…
2
votes
0 answers

How to update data in iOS-Charts?

I have tried to update the data in my barChart, when i passed another dataSet which contains more data points everything goes well, but when i passed another dataSet with a lower data points, the app crashes. I have also tried putting the…
2
votes
1 answer

Multiple labels xAxis iOS-Charts

I have troubles with the library and i can't find a solution, hope you can help. When I put data on the chart everything about drawing axis and shapes goes well but the labels on my xAxis multiplies itself and i don't know why, look i let you my…
2
votes
2 answers

iOS Chart library why my Bar/PieChart function has only "dataset" but no "xVals"

I am using Daniel's IOS Chart framework and Xcode7.3.1. I went through basic tutorial and tried to set up first example. Problem is I cannot assign X-axis string label I see in tutorial when we assign data to chart, we should use let chartData =…
Nevermore
  • 237
  • 2
  • 14
2
votes
0 answers

iOS Charts -> Last value doesn't appear

I have some troubles with the library, when I create a barChart I have to add an extra value to my values array in order to show all my original values, and in the lineChart the last value appears in the line graph but it doesn't have its value…
2
votes
2 answers

"ios-charts" Do not draw empty or zero values. & Interpolate values on combined chart

My question is two fold but the logic may be similar. I have a simple candlestick chart with two different indicators. One is at the bottom and the other is overlayed on top of the candlestick data. (See screenshot) First: In the lower chart I do…
Moon47
  • 103
  • 2
  • 11
2
votes
1 answer

Many Gradient Fill in same lineChart Swift for iOS-Charts

let gradientColors = [UIColor.cyanColor().CGColor, UIColor.clearColor().CGColor] // Colors of the gradient let colorLocations:[CGFloat] = [1.0, 0.0] // Positioning of the gradient let gradient =…
OuSS
  • 1,047
  • 1
  • 15
  • 23
2
votes
1 answer

Multiple values to a individual X axis value in ios Charts

I am using bar chart in my application. My requirement is like I have to plot five values for a single X-axis value. Is it possibe in ios charts ? Please help me! var dataEntries: [BarChartDataEntry] = [] let xAxis:ChartXAxis =…
2
votes
1 answer

iOS Charts - How to set different color of exact vertical grid line than have others

In my application I'm using iOS Charts and I want to split my line chart to sectors by vertical grid line with different color than have others (someting like on chart below). I looked into documentation but I didn't find any solution how to do…
maho125
  • 33
  • 1
  • 8
2
votes
1 answer

How to use danielgindi's iOS Charts Library in Xamarin.iOS?

I am a C# developer attempting to create a good looking graph for the app I am developing. I use Xamarin.iOS and Xamarin.Droid to create native apps with shared code and Web Services in C#. I found this plugin called "Charts" for iOS graphing…
jnel899
  • 563
  • 2
  • 8
  • 21
2
votes
2 answers

iOS Charts(Daniel Gindi) - how to set dual y axis dual graph lines in Swift

I am using Charts (Git Repo of Daniel Gindi's). Here is my code for single y axis single line chart: When I try to add a second line to the y axis it throws the error 'Cannot convert value of type 'LineChartDataSet' to expected argument type…
Rajesh M
  • 79
  • 1
  • 13
2
votes
1 answer

User Interaction at runtime with MPAndroidChart

First I should say MPAndroidChart is awesome, you have brought in several functionalities and customization which makes it really cool. I'm looking to add user interaction with the MPAndroidChart, My requirement is: In a combined chart (line chart…
Alfa
  • 599
  • 6
  • 22
2
votes
0 answers

Charts: Disabling/Hiding the first node point in Line chart

I successfully drawn a multiline chart using Charts library in Swift. However there is a minor customisation I need. Looking up the documentation I haven't found anything relative in the properties of datasets and line chart. Here's slice of…
Rameswar Prasad
  • 1,331
  • 17
  • 35
2
votes
2 answers

ios Swift Chart issue

I use Charts iOS library(https://github.com/danielgindi/Charts) and I have this code : import UIKit import Charts class ChartsViewController: UIViewController , ChartViewDelegate{ var lineChartView: LineChartView? let months =…
gianni
  • 113
  • 2
  • 9