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:…
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…
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…
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…
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…
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…
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 ?