Are there any examples for how to draw a line chart in Core Plot on the iPhone?

后端 未结 2 1549
挽巷
挽巷 2020-12-18 13:15

Is there some sample code or a tutorial out there about how to draw a line chart using the Core Plot framework? I can\'t find anything using Google.

2条回答
  •  鱼传尺愫
    2020-12-18 13:37

    If you have downloaded the framework, go to the examples directory within your checked-out version. There are several examples there, including CPTestApp-iPhone (which demonstrates line, bar, and pie charts), CPTestApp-iPad (same, but for the iPad), StockPlot (which downloads stock charts and plots the line graphs for them), and AAPLot (which grabs Apple's stock price and plots it using an open-high-low-close chart).

    These examples are updated as the API changes, so they can be considered reliable sources to work from.

提交回复
热议问题