Questions tagged [swiftcharts]

A charting library for iOS, written in swift.

A charting library for iOS, written in swift.

References

Github repository

98 questions
0
votes
0 answers

SwiftCharts graph not in bounds

So I have am using the SwiftCharts graph, and have it setup like this. func roundToTens(_ x : Double) -> Int { return 10 * Int((x / 10.0).rounded(.awayFromZero)) } func createChart(){ let chartConfig = BarsChartConfig( valsAxisConfig:…
Arnav GUPTA
  • 295
  • 1
  • 2
  • 17
0
votes
0 answers

iOS Swift Charts Chart not appearing

I am using this library: https://github.com/gpbl/SwiftChart And I have installed it with cocoa pods, and followed the instructions for the first graph however nothing is appearing. It says this “The Chart class inherits from UIView, so if your chart…
Matt
  • 131
  • 3
  • 10
0
votes
1 answer

SwiftChart Add Range Highlighting

I'm using the Swift Chart. I'd like to modify it to allow the user to select a range. The idea is to touch, swipe left/right, and then lift your finger. This should highlight the area swiped and provide a way to get the beginning and ending values…
J. Martin
  • 124
  • 1
  • 7
0
votes
1 answer

Keep order of xAxis values using iOS Charts framework

I'm setting a CombinedChartView that have some value on xAxis, lets say (15, 16, 17, 2, 3) with this line of code for i in 0..
mmarques
  • 625
  • 3
  • 9
  • 27
0
votes
3 answers

How to render custom label colors for different xAxis labels?

I'm creating a chart using Charts library to draw a combined chart in my app. I succeeded in drawing the graph. Now I want to change the xAxis label text color of specific labels. The example was shown in the pic. As in the picture I want to change…
Praveen Kumar
  • 547
  • 1
  • 7
  • 33
0
votes
1 answer

how to create Bar Charts and change the number to string values?

I have create the Bar Charts in ViewController using SwiftCharts framework, and i get the graph and bar charts below, graph X Values are showed numbers but i need to change the string value (Example: 1 changed to BMW, 3 changed to Audi, 4 changed…
Iyyappan Ravi
  • 3,205
  • 2
  • 16
  • 30
-1
votes
2 answers

swift NSURL changes swift 3.1

I am currently attempting to retrieve data from mySQL with Swift in JSON format. I realize that NSURL has been changed to URL. I am following another older code to help guide me through this but it is out of date. I have errors (NSURL/URL) at let…
Morawiec
  • 3
  • 1
-2
votes
1 answer

xAxis values on both sides of Line Charts

I am using the iOS Charts library in my application. Charts are plotted correctly but the X axis values are shown on both sides in Line Charts. Is there any way to hide it or remove it ?
1 2 3 4 5 6
7