Questions tagged [ios-charts]
ios-charts is a powerful chart library for iOS, written in Swift.
844
questions
0
votes
0
answers
34
views
How can I pass dictionary data gotten from API request into iOS charts?
edit: I could get the keys and values separately like this. am I on the correct way ?
keys, values
how can i get these results in the console passed into my charts x(dates) and y axis(rates) ?
Console ...
0
votes
1
answer
39
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
53
views
How to prevent BarChartView labels from overlapping?
I am using the BarChartView from the iOS-Charts library. However, when I stack the bars, sometimes the labels for these bars overlap. Is there a way to prevent this from happening? Some ideas I had:
...
0
votes
0
answers
37
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
0
answers
94
views
Error in Github Actions - CompileSwift normal arm64 (in target 'Charts' from project 'Charts')
I am using Charts in my app and I am trying to run a CI/CD pipeline in Github Actions. Charts is added to the project via SwiftPackageManager.
Currently, the app builds and runs on my local machine, ...
0
votes
0
answers
41
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
28
views
Event markers in Charts time series Graph Plot
I am plotting two time series line charts in the iOS version (4.1.0) of Charts (https://github.com/danielgindi/Charts). The two series each have their own Y-Axis setup. I would like to annotate the ...
0
votes
0
answers
54
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 ...
0
votes
2
answers
117
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
44
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
64
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
0
answers
65
views
Customized view in place of labels in Line Chart iOS
I am using this chart library to draw a line chart in swift. But the problem is I need to draw a custom view on x-axis instead of labels for values, please refer the attached image for reference.
So ...
0
votes
0
answers
70
views
Always show Markers for PieChart (ios-charts)
I'm using Chart third party framework on my project. I'm using pieChartView with custom Markers(Image Marker). When I selected pie, highlighted pie value and showed marker. But I want always show all ...
0
votes
1
answer
147
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. ...
0
votes
0
answers
36
views
Is it possible to add an entry before the last entry of a line chart and then sort the entries for the line not to go weirdo?
Im aware that you can add an entry to the chart using the .addEntry as in
chartView.data?.addEntry(ChartDataEntry(value: y, xIndex: x), dataSetIndex: 0)
but if I do that on a line chart the line will ...
0
votes
0
answers
55
views
iOS Charts empty center space
When displaying a line chart I'm trying to move the data points from the edges and into the center but cannot seem to stop them from hugging the edges of the graph.
//Set data
let dataSet = ...
0
votes
0
answers
134
views
Draw two or more markers at same time (library Charts)
How can I display two or more markers on a graph at the same time?
This is part of my code for this task
chartView.data = LineChartData(dataSets: [dataSet, dataSetForecast, dataSetUpper, dataSetLower])...
0
votes
0
answers
55
views
iOS Charts Occasional Crash on custom MarkerView Render
I'm using iOS Charts and love it but I am getting an occasional crash on custom MarkerView render. Currently using Charts 3.0.6 (as 4.0.3 has a bug where the delegate method isn't fired every time for ...
2
votes
2
answers
908
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
0
answers
75
views
iOS Chart - How transform only chart area and not all frame
I am trying to use iOS Chart in horizontal mode in Portrait screen.
Please see below the swift code (not working):
w = chartView.frame.size.width
h = chartView.frame.size.height
chartView.transform = ...
0
votes
1
answer
262
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
266
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
37
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
0
answers
127
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 ...
0
votes
0
answers
112
views
Is it possible to start x in x-axis with 0.5 in Charts library with Swift?
For my application, I use Charts (danielgindi/Charts) for implement my chart view.
My problem is 0 in Y-axis is overlapping with 24-03 in X-axis.
I want to move first x value to 0.5 in x-axis. Is it ...
1
vote
2
answers
820
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 ...
0
votes
0
answers
210
views
User interaction line ios-charts
I want to drag a circle along the line of the graph.
Please look at this screenshot?
I use (Charts)[https://github.com/danielgindi/Charts] v.3.6.0.
I see similar case here:
Interactive Tracking with ...
0
votes
0
answers
296
views
Line chart view - highlightValue not returning correct position
I'm working on a line chart view.
What I want to achieve is when the chart comes up, I need to display a view on the first item by default. So I am using "highlightValue", but the position ...
1
vote
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
258
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
146
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/...
1
vote
0
answers
418
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
212
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
457
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
277
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 ...
1
vote
0
answers
270
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
87
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
340
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
117
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
1
answer
121
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
288
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
187
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
102
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
455
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
1
answer
991
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
309
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
157
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
381
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
69
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 ...
0
votes
0
answers
172
views
Center alignment of iOS Charts
I am using iosCharts Framework for desiging Line and Bar charts in iOS application.
I have a requirment of displaying the charts from Center instead of left.
Is it possible in iOSCharts. If Yes can ...