ChartsOrg / ChartsOrg/Charts

Using both String and Date on axis charts ios

Open
#4,328 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

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:
![Снимок экрана 2020-04-01 в 13 07 03](https://user-images.githubusercontent.com/38262254/78138782-24085700-7430-11ea-9f92-7e88cd0a42d6.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.