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

iOS Charts possibility to rotate a bar chart x-axis label around a different anchor point other than its center

Dears, I want to achive rotating an x-axis label on a bar chart by 45 degree. That's currently possible with using like this: chartView.xAxis.labelRotationAngle = -45 And the result is: Bar chart labels As you see, the rotating anchor point is…
Nostromo
  • 959
  • 2
  • 7
  • 25
2
votes
2 answers

How to switch from Grouped Bar chart to Simple Bar Charts

Hello everyone i recently tried out the iOS-Charts library which is great. I made a Grouped Bar chart, and its working fine. I also have a Bar chart which works also. The Problem is if i switch from the Grouped barchart to the normal one, then my…
Elliot Czigány
  • 188
  • 1
  • 14
2
votes
1 answer

Xcode not finding frameworks installed with pod install

I have a project that was working well until I manually installed ios-charts library. Now, Xcode can't find any of the frameworks I had running before. In the picture you can see the pod project in the workspace. In the identity inspector the…
Danf
  • 1,409
  • 2
  • 21
  • 39
2
votes
0 answers

how to show text on selected slices only in pie chart using iOS charts

I need to draw a pie chart where on selection a label appears on the slice showing percentage. I am using iOS Charts library. but I didn't find out any way to stop showing the text on slice unless it was selected slice. Any help will be appreciated.
2
votes
1 answer

Is it possible to use iOS Charts (Daniel Gindi) to generate graphs in pdf document on iOS

I am using iOS Charts (Daniel Gindi) to generate graphs in an iOS app and I want to be able to generate a PDF report with those graphs included in the body of the report. Can anyone explain how to go about doing this. Ideally I don't want to…
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
2
votes
1 answer

Trouble getting the chart to scroll, instead of scaling whole chart to fit in space

I am trying to use Daniel Gindi's Charts library and what I what I want is for the bar or line chart to only show a portion of the data, but allow the user to scroll to the right to see the rest of the data. Right now, the chart shows ALL the data…
Sean Zlatnik
  • 187
  • 2
  • 12
2
votes
0 answers

Adding Attributed Text on X axis Label in bar graph using iOS charts

I am trying to implement bar graph using iOS charts library. https://github.com/danielgindi/Charts. I want to add J 2018 as x-axis label where "J" is bigger font and 2018 is in lower font using iOS charts in bar graph. Any one can help me into it. I…
2
votes
1 answer

How do I show data other than the chart points (x, y) in a Marker?

I have figured out how to modify the text and x, y values that appear in a marker, but I can't figure out how to show other data in the marker. Here's my marker currently: Instead of the x and y values, I want to show two values that were used to…
Jim
  • 1,260
  • 15
  • 37
2
votes
5 answers

How to remove extra line at the bottom of bar chart using ios charts?

Using Charts library I would like to get a specific look on the second photo. What I'm able to accomplish as of now was the one at the top image. I know I'm still too far from accomplishing the right one. This is the implementation that I have for…
Jojo Narte
  • 2,767
  • 2
  • 30
  • 52
2
votes
1 answer

Charts iOS I have used LineCharts in iOS but after upgrading to swift 4 Charts removed date from bottom

After swift 4 upgrade it is not showing dates here at bottom. Before it was showing like below. After converting my code to swift 4(Xcode 9.2) date just disappear from my data. I have passed my dates array here as: // x-Axis Setup…
Swapnil Dhotre
  • 375
  • 4
  • 21
2
votes
3 answers

iOS Charts moveViewToX does not seem to work

I am trying to move the current displayed data range. Reading the documents, it seems that I should be able to use moveViewToX function to move the left side of the view to the given x value. I made a test code that has 1 View with a button. The…
Y Y
  • 25
  • 5
2
votes
2 answers

Multiple charts in same view IOS Charts

I have been trying to develop a view controller with multiple charts(bar chart, line chart, pie chart). I created a table view and custom table view cell. There is a UIView inside custom table view cell. However, when I am trying to cast that UIView…
atalayasa
  • 3,310
  • 25
  • 42
2
votes
2 answers

How to edit or install the framework file in Xcode via Carthage?

How can I edit or install the framework swift file in Xcode via Carthage? In this screenshot only have 2 file, Why? How to install the swift file in it? So that I can modify it. What I want to do is change some code in PieChartRenderer.swift. What…
Lester
  • 701
  • 1
  • 9
  • 47
2
votes
2 answers

CocoaPods issues while adding a new pod

My CocoaPods works fine until I try to install a new one. If I try to install a new pod, then there are several issues in charts pod, else it works fine. How do I fix it? The errors show up as below: My podfile is as below: # Uncomment the next…
2
votes
1 answer

How to set Custom marker image using charts library

Any one found solution for custom marker Image using charts library. i want to add custom marker like in the bellow picture , anyone can help me. Thanks
Malleswari
  • 427
  • 3
  • 11