I want to draw a line chart, displaying data from a database read. I use the X-axis to record time, I want the chart to support pan and zoom.
I use core plot, I created one demo, but it gives 4 errors. The other demo work the same wrong. I use Xcode 4.3.3 and iOS 5.1 SDK.

If you want to allow only horizontal scrolling (and/or zooming) in Core Plot, check out this answer by Jay from another question. Here’s the code from his answer:
Use this to allow only horizontal scrolling/panning:
Use this to allow only horizontal zooming:
About the errors you’re getting: they don’t really seem to be directly related to Core Plot. They appear because you haven’t declared the ivars in your header file. (Use of undeclared identifier _titleFont, etc)