Google
 

3/03/2007

SM2DGraphView - 1.4



This framework provides an NSView subclass which draws pie charts or graphs of lines and/or bars including axis labels. The SM2DGraphView class acts very much like an NSTableView or NSBrowser; SM2DGraphView takes responsibility for all of the drawing code but relies on a data source object to provide the specific lines and points to draw. A delegate object can also be assigned to a graph object to modify the behavior of the graph view.

Includes Interface Builder (IB) palette to easily add graphs to your nib files.


What's new in this version:

* Enhancements
o Added accessor to get the area of the graphpaper area (where the graph itself is drawn within all of the labels).
o Added accessors to get/set the title of the graph as an NSString or an NSAttributedString. Titles are drawn above the graph area.
o Non-ASCII graph symbols are now created as NSString from Unicode constants instead of cluttering up the InfoPlist.strings file.
o Changed the way bar graphs are drawn to use NSBezierPath and the CTGradient class.
o Added an override of the -print: method to make sure that SM2DGraphView and SMPieChartView objects are scaled down to fit on a single page if necessary. Added a "Print" button to the sample app to test this out.
o Changed the Xcode project configurations to have more options for what minimum OS version you are targeting. All of them build a Universal binary (except the Development target which builds only whatever you're compiling on).

* Bug fixes
o Fixed drawing the grid lines when the number of tick marks is 2 or more.


Website
Download SM2GraphView