Using both String and Date on axis charts ios
NickName:Lilya Ask DateTime:2020-04-01T18:17:45

Using both String and Date on axis charts ios

I am using Charts library by Daniel Gindi

On the X axis of the line chart, I want to show 3 values (string, date, date). 1) Is it possible to format only one particular label into a string type value? 2) Is it possible at all to show different value types on one axis?

I've tried using a function getFormattedLabel(index: Int) but I haven't seen any examples of this function being used. Also, I can't find anything in documentation (it's for Android since there is no documentation for iOS): https://weeklycoding.com/mpandroidchart-documentation/

I want the axis to look like this: Click here for the example of X axis

Thanks!

Copyright Notice:Content Author:「Lilya」,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/60968612/using-both-string-and-date-on-axis-charts-ios

More about “Using both String and Date on axis charts ios” related questions

Using both String and Date on axis charts ios

I am using Charts library by Daniel Gindi On the X axis of the line chart, I want to show 3 values (string, date, date). 1) Is it possible to format only one particular label into a string type v...

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

How to create a Chart with Date / Time on the bottom Axis using iOS Charts Library?

I am currently working with the iOS Library Charts and have some issues to implement a TimeLine for the x Axis. Library Link: https://github.com/danielgindi/Charts I have a List of Objects as ...

Show Detail

ticks below x-axis (iOS Charts)

I want to make ticks below the x-axis where the date labels (3.6., 7.6., 12.6. 17.6, 21.6., 26.6.) are (see image below). I'm using the iOS Charts library (https://github.com/danielgindi/Charts). I

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

Add title for x & y Axis in ios charts

Hi everybody i'm working with iOS Charts iOS Charts danielgindi here i'm struggling to add a title / units for x & y axis values. help me in this image in Yaxis having the title / unit like ...

Show Detail

Repeating values on x-axis for iOS Charts

I'm using the iOS Charts and I'm getting a repeating labels on my x-axis. I'm getting numerous answers (first, second, third) that I should set the granularity settings: xAxis.granularityEnabled =...

Show Detail

Vertical lines at X Axis iOS-charts

Maybe this is a simple question but I wanted to know how I can draw vertical lines under X Axis and upper labels in X Axis in iOS-charts. (See the pic, like red lines) UPDATE: the library I'm usin...

Show Detail

xAxis values on both sides of Line Charts

I am using the iOS Charts library in my application. Charts are plotted correctly but the X axis values are shown on both sides in Line Charts. Is there any way to hide it or remove it ?

Show Detail

Adding Attributed Text on X axis Label in bar graph using iOS charts

I am trying to implement bar graph using iOS charts library. https://github.com/danielgindi/Charts. I want to add J 2018 as x-axis label where "J" is bigger font and 2018 is in lower font...

Show Detail