Questions tagged [swiftcharts]

A charting library for iOS, written in swift.

A charting library for iOS, written in swift.

References

Github repository

98 questions
1
vote
0 answers

SwiftCharts- display one data point for Custom Units Scrollable graph

I would like to display one data point for Custom Units Scrollable graph (Custom Units Example). Is it possible to do it with this library? I have looked into issues and the library to check and I only see [ChartAxisValue] array to create…
mir
  • 183
  • 1
  • 12
1
vote
0 answers

SwiftCharts want create a UIButton in InfoBubble

In my app, I use SwiftCharts lib to create some charts, like that : You can see in the picture , I create a BubbleInfo view when user tap the point in the chart, then I add a UIButton in BubbleInfo view, code in below: bubbleView.transform =…
hopy
  • 559
  • 3
  • 18
1
vote
1 answer

SwiftCharts cutting off points (clips bounds)

I am tweaking the Areas Example project from SwiftCharts and I am running into the issue where the point indicators are getting cut off like so: In the github issues a found this and this other issue where the solutions were to set…
boidkan
  • 4,691
  • 5
  • 29
  • 43
1
vote
1 answer

Creating a Chart with SwiftCharts

I am new to SwiftCharts so I am still trying to understand how it works. I wanted to draw a cubic line chart, however, to no success. As far as I understand from this example, the view that would contain the chart should be of class "Chart".…
Tomas
  • 61
  • 1
  • 7
1
vote
1 answer

SwiftCharts StackBars in TableViewCell difficult to tap

I have created a calendar app which uses SwiftCharts to display a time bar like this: I nest the chart bars inside UITableViewCells. When I tap on the cells (not the event bar directly), I navigate to another view. Everything currently works great…
Dustin Spengler
  • 5,478
  • 4
  • 28
  • 36
1
vote
1 answer

SwiftChart has no member chart

I am using the SwiftCharts library found here. I have the following code: class ChartTestViewController: UIViewController { @IBOutlet weak var chartView: UIView! override func viewDidLoad() { super.viewDidLoad() let xaxis = ["monday",…
Martheli
  • 931
  • 1
  • 16
  • 35
1
vote
1 answer

Adding SwiftCharts

I am trying to add SwiftCharts to create a bar chart in my project, and after watching a bunch of tutorials and trying multiple things it still isn't working. As of now, the SwiftCharts.xcodeproj is embedded in my project. The SwiftCharts.framework…
StefWG
  • 61
  • 1
  • 9
1
vote
0 answers

Charts in tableView : Not working well

I am customising ios charts as per my need and showing them in a tabel view. For the first time they look different and after scrolling and reloading they look better. I have taken a view inside a cell and adding chart as a subview. Here is my code…
Sharad Chauhan
  • 4,821
  • 2
  • 25
  • 50
1
vote
0 answers

How to create Grouped bar chart

I am trying to pass array as the groupsData. Here is an example of group chart by i-schuetz. fileprivate var chart: Chart? fileprivate func barsChart(horizontal: Bool) -> Chart { let labelSettings = ChartLabelSettings(font:…
Shibili
  • 117
  • 2
  • 11
0
votes
0 answers

SwiftUI Charts: poor performance when synchronizing scrolling among multiple charts

I'm currently learning Swift and SwiftUI. I'm working at a MacOS app that will need to visualize a number of traces. The user must be able to scroll along the X axis of any of the traces and the other ones should be scrolling synchronously (think…
0
votes
0 answers

Update view after Dispatch

I'm trying to display a users weekly steps from HealthKit (broken down into daily eg Monday - 1200, Tuesday - 800), I've made a View model that gets all the data, if I do not add a delay on the data in my view, it wont print, but now my chart is not…
DevAcc
  • 93
  • 9
0
votes
0 answers

Swift Charts picker to customize chart time

I'm using Swift Charts to create a chart in my app, I want a scrollable view to be able to see chart data over a wide time range, however I am unable to properly get X axis labels to use the picker value (day, month, year) ScrollView(.horizontal) { …
reb
  • 3
  • 1
0
votes
1 answer

Order of layers in Swift combined chart

I am making a chart which consists of an Area Mark, 2 Line Marks & 2 Point Marks. No matter which order I place the different chart elements, the Area Mark is on top and I can't find any documentation or online articles explaining how to change the…
0
votes
0 answers

how to make a bar chart with apples new swift chart?

I am developing a finance management app, and I want to display a bar chart for each spending category. The goal is to show the user a visual representation of their transactions within a specific time period, such as today, this week, this month,…
0
votes
0 answers

How to show multiple icons above same bar in charts swift

I am using CHARTS library in Swift. https://github.com/danielgindi/Charts currently plotting barchart using sample value with icons using the following code barValue = BarChartDataEntry(x: Double(i.x!), y: Double(y), icon: UIImage(named:…
NickCoder
  • 1,504
  • 2
  • 23
  • 35