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

"SwiftChart" pod library has an error in Chart.swift file

There is an error in Chart.swift file which is part of the "SwiftChart" pod library. It says "kCALineJoinBevel" has been renamed to "CAShapeLayerLineJoin.bevel". Could you please correct this?
0
votes
0 answers

Use of unresolved identifier "value" in SwiftCharts

I'm trying to implement the touch to show the current value. The problem is that I'm getting use of unresolved identifier "value" when I try to add the text to my label. The series are shown correctly in the Chart but I'm not getting the value…
Jalil
  • 1,167
  • 11
  • 34
0
votes
1 answer

Swiftchars - bars chart overlap after specific number of points

How can I specify min space between bars in bar chart using SwiftChars library ? Here is my code sample for using SwiftCharts to display bars chart: // xAxis let labelSettings = ChartLabelSettings(font: .systemFont(ofSize: 13.0), fontColor:…
Mohamed Amer
  • 429
  • 1
  • 4
  • 18
0
votes
1 answer

Is there a delegate in SwiftCharts that I can call when the user scrolls the bar graph?

I need to fetch more data (bars) as the user scrolls left in my bar graph. I see where I can get the position of each data point, but I can seem to find a delegate that is exposed that I an call when the user is scrolling the graph. I set the zoom…
Korbin
  • 1,788
  • 2
  • 18
  • 29
0
votes
1 answer

Fit chart bounds to data on change

I have an app that displays line chart data, and each line can be hidden or shown. How can I reset the chart boundaries when a line is hidden / shown? This is the code I'm using to hide each line: let lineIndex = sender.checkedValue! as! Int …
Peter S
  • 827
  • 1
  • 8
  • 24
0
votes
0 answers

not able to show response data on charts

i am getting json response and i want to siaplay thatresponse as chart an useg SwiftCharts library for that but i am not able to show on chart let me show my response Response { "success": "1", "data": [ { "month": 0 …
user10079585
0
votes
1 answer

Swift - Show data in chartview

I am showing my response data in bar chart but the issue is that I am getting response properly and in graph if I pass static data then it works but if I pass my response value then it is not showing. Here is my code Code:: let usersubcategory =…
user10079585
0
votes
1 answer

Swift charts not showing value labels

I am using the Swift Charts library by Daniel Gindi. I am trying to show individual values for each point in a scatter plot. I have set drawValuesEnabled to true for the set and created a custom IValueFormatter. However, it appears that the method…
mginn
  • 16,036
  • 4
  • 26
  • 54
0
votes
3 answers

How to graph dates as X Axis (Swift)

I have struct of objects I'm trying to graph: struct CustomHistoricalSample { var value: Double var date: Date } I'm using SwiftChart (lighter weight than Charts) to graph the values. This library takes an X axis array of [Double] (or…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
0
votes
0 answers

How to Create Hours xAxis

I read all the relevant issues, and also the wiki. I'm trying to put Hours on the X - Axis, and want to show minutes when dragging the tracer. For Example - making points of 10:00, 09:00, 08:00.... and when dragging the tracer between them show the…
Matan
  • 685
  • 7
  • 18
0
votes
1 answer

Add legend text to pie chart Swift Charts

I'm trying to add a legend to my chart, bu its only colours that are coming up without the text. I cant figure out why this is? To create my chart I use: func configure (dataPoints: [String], values: [Double]) { chartIMG.noDataText = "Please…
Chris Campbell
  • 313
  • 7
  • 21
0
votes
1 answer

Handling rotation when using SwiftCharts

I'm using SwiftCharts for Swift 4. I haven't been able to figure out how to get the simple graphs to show properly either starting the app in landscape orientation, or handling rotation from portrait to landscape. Can anyone point me to examples or…
Jon Clayton
  • 93
  • 1
  • 2
  • 10
0
votes
1 answer

Swift Charts X-Axis Not Displaying?

I am using Swift Charts to create charts for an app but I cant seem to get the X-Axis labels to display. The chart is configured as follows: func configure (dataPoints: [String], values: [Double]) { ChartIMG.noDataText = "Please Insert Some…
Chris Campbell
  • 313
  • 7
  • 21
0
votes
1 answer

Generate X Axis Values for Past 30 days

I'm able to generate the X Axis for one specific month (i.e. February). func generateDateAxisValues(_ month: Int, year: Int) -> [ChartAxisValueDate] { let date = dateWithComponents(1, month, year) let calendar = Calendar.current …
vikzilla
  • 3,998
  • 6
  • 36
  • 57
0
votes
1 answer

SwiftCharts how to hide the midValue on yLabel

The charting library "SwiftCharts" can show the "Default" maxValue , midValue and the minValue, but how to hide the midValue "98 " ? please help me, thanks! I used the demo project on the SwiftCharts: Code func initializeChart(cell:…
YungCheng Su
  • 193
  • 1
  • 1
  • 9