Core-plot and NSDate (iPhone)

I want to build a line graph where the x axis is defined as the number of days between two dates, and the y axis is a value that changes on each day.

I can plot the y values ​​as NSNumber, but I don't know how to set the ranges and markup on the x axis. I looked at the date example in the "examples" directory of the main story distribution, but found it a bit confusing.

Does anyone know a tutorial or sample code that might interest me in this regard?

Thanks in advance.

+3
source share
1 answer

, : .

Core Plot CPTimeFormatter, . NSDateFormatter , , . labelFormatter CPTimeFormatter, .

, . oneDay = 24 * 60 * 60.

24 * 60 / * 60 / = 86400 /.

+5

Source: https://habr.com/ru/post/1749038/


All Articles