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