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

xAxis label is croped when using custom valueFormatter #3485

Closed
fvisticot opened this issue Jun 3, 2018 · 1 comment
Closed

xAxis label is croped when using custom valueFormatter #3485

fvisticot opened this issue Jun 3, 2018 · 1 comment

Comments

@fvisticot
Copy link

I'm using an HorizontalBarChartView

I have set a value formatter:
[cell.chartView.xAxis setValueFormatter: self];

The formatter is correctly triggered

The pb is that the String label returned by the formatter is cropped and the label is not correctly displayed.

How to recompute labels size/width on the xAxis after calling the value formatter ?

@liuxuan30
Copy link
Member

there are functions getting the size of label before render: open override func computeSize()

look at the implementation to know why it does not compute correctly.

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