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
1 answer

Swift Charts BarMark bar shape when stacked

Related to Swift Charts BarMark bar shape when stacked I'm trying to apply clip shape on a BarMark with stacked values and the result is that it's applying the shape for each stack item instead for the whole bar. What I want to achieve: What I…
ItayAmza
  • 819
  • 9
  • 21
1
vote
0 answers

Swift Charts: How control exact number and placement of xAxis Labels?

In this chart I'd like to have control over the number of xAxis labels as well as the placement, however I want the framework to control what is actually in the label, i.e. I don't want custom xAxis labels. See my code below and the resulting…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
1
vote
0 answers

SwiftUI Charts Issue

I'm having an issue with SwiftUI charts and was wondering if anyone knows of a solution or has also run into this. I've been trying to plot data for my app and the X axis does not show the dates and the Y axis only has axis marks 0-9. So, I tried to…
Rachel
  • 51
  • 1
  • 7
1
vote
1 answer

SwiftUI: How do change chartYvalues?

This values.Hi! Please tell me how to change these values ? I need a chart that will display price changes , since the spread is small , I want to make a zoom for example from 18.0 to 20.0 , how do I change this? Thank you!
1
vote
0 answers

iOS How to get size of chart grid?

I have used Charts library to make my chart. It really has ton of options, but I have been struggling to implement background for grid. I want to have gradient background, but just for grid part. I have done this by putting my view behind the chart…
MegaManX
  • 8,766
  • 12
  • 51
  • 83
1
vote
1 answer

Swift compiling error: Module map file not found + Missing required module 'SwiftShims'

I keep getting these errors after mistakenly running pod update. Spent the last couple of days searching for solution but nothing helped, some of my attemtps: 1) How to fix cocoapod .modulemap file not found 2) missing required module 'SwiftShims'…
Itzik984
  • 15,968
  • 28
  • 69
  • 107
1
vote
0 answers

Swift 'Charts' pod warning

When adding 'Charts' pod to my project I'm getting this warning : 'values' is deprecated: Use 'subscript(position:)' instead. I am using Swift 5 xCode 10.2 Didn't manage to find any related info online. Thanks in advance.
Vadim F.
  • 881
  • 9
  • 21
1
vote
2 answers

Trying to enter Date/String in ChartDataEntry

I am trying to add a Date/String as the xAxis labels in Charts (needs to have equal space in between labels) I am doing below but the x in the constructor only expects a double. Any idea? for i in 0..
user1163234
  • 2,407
  • 6
  • 35
  • 63
1
vote
1 answer

How to set center view label in piechart Swift?

I want a group label to be aligned into the center of screen and also to fill the border with specific colors according to the view contain group lable. For PieChart, I am using Chart Library. I have attached my source code with screenshots. let…
1
vote
0 answers

Finding data on line chart (SwiftCharts)

I created a line chart using SwiftCharts. Now I am trying to find the data on the chart. User gonna input numbers, which meets x any y axis and swift should mark the intersection of these two and tell the user where their data on the line chart is.…
MURAT EROL
  • 11
  • 2
1
vote
1 answer

Remove value in circle Swiftcharts

At the momtent I try to find out how I can make the table that I would need for my app. I would like to remove the value in the circles. But now I came across the possibility during my search that it is possible to hide the value in the…
Wouter
  • 809
  • 7
  • 19
1
vote
1 answer

Travis swift library compilation error

I'm trying to fix an error I have been getting from my Travis build lately and cannot seem to fix the issue: The following build commands failed: CompileSwift normal i386…
Harry
  • 163
  • 10
1
vote
0 answers

Why does this SwiftCharts line chart jump when starting to pan to the right

I'm creating a chart using SwiftCharts based on the Trendline example provided with the library. In my application, I'm charting weight lifting events showing the single highest lift weight on each distinct day. In my example, I'm charting 4 Bench…
Jim
  • 1,260
  • 15
  • 37
1
vote
1 answer

Candlestick views are generated but not displayed

Using the SwiftCharts library, I have a chart of candlesticks. And they are generated and I can track them. But some on the far right are not visible on the screen / seem to be behind some other views of the chart? You can, however, see them here…
vikzilla
  • 3,998
  • 6
  • 36
  • 57
1
vote
1 answer

View of Graph goes out of bounds when using SwiftCharts Framework

So I am using the SwiftCharts Framework and trying to create a BarChart but the Chart goes out of view. I create a UIView called view2, and then implement that following code. func createChart(){ let chartConfig = BarsChartConfig( …
Arnav GUPTA
  • 295
  • 1
  • 2
  • 17