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

Set images on xAxis on HorizontalBarChartView #4353

Closed
inigollamosas opened this issue Apr 28, 2020 · 2 comments
Closed

Set images on xAxis on HorizontalBarChartView #4353

inigollamosas opened this issue Apr 28, 2020 · 2 comments

Comments

@inigollamosas
Copy link

I dont see anywhere nothing like it, but just in case. Has anybody ever achieved such thing?

@tiagorc
Copy link

tiagorc commented Apr 30, 2020

have you tried icon while creating DataEntry?

BarChartDataEntry(x: <#T##Double#>, y: <#T##Double#>, icon: <#T##NSUIImage?#>, data: <#T##Any?#>)

@inigollamosas
Copy link
Author

For anybody coming up with this problem. The solution I found is to create a custom XAxisRenderer and add and UIImage on index position on drawLabels() method.

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