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

How to set different colors for dots on LineChart at ios charts?

I need to paint values in one range to yellow and other range to red. How to implement it?
Vassily
  • 5,263
  • 4
  • 33
  • 63
2
votes
3 answers

How to generate space between slices of pie chart in MDRotatingPieChart?

I am using MDRotatingPieChart in my app and created a pie chart. I need space between the slices of pie chart. Can someone help me with this?
IOS developer
  • 57
  • 3
  • 11
2
votes
2 answers

Y-axis is repeating values - iOS Charts

In the iOS Chart Framework the y-values in the chart are repeating. As shown in the picture below there are multiple 0's and 1's in the chart. Is there anyway I can customize this chart so there aren't any repeating y-values. So in this scenario…
Harish
  • 1,374
  • 17
  • 39
2
votes
1 answer

Ios Charts Left axis not showing labels few cases

I am using ios-charts library (Ios Charts) for graphs (line , bar).my issue is that few cases y axis labels are not showing. please help me to resolve this. here what my code is ChartYAxis *leftAxis =…
ram880
  • 1,288
  • 12
  • 22
2
votes
1 answer

iOS-Charts How to put UIImage beside a point

I want to use iOS-Charts with Swift to draw some line charts to show the data. Now, I have a requirement that put a small icon beside each point. Now I can add UIImage on the graph, but the problem is how can I get the CGPoint coordinates of each…
Leo
  • 303
  • 1
  • 4
  • 13
2
votes
2 answers

Multiple Line Chart, don't want to plot 0 values. Swift 2

I am generating a multiple line chart using ios-charts library. (danielgindi/Charts). I am creating an array to for the x-axsis which is retrieved from Core Data and if there is no value for x week, i appended a 0. I have an example array of (for…
Jess Murray
  • 1,273
  • 1
  • 10
  • 32
2
votes
1 answer

How to specify custom image for either Scatter Chart or Bubble Chart?

I have a CombinedChart in my app (same app on both Android and iOS platforms using MPAndroidChart & iOS-Charts respectively) with stacked bars and a line but I also need to highlight specific points where a given event happened. I've got some small…
Litome
  • 653
  • 8
  • 12
2
votes
1 answer

Issue in display of barchart with latest ioscharts

I updated ios-charts to the latest code after 2 months. I see lot of difference when I run the code. This is before updating the library: After updating: Here's the code that generates the chart: chart.infoTextColor = UIColor.blackColor() …
Ash
  • 149
  • 2
  • 15
2
votes
2 answers

Swift ios-charts Set Bar Color on Highlight

Within the ios-charts delegate method: @objc func chartValueSelected(chartView: ChartViewBase, entry: ChartDataEntry, dataSetIndex: Int, highlight: ChartHighlight) { } I would like to change the color of the bar that was selected. Is this possible?
Connor Neville
  • 7,291
  • 4
  • 28
  • 44
2
votes
1 answer

Can we add multiple values on balloon marker with image in ios-charts?

I am using ios-charts and i added one value to balloon marker, now i wish to add two values in two line in balloon marker and also wants to add two dots before that two values, i have implemented it in objective c. I want to change balloon marker…
Ashish Thakkar
  • 944
  • 8
  • 27
2
votes
3 answers

How to change CenterText Font in PieChart in ios-charts?

I would like to change the Center Text Font and Font Size of a PieChart. I would like to make it as big as it's possible inside the center circle. Is there any on-board feature that helps me to change the font and font size or do i have to…
patreu22
  • 2,988
  • 4
  • 22
  • 31
2
votes
3 answers

Convert seconds to hours, minutes, seconds using NSNumberFormatter

I am using the Charts framework so I can display stats and it takes simple number values, e.g 1, 5, 17, 99, 1,574 etc and plots them on a graph. It give the choice to set an NSNumberFormatter to display those value more elegantly. The numbers I am…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
2
votes
2 answers

Have more than one series (label) in ios-charts bar chart legend

I followed a tutorial to create a chart in my project. I was successful in creating the chart, however, I am now trying to initialize it with two different series (or labels in the legend), to reflect two different types of data (The equivalent of…
Jacobo Koenig
  • 11,728
  • 9
  • 40
  • 75
2
votes
1 answer

Warning with CGContextSetLineDash

I'm trying to implement graph in my app. I had used this graph library in my app. It's working properly, but it shows following warning for 15-20 time in console. CGContextSetLineDash: invalid dash array: at least one element must be non-zero.
Ankita Shah
  • 2,178
  • 3
  • 25
  • 42
2
votes
1 answer

Changing the viewport to only show certain intevals of ios-charts linechart

I'm using the ios-charts library and I have a LineChart View that has x values that are dates from every weekday of this year. On the y-axis I have values between 0 and 25. I would like to zoom in on different intervals on the LineChart View. For…
Peep
  • 430
  • 4
  • 13