• My iPhone OpenGL ES Blog
Apple iPhone
SparklinesClass
This is an Objective-C UIView subclass that generates a sparkline.
This is provided as-is but if you improve this, please let me have a copy.
This sample output shows some examples of the output.
(The yellow and green sparklines are the closing stock price of Apple (2/22-3/22).
How to use:
- Set up an NSArray or NSMutableArray of values to plot.
- Instantiate the SparklineClass with a drawing frame.
- Set the background color with: setBackgroundColorR:g:b:a:
- Set the foreground (plotting/stroke) color with: setForegroundColorR:g:b:a:
- Plot the array with: etSparklineWithPoints:andBordered:
- Use the instance view anyway you want.
See the example project for more info.
iPhone Color Picker
- 02/09/2009 - Added prior color selection, and navbar with button handling.
- 02/08/2009 -I needed a color picker for the iPhone so I threw this together. This is distributed as is, I just ask if you improve on it, please let me know. Thanks.


