846 questions
0
votes
1
answer
50
views
Xcode updated podfiles, variable compile errors
I have an Xcode project. It makes use of IOS Charts. I have just upgraded the podfiles to get the latest version so I can access the privacy manifest on the Charts SDK (Apple need this for me to get ...
-1
votes
1
answer
45
views
UIRotationGestureRecgnizer delegate methods not triggered
im using the DGCharts library to display a pie chart. This chart is within a vertical scrollview, and the chart has the ability to rotate around its axis. This works with a single swipe, however the ...
0
votes
1
answer
383
views
DGCharts Y-axis labels are not aligned to left
I am using DGCharts and Y-axis labels aren't aligned to the left but are aligned to the right.
By default
chartView.leftAxis.labelAlignment = .left
I tried explicitly setting .left to ...
0
votes
1
answer
402
views
Swift PieChartView - Values are not shown with percentage % sign
I'm using PieChartView from DGCharts library to draw a simple pie chart. The values i show are correct but i would like to add the percentage sign (%) to each.
I tried the following code and as you ...
0
votes
1
answer
84
views
define steps of 250 to leftAxis using iOS-charts
I am trying to create a line chart using the danielgindi/ios-charts library.
This works quite well so far. However, I cannot set the values on the left axis in 250 steps as desired.You can see my ...
0
votes
0
answers
122
views
iOS-chart CanI display a bar chart with a value of zero?
I am displaying the data I received from the server on the bar chart.
The minimum value is 0, and the maximum value is not set, so the highest value is the reference.
However, zero value is not drawn ...
-2
votes
1
answer
290
views
iOS Charts(Daniel Gindi) : Library - Shaded region Stacked Lines
Is charts shown in below images possible using Daniel Gindi iOS Stacked Lines Charts library https://github.com/danielgindi/Charts
Especially that blue color diagonal shaded region.
If not with this ...
1
vote
0
answers
98
views
Show Gap/Patch in line graph
I am using charts lib in app for creating line graph but i want a gap/patch in graph where empty dataset or in those xaxis there is no data.
Thanks for help!
0
votes
1
answer
318
views
Hide Negative Values in Chart Y Axis Swift
I am using library https://github.com/danielgindi/Charts for displaying data fetched from server.
Now everything is working as expected but when there is zero values coming from server I get negative ...
1
vote
1
answer
197
views
LineChartView (danielgindi/charts) line disappears when zoom in
I have a macOS 13+ project in Swift where I've imported https://github.com/danielgindi/Charts to display temperatures over a day, by using a LineChartView.
Since I have a lot of values for a single ...
0
votes
1
answer
338
views
Cannot find type 'ChartViewDelegate' in scope, multiple new compile errors
I have just opened up my project to make some minor fixes. It was fully working two weeks ago and was the basis for my recent release. Without making any changes, I have a large number of compile ...
0
votes
1
answer
117
views
iOS-chart: remove DataSet label and color indicator
While drawing a line chart I need the entire canvas to be clean, I have figured out how to clean most of the default graphics like the grid background, grid itself, rightLabels, etc.
But I have not ...
0
votes
1
answer
106
views
Charts MarkerView in MacOS won't display
This question is in reference to DanielGindi/Charts but I think some knowledge of NSView rendering might help even if you're not familiar with the Charts library.
I'm using Charts in a MacOS project, ...
0
votes
1
answer
107
views
Programatically Zoom into section of chart where a marker is being displayed
In a Mac app I am trying to zoom into a section on x axis where a Marker is currently visible.
I am using some logic as per below to figure out the x position:
private func getZoomXPosition() -> ...
0
votes
1
answer
143
views
For negative plotting the x-axis and actual x-axis is not overlapping
What did I do?
Created a line chart project with linear mode. For that followed the demonstration code base https://github.com/danielgindi/Charts. So for plotting of positive x values and positive y ...
0
votes
0
answers
73
views
How show xAxis label bottom to all column
i want to show bottom label xAxis to all column, For some reason they only appear to me in the odd places , i using this libary https://cocoapods.org/pods/Charts
I'm not sure how to do this, I'd ...
0
votes
1
answer
90
views
Make dot on line that passing all the way horizontal line char
I draw a line chart and I have a vertical line
there is a way with this library to add a dot on vertical line and when I press and move the line, the dot move across that line chart (i add a picture)
...
0
votes
0
answers
98
views
When i scroll x direction on line chart, tableview to scrolls same time to up or down
I've searched and tried some ways but I don't find any solution.
I have a line chart in a tableView. When I scroll x direction on the line chart, tableView to scrolls the same time up. I want to when ...
1
vote
2
answers
651
views
How to add custom value in charts for bottom label in swift iOS
I have to show [0, 25, 50, 75, 100] with dollar sign in Charts using swift iOS
var xValue = [25.0, 50.0]
var dollarValue = ["$25", "$50", "$75", "$100"]
...
0
votes
1
answer
295
views
iOS Charts: Adding fill color below a line in Version 4
I am updating to iOS Charts version 4. Adding the fill color below a line in a line chart seems to have changed because I get the error:
The old approach that worked for me...
...
2
votes
0
answers
212
views
import Charts conflicts with cocoa pod library's name
I am trying to use Apple's Swift Charts (iOS 16 only) but it can't compile, I presume because the import statement is interpreted as targeting this library: https://github.com/danielgindi/Charts (that ...
1
vote
1
answer
414
views
How to fix iOS Charts Bar Chart X Axis labels Duplicating and bleeding
I am trying to display a bar chart using this library with months as the X-label. However, the x labels seem to be duplicating and "bleeding" to the next columns especially when I scroll. ...
1
vote
2
answers
2k
views
How to draw a line in line chart for single value in Charts(IOS)
I need to draw a single value in line chart. Currently i am using ios-charts library for line graph purpose.
The data will be varied some times i'll get the single data inside the data set at that ...
0
votes
1
answer
434
views
How to implement this stacked line chart in MPAndroidCharts or iOS-Charts
I have a number of charts/graphs created with the ported MPAndroidCharts project iOS-Charts by DanielGindi but I'm getting a request and I'm just not sure it's technically possible with things as they ...
0
votes
0
answers
676
views
how to show all x label charts ios?
I make a custom numbering label, everything works great. the problem is when the number of entries is less than X-axis maximum, the chart doesn't show any lines.
lineChart.data = data
let ...
1
vote
0
answers
40
views
Swift Chart with multiple chart lines only displays the last line on the chart [duplicate]
I'm using the Swift version of the 'Charts' framework in iOS ( https://github.com/danielgindi/Charts ) to chart a series of lines. If I chart any one of the lines, it works fine.
But if I attempt to ...
1
vote
1
answer
176
views
iOS Charts: Where are the values actually coming from?
I have the following Xaxis formatter:
extension ChartXAxisFormatter: IAxisValueFormatter {
func stringForValue(_ value: Double, axis: AxisBase?) -> String {
guard let ...
2
votes
2
answers
1k
views
iOS Charts Line Chart X Axis values repeated
I have multiple data points for each month:
And I get the x-axis of my graph repeated like Feb Feb Feb Mar Mar Mar Mar
Each data point is important because it reflects how long something took them on ...
2
votes
0
answers
1k
views
iOS Charts Line Chart not selecting values on tap/drag in SwiftUI - Latest Release 4.0.2
What did you expect to happen?
When I tap or drag across the chart I expected it to select all the entries one-by-one.
What happened instead?
However, it only selects the values on the far right. ...
0
votes
1
answer
416
views
iOS Charts combined chart only able to access some entries through chart functions
With the new 4.0 update in iOS Charts, I have redone all of my charts, including changing a lot of them to CombinedChartViews. however, now I am running into a very weird issue with accessing the ...
0
votes
0
answers
264
views
How to update the Chart view when button is touched
I have a Chart that shows the Euro price for each candle and m3 candles, so I want to change it when the user touch the button for example if its in EURO to change it to m3
Library used: danielgindi/...
2
votes
0
answers
683
views
iOS Charts: how to set a specific background color for every data set of a bar chart?
I'm using Daniel Gindi's Charts library implementing a bar chart on iOS. My chart has several data sets. I'm able to set a specific color for every value of a bar.
let dataSet = BarChartDataSet(...
3
votes
2
answers
414
views
iOS Charts Github :: Spacing
I'm using ios-charts to build a line chart and have been customizing it's design. However I'm having some issues with changing some settings/designs right now. This is what it currently looks like.
I ...
1
vote
1
answer
1k
views
Is it possible to always set 0 in the center of Charts's Y-axis with swift charts lib?
According example image I want to create my chart like that. My data entries have both positive and negative values, I want to set 0 in the middle of y-axis everytime.
Is impossible to do that?
Ps. I ...
0
votes
1
answer
906
views
Bar chart xAxis grid lines are in centre instead besides
I spent more than half of my day on it and unable to figure out solution
drawing bar chart using Charts pod facing two problems
Wanna Corner radius bars as mentioned in required Image
wanna bars ...
0
votes
1
answer
498
views
Can I show all the markers using iOS charts?
Can I show all the markers without clicking on a bar?
currently, I need to tap on any of the bar and it'll only show the one that is clicked. I'm trying to add a marker on each of the green bar and ...
0
votes
0
answers
429
views
Identical values on the x-axis of charts
I am using the Charts to plot graph.Getting correct value at initially ,but when start to zoom graph, some values on the X-axis becomes identical.
have written the code like this.
self....
0
votes
1
answer
139
views
ios-charts: Can Selecting A Node Trigger A Labels Text To Change?
I am using ios-charts in swift language. I'm wanting to show more data about each node when they are selected. A marker wouldn't have enough space for all the info I am wanting to display so I am ...
0
votes
1
answer
874
views
Swift with ios-charts library,How to set the size of icons above bars in BarChart?
using Charts library, I have a view with shows image or initials of a name up to data inserted. I'd like to use this view as image on top of bars. Since it is not an age, I have to convert it to ...
-1
votes
1
answer
152
views
Is it possible to hide the colors of tiles in chartview
Am using danielgindi charts library and i want to hide the tiles at the corner of chart view image attached below
I tried and managed to hide the strings by setting empty string but couldn't find ...
0
votes
2
answers
351
views
How do I take away the yellow marker from my LineChartView? | iOS charts
I have created a program with a view that displays a graph. I have done this using a LineChartView from the pod 'Charts'.
Below is a picture of what my graph looks like.
How do I disable the yellow ...
1
vote
1
answer
864
views
Set the maximum of the Y-Axis of a LineChartView | pod 'Charts'
I have created a LineChartView using the 'Charts' pod.
I have made the plotted line follow a function (f(x) = ax^2) where the value 'a' is being randomized as soon as the user touches the ...
0
votes
0
answers
322
views
How do I add values to the Line Chart? Pod: 'Charts' in swift
let chartView = LineChartView()
var lineChartEntry = [ChartDataEntry]()
for i in 0...100{
let value = ChartDataEntry(x: Double(i), y: Double(i*i))
...
0
votes
0
answers
159
views
Swift Charts Candle chart does not correctly showing
I am using th swift Charts library. I'm trying to show a candle chart but it does not correctly showing data.
After running it will be show just one item but if i will zoom in it will be show all ...
1
vote
1
answer
817
views
How to select pie chart slice by default in Charts library
Am using Pie chart in, Charts ios library. I want to know, how can i select first slice by default when it Pie chart loads.
I found this chartView.highlightValue(x: 45, dataSetIndex: 0). But this code ...
4
votes
2
answers
2k
views
Swift ios : Implement scroll on Bar chart
Tried to implement scroll on Barchart using scale x to 2 for zoom in. But the issue is the x-axis values are not center-aligned with Bar chart.
Labels count is based on day and month values.
...
0
votes
1
answer
425
views
MacOs Swift bar Charts not responding to click with chartValueSelected
I am using Charts by Daniel (https://github.com/danielgindi/Charts) to create a bar chart (MacOS). To make this simple, the demo bar chart example within the Master branch does not respond to the user ...
-1
votes
1
answer
284
views
iOS Charts - Labelling Columns
In an iOS Charts bar chart I have no problem applying the Y numbers to the columns:
for i in 0..<dataPoints.count {
let dataEntry1 = BarChartDataEntry(x: Double(i) , y: self.percentageAmount1[...
0
votes
2
answers
789
views
highlightValue not working in chart with CombinedChartView :: Display marker programmatically is not working :: ChartIssue :: iOS Swift :: DanielGindi
Here is what i am doing!
chart.highlightValue(x: timeStampValue, dataSetIndex: totalCount)
==> In the above line,
timeStampValue is x axis value which i have set while filling up the array.
...
1
vote
0
answers
125
views
Display Discontinuous Line chart in iOS Charts
I am using iosCharts Framework for desiging Line and Bar charts in iOS application.
I have a requirment of displaying the discontinuous line chart.
Is it possible in iOSCharts framework. If Yes can ...