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

How to set multiple background colors in iOS Chart Graph Framework

I want to set multiple background colors in a chart view. A single color can be set in a background of the chart view but there is no way to set multiple colors. Percentage-wise wants to add background color 0% to 20% - Red color, 21% to 60% -…
RahulSalvikar
  • 658
  • 1
  • 10
  • 31
2
votes
1 answer

How to add unrelated array to Datapoint labels in an iOS-charts line chart?

I have read How to add Strings on X Axis in iOS-charts? but it does not answer my question. I have rendered a line chart with iOS-charts with no x/y axis labels, only datapoint labels, like this. This chart shows the temperatureValues in the chart's…
bobcat
  • 177
  • 1
  • 12
2
votes
1 answer

Change position of data labels to bottom of the line in ios charts

I have used this library on swift called: iOS Charts https://github.com/danielgindi/ios-charts I have two datasets and I want to set the position of data labels in one of the dataset to the bottom of the line, so the numbers can be visible and no…
Soheil Novinfard
  • 1,358
  • 1
  • 16
  • 43
2
votes
1 answer

iOS Charts(danielgindi) - How to update chart data with each iteration?

I want to show the steps of a sorting algorithm in real time (and animated) using for example charts for iOS (danielgindi). I need to update with each iteration the chart and I couldn't find a way to do…
2
votes
2 answers

Swift chart library. How to display X axis dates in a right places

EDITED: This is a debug video as well. I use this library to show charts in my Swift iOS app. This is my chart: X axis is for dates and Y axis is for lifted weight for my athletes. The ocean blue dots in the middle of the charts that you see it is…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
2
votes
1 answer

iOS-Charts X Axis values are repeating indefinitely when setVisibleXRangeMaximum is set

I am trying to draw a chart where the x-axis is TimeInterval and Y-axis is power consumption. There will be too much data to show as for each day there will be data. For that reason, I want to show 5 x values at a time. I achieved that by setting…
Anuran Barman
  • 1,556
  • 2
  • 16
  • 31
2
votes
2 answers

iOS Line Chart highlight color

I'm using charts 3.2.2 iOS version. I a trying to plot a line chart. In the line chart whenever user taps on the value points a highlight line would show up. Is there any way I can hide or change this highlight line color. Another issue I'm facing…
2
votes
2 answers

iOS-charts: how do I draw values under data entry icons/circle points?

With a LineChartDataSet() with drawValuesEnabled set to true, is it possible to draw the value under the entry instead of its default position of drawing the value above the label? I haven't immediately been able to find anything in the API that…
spirograph
  • 59
  • 1
  • 5
2
votes
1 answer

iOS Charts remove values on the bar of the bar chart

I am using https://github.com/danielgindi/Charts How to hide the values which are shown on each bar. My code is as below func setUpChartView(){ viewGraphContent.delegate = self viewGraphContent.pinchZoomEnabled = false …
Khadija Daruwala
  • 1,185
  • 3
  • 25
  • 54
2
votes
0 answers

Bar chart goes below zero line ios-charts

I have following question, today i updated the 'charts' pod in my project and suddenly the chart is drawn wrong. I mean the bars are going below zero, and not starting at the zero line. and before the update it looked like this: (i know the second…
Elliot Czigány
  • 188
  • 1
  • 14
2
votes
1 answer

Draw a circle with lineChart

I'm trying to draw a circle using a LineChartView using Charts, I had no trouble doing this with a parabola, but when I try a circle, I get Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to…
2
votes
1 answer

ios-charts how to adjust pie chart height

I am trying to fit a pie chart correctly to a view that is way taller than the chart. The problem is that I'd like to include a vertical list of legends at the bottom of the chart and this makes the heigh of the actual chart dynamic. If I have too…
Charles
  • 288
  • 1
  • 3
  • 14
2
votes
1 answer

iOS Charts, data label customization

I am working with danielgindi charts library with my iOS app. On that chart I display chart data using lineChartDataSet.drawValuesEnabled = true. I want to display the values (data points) vertically and not horizontally. Can someone please tell me…
Vasu
  • 41
  • 6
2
votes
1 answer

How to set Strings alongwith Y-axis numbers in ios charts swift

I am searching for the method to add label or string with "ios charts graph", I want the y-axis to be shown as time with "min" string with it (for eg. 23 min, 24 min and so on) I found every method was for the x-axis and using numberformatter() but…
Mantu
  • 1,017
  • 1
  • 10
  • 21
2
votes
1 answer

How to add Charts LineChartView to Coccoa view

I am an old time Windows Visual Studio programmer trying to learn programming on the MAC with Xcode 10. I am trying to build a test program which uses Daniel Gindi's Charts. I start by creating a Coccoa Mac OS project called "test" and save it as…
coop
  • 31
  • 1