Results 1 to 2 of 2
  1.    #1  
    Appstuh has created an HTML5 Canvas-based Graphing library for webOS developers (or any web dev for that matter).

    We have it in our GitHub repo (Appstuh's Libraries at master - GitHub).

    You can see an example of the code used to create the graph at How to use the Appstuh HTML5 Canvas Graph Library - Libraries - GitHub

    So far, all we have is a Line/Area map. This means it will show you the data in lines AND area. Technically, you could just change the fillStyle array to point to colors with 0 opacity (fully transparent) to make it a line-only graph.

    Check out the attached screenshot from an actual Pre showing the functionality the graph provides.

    Please note it is licensed AGPLv3 and if you modify the source code in any way (and distribute it), you must contact us with the modified version so we can decide whether or not to add it to the library.
    Attached Images Attached Images
    Arthur Thornton

    Former webOS DevRel Engineer at Palm, HP, and LG
    Former webOS app developer (built Voice Memos, Sparrow, and several homebrew apps and patches)
    Former blogger for webOS Nation and webOS Roundup
  2.    #2  
    And just like that, we have updated the library further.

    We also built a demo app that is currently in the process of being released to the web catalog and shortly thereafter, the App Catalog. You can view it at the Palm redirect URL (when it is available): http://developer.palm.com/appredirec...ppstuh.graphex

    You can get the source code now by going to Appstuh's webOS at graph-example-app - GitHub and downloading it.

    The graph library was updated to a new version (next version includes version numbering so we can better track it ), with line graphs now possible.

    The demo app does a good job explaining the line graph options. For a line graph, fillStyle is not used, so you can remove that line from the options.

    Hope somebody finds this useful.
    Last edited by Arthur Thornton; 08/16/2010 at 04:03 PM.
    Arthur Thornton

    Former webOS DevRel Engineer at Palm, HP, and LG
    Former webOS app developer (built Voice Memos, Sparrow, and several homebrew apps and patches)
    Former blogger for webOS Nation and webOS Roundup

Posting Permissions