-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Problem with Formatter #1779
Comments
Not sure how it is in Objective-C, but in Swift you can use |
Thanks patreu22.... I tried this:
But.... fatal error: PieChart has no XAxis: By the way...i'm using swift 3... the demo code is in obj-c(i don't know why its not updated). |
Sorry, I overread the things about Objective-C haha. Does |
Perfect, patreu22. Thanks so much! |
Hi there! I'm facing this issue to format the value printed inside of my Pie Chart and i wasn't able to figure out how to do this:
My chart is printing the values with decimal points but i need Int instead.
I call the
func setChart(dataPoints: [String], values: [Double])
with an converted Int to Double for de values. It works, but a want to get rid of the decimal chars. I now it must be done with a formater, so i found this in the PieChartViewController.m demo.This is all i needed so i tried to replicate this converting to swift 3 since it's Obj-C and changing the numberStyle. Everything doing fine til i reach the last line. The newest dataset takes an IVALUEFORMATTER instead of NSNUMBER. How do i set this Chart's IVALUEFORMATTER since its don't have the properties like NSNUMBER?
I'll be glad for any help!
The text was updated successfully, but these errors were encountered: