ChartView icon indicating copy to clipboard operation
ChartView copied to clipboard

add support showing label for xAxis in LineChart

Open bigearsenal opened this issue 5 years ago • 2 comments

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)
  • [x] 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:

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

bigearsenal avatar Oct 20 '20 12:10 bigearsenal

Any chance that this PR would be merged ?

KGALLET avatar Dec 12 '20 18:12 KGALLET

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?

jmuthialu avatar May 15 '22 19:05 jmuthialu