Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support showing label for xAxis in LineChart #170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bigearsenal
Copy link

Description

Add ability to label xAxis in ChartView

LineView(
    data: [8,23,54,32,12,37,7,23,43],
    xAxisData: ["10-01-2013", "10-02-2013", "10-03-2013", "10-04-2013", "10-05-2013", "10-06-2013", "10-07-2013","10-08-2013","10-09-2013"], // New field
    title: "Line chart",
    legend: "Full screen"
)

Motivation and Context

In LineChart the data may contain not only yAxis but may contain xAxis that represents, for example, date of data

How Has This Been Tested?

Tested using examples project

Screenshots (if appropriate):

Simulator Screen Shot - iPhone 8 - 2020-10-20 at 19 08 12

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (Updating Documentation, CI automation, etc..)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@KGALLET
Copy link

KGALLET commented Dec 12, 2020

Any chance that this PR would be merged ?

@jmuthialu
Copy link

We are also in the process of selecting chart libraries and this is one of the libraries we are considering. I could not find a way to format xAxis labels (eg: date) and I find this PR probably aims to solve the issue. Can you guys confirm if there is a way to format xAxis labels or this PR is the way to go?

emuwakwe added a commit to emuwakwe/ChartView that referenced this pull request Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants