How to shift data on xAxis to right on Daniel Gindi charts?
NickName:Subhankar Ask DateTime:2018-12-18T19:01:52

How to shift data on xAxis to right on Daniel Gindi charts?

I have a data chart DataChart would like to shift data of xAxis along with data lines to right by certain value.

DataChart Screen Shot

Screen Shot

Please help me out which property to use from the library that would be able to solve this purpose.

I am using Daniel Gindi line charts for this purpose.

Copyright Notice:Content Author:「Subhankar」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53831575/how-to-shift-data-on-xaxis-to-right-on-daniel-gindi-charts

Answers
Alex 2018-12-23T22:18:23

I use this to create an offset to the left of my chart\n\nmyChart.xAxis.spaceMin = 10\n\n\nmaybe it'll do for you\n\nAnd to align the yAxis lines in front of the labels, i think you could remove the background grid and create your own limit lines if you don't find any other way around",


More about “How to shift data on xAxis to right on Daniel Gindi charts?” related questions

How to shift data on xAxis to right on Daniel Gindi charts?

I have a data chart DataChart would like to shift data of xAxis along with data lines to right by certain value. DataChart Screen Shot Please help me out which property to use from the library t...

Show Detail

date and time on x axis in ios charts by Daniel Gindi

how can i add both time and date on x axis in ios charts by Daniel Gindi? Thanks in advance for the answers! extension ChartXAxisFormatter: IAxisValueFormatter { func stringForValue(_ value: Dou...

Show Detail

Show time on x axis of the chart using Charts library by Daniel Gindi

I am using Charts library by Daniel Gindi: https://github.com/danielgindi/Charts For my project, I need to replace the x axis with time that shows only hours and minutes (HH:mm). I've created the

Show Detail

Is it possible to use iOS Charts (Daniel Gindi) to generate graphs in pdf document on iOS

I am using iOS Charts (Daniel Gindi) to generate graphs in an iOS app and I want to be able to generate a PDF report with those graphs included in the body of the report. Can anyone explain how to...

Show Detail

iOS Charts(Daniel Gindi) - how to set dual y axis dual graph lines in Swift

I am using Charts (Git Repo of Daniel Gindi's). Here is my code for single y axis single line chart: When I try to add a second line to the y axis it throws the error 'Cannot convert value of type '

Show Detail

Swift Charts with logarithmic axis

I want to draw a plot with a logarithmic X-axis. This is possible with CorePlot. However, the Charts package from Daniel Gindi danielgindi/Charts seems to fit better in a Swift environment. Unfortu...

Show Detail

How to set a custom x axis 0 label in charts ios

I am using Charts by Daniel Gindi How can I set a String 0 label on x Axis? I want it to show "Now" instead of a Date type. I've seen the function that helps to format one particular labe...

Show Detail

After a graph from "Charts by Daniel Cohen Gindi" graphs itself, a UIButton on the screen is no longer selectable

I am using the open-sourced Charts by Daniel Cohen Gindi: https://github.com/danielgindi/Charts I have a pie chart on my screen which graphs itself like this: //set pie chart data graphView.data =

Show Detail

Error loading bar chart using charts ( in swift)

I am using the Charts framework (by Daniel gindi). It was working fine till the latest pod re-install. Now, i get a EXC_BAD_ACCESS error when i try barChartView.data = BarChartData(...) i was abl...

Show Detail

iOS Charts: reduce height of grids in charts

Hello, I want to reduce height of grids in chart, how can I? I am using iOS-Charts(Daniel Gindi).

Show Detail