Titanium and Charts
Hi,
Is there a way to plot charts and manage related gestures using titanium framework like apple iStocks native application?
Has someone tried to integrate charts in a titanium application for iphone/ipad?
Many regards in advance
12 Answers
-
Another great solution in javascript is to use the Raphael svg library with its Charting plugin
good luck
-
There is now a charts Ti-module for this :)
-
The best way I have found to add charts is by using a web view and then loading in a chart component like Google charts or a jquery plugin.
-
Is there another way than using webview? I'm developing an iPad app that displays some charts alongside of some feeds and putting the chart on a webview really disrupts the flow.
thx
-
Which would be better. Doing an HTTP request to an online service like Google Charts API and get an image returned that you could use natively in the UI? Or, using an on-device javascript chart library, like RGraph or RaphaelJS, embedded in a webview? What are the performance trade-offs? What are the flexibility considerations?
-
I am using RGraph charting library. Here is a sample implementation http://pastie.org/1601154 here i've passed the array of price data to generate a chart. for the complete documentation on RGraph visit www.rgraph.net. Hope it might help you.
-
Thanks… have you already tried it?
Is the user experience well?
are you able to manage in this way user gestures?
Is there an example in the web ?many thanks
-
Does ti support jquery without webview?
-
Any recommendations?
check out this page:
http://www.ajaxline.com/10-best-free-javascript-charts-solutionsNot sure if they will work in titanium
-
Google example…
http://chart.apis.google.com/chart?cht=p3&chd=s:hW&chs=250x100&chl=Hello|World
jQuery…
http://www.reach1to1.com/sandbox/jquery/jqchart/
-
Solutions:
- webview = nix good
- native embedding of google graphics = delay because transfer thrue net
- dynamic adding of views in views
- native with objectiv-C
My thougts are going in direction of topic 3.
-
I hope you help
https://marketplace.appcelerator.com/apps/2530?1603823144