Charting API?

  • I want to add some simple bar graphs and pie charts to my project.  Is
    there an apple api for charting or do you need to use a 3rd party
    product?

    Thanks In Advance
  • On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <cps...> wrote:
    > I want to add some simple bar graphs and pie charts to my project.  Is
    > there an apple api for charting or do you need to use a 3rd party
    > product?

    Apple's framework is private.  I've been toying with SM2DGraphView,
    it's pretty nice:
    http://developer.snowmintcs.com/frameworks/sm2dgraphview/

    --Kyle Sluder
  • Google Offers an Chart API, you could include it with Webkit.
    But i think thats not that what you searched.

    Am 27.02.2008 um 20:14 schrieb Chris Schmitt:

    > I want to add some simple bar graphs and pie charts to my project.
    > Is there an apple api for charting or do you need to use a 3rd party
    > product?
    >
    > Thanks In Advance
  • There's also Narrative: https://sourceforge.net/projects/narrative/

    I don't know if it's any good but it's Cocoa.

    --------
    S.O.S.

    On 28/02/2008, at 6:14 AM, Chris Schmitt wrote:

    > I want to add some simple bar graphs and pie charts to my project.
    > Is there an apple api for charting or do you need to use a 3rd
    > party product?
    >
    > Thanks In Advance
  • > On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <cps...>
    > wrote:
    >> I want to add some simple bar graphs and pie charts to my project.
    >> Is
    >> there an apple api for charting or do you need to use a 3rd party
    >> product?

    I've been using Chartdirector:

    http://www.advsofteng.com/

    Not Cocoa, but easily usable and very powerful.

    Cheers,
    Dix
  • >> On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <cps...>
    >> wrote:
    >>> I want to add some simple bar graphs and pie charts to my project.
    >>> Is
    >>> there an apple api for charting or do you need to use a 3rd party
    >>> product?
    >
    > I've been using Chartdirector:
    >
    > http://www.advsofteng.com/
    >
    > Not Cocoa, but easily usable and very powerful.
    >
    > Cheers,
    > Dix

    Dix, thanks so much for the tip - I had never heard of this package
    before (the company appears to be located in Hong Kong. I just looked
    at their web site, and it would appear they have a nice suite of
    graphs.

    What I glean from the web site is as follows:
    - for MacOS X, they deliver a universal library and header files
    - the library is C++ (I would imagine it would integrate into a cocoa
    app fairly well)
    - single user price is $99 (much more than the DataGraph library that is $29)
    - redistribution license is $749. This is the only library I have
    found that offers redistribution.)

    All in all looks very promising.

    David
  • One other library worth keeping an eye on is QWT
    (http://qwt.sourceforge.net/). It's a very impressive 2D and 3D
    plotting library for Trolltech's qt. There is a qt for mac, but it's
    Carbon based so I don't think it's practical to use QWT with Cocoa,
    but Trolltech is investigating migrating Qt-Mac to Cocoa (because of
    the lack of 64-bit support in Carbon) at which point, QWT would become
    pretty awesome.

    barry

    On Thu, Feb 28, 2008 at 8:15 AM, David Hoerl <dhoerl...> wrote:
    >>> On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <cps...>
    >>> wrote:
    >>>> I want to add some simple bar graphs and pie charts to my project.
    >>>> Is
    >>>> there an apple api for charting or do you need to use a 3rd party
    >>>> product?
    >>
    >> I've been using Chartdirector:
    >>
    >> http://www.advsofteng.com/
    >>
    >> Not Cocoa, but easily usable and very powerful.
    >>
    >> Cheers,
    >> Dix
    >
    > Dix, thanks so much for the tip - I had never heard of this package
    > before (the company appears to be located in Hong Kong. I just looked
    > at their web site, and it would appear they have a nice suite of
    > graphs.
    >
    > What I glean from the web site is as follows:
    > - for MacOS X, they deliver a universal library and header files
    > - the library is C++ (I would imagine it would integrate into a cocoa
    > app fairly well)
    > - single user price is $99 (much more than the DataGraph library that is $29)
    > - redistribution license is $749. This is the only library I have
    > found that offers redistribution.)
    >
    > All in all looks very promising.
    >
    > David
    >
  • On Feb 27, 2008, at 2:14 PM, Chris Schmitt wrote:

    > I want to add some simple bar graphs and pie charts to my project.
    > Is there an apple api for charting or do you need to use a 3rd party
    > product?

    Regarding the Google Charting API that was mentioned, you can take
    simpler route and avoid the need to embed a WebView by just querying
    for a chart and loading the result into an NSImage.

    The idea comes from Philippe Mougin, and can be viewed at: <http://pmougin.wordpress.com/2007/12/10/google-chart-api-fun-with-cocoa-and
    -f-script/
    >.  He focuses on using F-Script to accomplish the task, but it's
    very easy to see the general Cocoa approach.

    - Sean.
  • On Feb 27, 2008, at 2:14 PM, Chris Schmitt wrote:

    > I want to add some simple bar graphs and pie charts to my project.
    > Is there an apple api for charting or do you need to use a 3rd
    > party product?

    hi-

    You can use Vvidget Code (http://www.vvi.com/products/vvidgetcode)
    which now has an IB 3.0 palette and a four-way framework for Leopard
    (http://www.vvi.com/news/2008/0215vvidget.html) .

    thanks!-

    -lance
  • I'll add my recommendation for SM2DGraphView as well. The docs are
    good and the code works well.

    --
    Jiva DeVoe
    http://www.random-ideas.net

    On Feb 27, 2008, at 4:56 PM, "Kyle Sluder" <kyle.sluder+<cocoa-dev...>
    > wrote:

    > On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <cps...>
    > wrote:
    >> I want to add some simple bar graphs and pie charts to my project.
    >> Is
    >> there an apple api for charting or do you need to use a 3rd party
    >> product?
    >
    > Apple's framework is private.  I've been toying with SM2DGraphView,
    > it's pretty nice:
    > http://developer.snowmintcs.com/frameworks/sm2dgraphview/
    >
    > --Kyle Sluder
    >
  • When I looked into this last fall I decided I liked the look of
    DataGraph and bought a license, but then I ran into  trouble
    incorporating it into a garbage-collected app and started writing my
    own.  Mind you, that could have been me and my Fortran IV - imprinted
    brain, but now I too am reevaluating the situation.  GC is no longer
    relevant as I'm using core video buffers, but now I'm worried about
    the long-term viability of all the libraries mentioned (DataGraph,
    SM2DGraphView, Vvidget,  Google Chart, Narrative etc.).  I'm inclined
    to go with SM2DGraphView as the source code is available and
    understandable.
    -Rob

    On 29-Feb-08, at 6:34 AM, Jiva DeVoe wrote:

    > I'll add my recommendation for SM2DGraphView as well. The docs are
    > good and the code works well.
    >
    > --
    > Jiva DeVoe
    > http://www.random-ideas.net
    >
    > On Feb 27, 2008, at 4:56 PM, "Kyle Sluder" <kyle.sluder+<cocoa-dev...>
    >> wrote:
    >
    >> On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <cps...>
    >> wrote:
    >>> I want to add some simple bar graphs and pie charts to my
    >>> project.  Is
    >>> there an apple api for charting or do you need to use a 3rd party
    >>> product?
    >>
    >> Apple's framework is private.  I've been toying with SM2DGraphView,
    >> it's pretty nice:
    >> http://developer.snowmintcs.com/frameworks/sm2dgraphview/
    >>
    >> --Kyle Sluder
    >> ___________________________________________
  • On Mar 1, 2008, at 2:35 AM, Robert Douglas wrote:

    > When I looked into this last fall I decided I liked the look of
    > DataGraph and bought a license, but then I ran into  trouble
    > incorporating it into a garbage-collected app and started writing my
    > own.  Mind you, that could have been me and my Fortran IV -
    > imprinted brain, but now I too am reevaluating the situation.  GC
    > is no longer relevant as I'm using core video buffers, but now I'm
    > worried about the long-term viability of all the libraries mentioned
    > (DataGraph, SM2DGraphView, Vvidget,  Google Chart, Narrative
    > etc.).  I'm inclined to go with SM2DGraphView as the source code is
    > available and understandable.
    > -Rob

    I strongly urge everyone who's interested to file an Apple bug report
    asking that they make their framework public, as it (apparently)
    produces some of the most beautiful graphs around. Beauty is *almost*
    the most important point here...

    Cheers!
    --Chris Ryland / Em Software, Inc. / www.emsoftware.com
  • On Mar 1, 2008, at 6:14 PM, Chris Ryland wrote:

    > On Mar 1, 2008, at 2:35 AM, Robert Douglas wrote:
    >
    >> When I looked into this last fall I decided I liked the look of
    >> DataGraph and bought a license, but then I ran into  trouble
    >> incorporating it into a garbage-collected app and started writing
    >> my own.  Mind you, that could have been me and my Fortran IV -
    >> imprinted brain, but now I too am reevaluating the situation.  GC
    >> is no longer relevant as I'm using core video buffers, but now I'm
    >> worried about the long-term viability of all the libraries
    >> mentioned (DataGraph, SM2DGraphView, Vvidget,  Google Chart,
    >> Narrative etc.).  I'm inclined to go with SM2DGraphView as the
    >> source code is available and understandable.
    >> -Rob

    As the developer of DataGraph, I am definitely planning on continuing
    to support the framework for a long time.  I try to be very responsive
    regarding any problems with the framework, and I have a bulletin board -
    http://www.visualdatatools.com/phpBB2/ where issues can be brought to
    my attention.  I'm curious to know if what could be wrong with GC and
    the DataGraph framework.

    DataGraph grew out of DataTank. I have worked on DataTank for a long
    time, so should have built up some trust regarding staying power. I
    keep up with current versions/updates to the system.  Sometimes this
    is surprisingly messy, for example because of changes in NSTableView
    and NSTokenField in 10.5.  I don't yet have a 64 bit version as part
    of the release, but I've gone through the code and it is 64 bit
    clean.  I can do a 64 bit version (quad binary) if there is interest.

    >> I strongly urge everyone who's interested to file an Apple bug
    >> report asking that they make their framework public, as it
    >> (apparently) produces some of the most beautiful graphs around.
    >> Beauty is *almost* the most important point here...

    My graph style tends to be "Tufte" like, with emphasis on publication
    quality graphs, but allow gradients, etc if you want to do flash.  The
    framework is paired with the application, and one way to think of it
    is that the application works as a "interface builder" and a way to
    test your work during debugging.  I don't know exactly what the
    GraphKit API looks like, or which Apple applications actually use it.
    The graphs don't quite look consistent between KeyNote, Shark, XRay
    and Activity monitor.

    David

    >
    > Cheers!
    > --Chris Ryland / Em Software, Inc. / www.emsoftware.com
  • On Mar 1, 2008, at 8:53 PM, David Adalsteinsson wrote:

    > I don't know exactly what the GraphKit API looks like, or which
    > Apple applications actually use it.  The graphs don't quite look
    > consistent between KeyNote, Shark, XRay and Activity monitor.

    KeyNote uses its on classes, Shark, Chud, Activity monitor and I
    believe XRay use GraphKit.

    Adhamh