7 Mar 2012 4:52 PM #1
Sencha Touch Charts 2.0 Beta Now Available
Sencha Touch Charts 2.0 beta is now available for download:
Version 2.0 beta is compatible with Sencha Touch 2.0 and contains improvement in performance, a new TreeMap visualization, and a new animation package.
Please try it out and provide feedback.
Sencha Product Management
7 Mar 2012 6:29 PM #2
Big thanks for all your hard work and for releasing this, Sencha Touch v2 Final is awesome but really need the charts too !
Now all that is missing is the Linux download for the v2 SDK tools.... but in saying that its far less important than having charts.
7 Mar 2012 7:14 PM #3
7 Mar 2012 7:42 PM #4
Minor issue on examples/index.html
WordMap example links to "examples/WordMap/index.html" but link is actually "examples/Wordmap/index.html" (m lower case). So on case-sensitive file systems the link is broken, even when serving up via a web server such as Nginx.
Navigating to the example directly works fine.
8 Mar 2012 6:36 AM #5
Status of the bundled Sencha Touch code
Great to see this materialise
I guess these limitations are already known, but things I've found so far are:
1) I notice that it needs to run with its own bundled copy of Sencha Touch 2 since it throws exceptions if loaded with the recently released Sencha Touch 2. Is the intention to release this product alongside an updated Sencha Touch 2? Presumably we must treat this bundled Sencha Touch 2 as a new beta too?
2) No event support yet.
3) Only the canvas engine engine is present.
8 Mar 2012 8:28 PM #6
Interesting points Mike, I also had a look into this.
Lines of code:
Thus we can conclude that "sencha-touch-debug.js" in the Charts beta is actually closer to a full build like "sencha-touch-all-debug.js" in Touch v2 Final.
If you use a decent diff viewer between Charts "sencha-touch-debug.js" and Touch "sencha-touch-all-debug.js" you'll find nearly all of the differences are:
- touch missing annotations (e.g. //<feature, //<debug etc)
- touch turns dynamic loading OFF by default (interesting)
- some other insignificant differences
If you include sencha-touch-all-debug.js from the Sencha Touch v2 final release in the Touch Charts examples instead of sencha-touch.js all the examples appear to work OK from my brief testing.
Therefor I conclude there is an issue with dynamic loading, not a special build of Sencha Touch. And I am looking into this further so I can use dynamic loading with Touch Charts.
9 Mar 2012 12:55 AM #7
I have Touch Charts v2 Beta working using dynamic module loading with the stock Sencha Touch v2 Final sencha-touch-debug.js, also using dynamic module loading (not the -all build).
There were just a few minor issues. 2 missing requires in class definitions. And a assignment of a dependent classes member to a class member in the class definition object literal, before the requires for the class had executed, so I moved this one to the class after definition callback.
Although there are only a few lines that have been changed sorry my editor strips trailing whitespace and tabs automatically on saving so there are a bunch of whitespace-only line changes in the diff too.
Moving on to more exciting things with Touch Charts now I have it working with my dev environment =)
On Linux and probably Mac too you can apply the patch from the unzipped Touch Charts directory in terminal with the command "patch -p1 -i path/to/patch.diff.txt". Windows users - your on your own.
9 Mar 2012 1:19 AM #8
ferrets and events
BTW, the event handling I'm missing is the ability to detect touch events on Sprites. This is clearly present in some of the chart examples, but I notice that the event handling example in the Draw guide fails.
Ah, but it also fails in Charts 1...
OK, moving on, I see that charts handle their own events through the interaction, getItemsForPoint logic implemented in chart/interactions/Abstract and chart/Chart and the series codes. Does this mean there has never been any generic event logic designed for Sprites?
Last edited by gmp26; 9 Mar 2012 at 9:07 AM. Reason: further experimentation
10 Mar 2012 10:33 PM #9
I added the charts to my project, and before even creating a chart (just including the scripts) I got this error. Known issue?
Uncaught TypeError: Cannot read property 'pseudos' of undefined
10 Mar 2012 11:48 PM #10
Thread Participants: 22
- email@example.com (1 Post)
- hallikpapa (3 Posts)
- chetan.nr (1 Post)
- gmp26 (3 Posts)
- superstructor (6 Posts)
- jimmylu98 (1 Post)
- zhangbei (1 Post)
- swearin (1 Post)
- hundare (1 Post)
- mike lebowski (2 Posts)
- Manasi Sakhare (1 Post)
- cromandini (1 Post)
- gustavo.galan (1 Post)
- clipitar (1 Post)
- jason rogers (2 Posts)
- dsn2012 (2 Posts)
- atifr (1 Post)
- zarkasias (1 Post)
- acaruso (1 Post)
- GUPTA.221 (1 Post)
- eduardohertz (1 Post)
- verunder (1 Post)