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

Labels on Mac OS X application : place and title #1972

Closed
satan87 opened this issue Dec 16, 2016 · 1 comment
Closed

Labels on Mac OS X application : place and title #1972

satan87 opened this issue Dec 16, 2016 · 1 comment

Comments

@satan87
Copy link

satan87 commented Dec 16, 2016

Hello,

I'm trying to place labels on a chart, with specific title but so far i have no luck.

I use this to display the labels
self.barChartView.xAxis.drawLabelsEnabled = true

and i got this
image

What i would like is for the label to be just under each bar.
i also would like to rename the labels with the right date.
In my example, not from 0 to 18 but from 1995 to 2016.

Any idea how to do this please ?

thanks,
Nicolas

@liuxuan30
Copy link
Member

  1. xAxis.labelPosition = XAxisLabelPositionBottom;
  2. use valueFormatter to format 0-18 to 1995-2016.
    You should check out ChartsDemo first pal

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

No branches or pull requests

2 participants