PDA

View Full Version : Analog Gauges



BruthaVoodoo
31 Mar 2012, 9:45 AM
Hey all,
I am looking into building a mobile app that will display vehicle diagnostic data. I am wondering on how I would include and external js library to handle the analog gauge graphics. (Would this be a good way of doing it?) Or would it better to draw the graphics via canvas tag maybe within sencha touch? The data would be real time like RPM's and MPH.

Any thoughts here would be great.

Thanks
Jason

mitchellsimoens
1 Apr 2012, 9:05 AM
It's all up to you. Touch Charts 2 is in beta form which also includes Ext.draw functionality. If you want to include another library just simply include the <script> tag or whatever it needs. Watch out for issues between the two and how to incorporate it into a ST component.

BruthaVoodoo
2 Apr 2012, 9:13 AM
Mitchell,

Thanks for the reply. How would I go about adding Touch Charts to my project (ST2)? Or should I say would be the best way to add it? Via script tag in the index.html? or via Ext.loader?

If i use the loader:

(current loader)

Ext.Loader.setPath({
'Ext': 'sdk/src',
});


Would become? (if i added the touch-charts to my current sdk dir)

Ext.Loader.setPath({
'Ext': 'sdk/src',
'Ext.charts': 'sdk/src/touch-charts.js'
});


Am i understanding how to do this correctly? And will this pull in the Ext.draw functionality which is what i am really after?

Thanks for your time.
Jason