I am trying to give float point into core-plot y axis value, it is not working. So is i need to give it as whole number instead of decimal number.If decimal number works please give me the sample code.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Many axis properties take an NSDecimal value. Core Plot includes a number of utility functions to make it easier to create them. You can see examples of the usage throughout the example programs. Look for
CPDecimalFromDouble,CPDecimalFromFloat,CPDecimalFromString, etc.For the plot data, you can provide any
NSNumberinstance. Core Plot supportsNSDecimalNumberas well and will use higher-precision calculations when drawing the graph, although this comes at a performance cost.