0

Is Sencha Touch Charts 1 compatible with Sencha Touch 2?

e.g.

I was hoping that this in an html (where ../touch is the Sencha Touch 2 release):

<title>Simple Animation with Sprites</title>
<script type="text/javascript" src="../touch-charts/sencha-touch-debug.js"></script>
<script type="text/javascript" src="../touch-charts/touch-charts-debug.js"></script>
<script type="text/javascript" src="app.js"></script>

And app.js containing:

Ext.application({
    name: 'Animation',
    requires: [
        'Ext.draw.Component'
    ],
    launch: function() {
        var titleVisible = false;

        var drawComponent = new Ext.draw.Component({
            items: [{
                type: 'circle',
                fill: '#EECC00',
                radius: 100,
                x: 200,
                y: 200
            }]
        });

        Ext.Viewport.add({
            xtype: 'panel',
            id: 'panel-container',
            fullscreen: true,
            layout: fit,
            items: [drawComponent]

        });

        drawComponent.surface.renderFrame();
    }
});

might give me a circle.

Instead I get an exception on line 339 of touch-charts-debug.js indicating that Ext.util.Observable does not exist.

Does this mean that Charts 1 is not compatible with Touch 2?

Narendra Jadhav
  • 10,052
  • 15
  • 33
  • 44
grumplet
  • 285
  • 2
  • 14

3 Answers3

1

No, they are not compatible.

Sencha have said that a beta release of Sencha Touch 2 Charts will be available within a few weeks.

rdougan
  • 7,217
  • 2
  • 34
  • 63
  • 1
    OK thanks - The Sencha Touch 1 downloads seem to have disappeared from the Sencha site so Touch Charts are in limbo - you can't use them with the available releases. – grumplet Mar 07 '12 at 22:55
1

Just announced:

http://notes.sencha.com/post/18941258668/sencha-touch-charts-2-beta-is-now-available-for

jeremygerrits
  • 157
  • 1
  • 4
  • I've edited the code above so it works with this release. Note that it's necessary to pull in the copy of sencha touch 2 that is bundled with the charts beta - otherwise you get exceptions. Also, while this code works, the example in the drawing guide fails to generate an image. – grumplet Mar 08 '12 at 15:17
0

Sencha Touch 2.1 Beta is now available which supports charts

Here is the link: http://dev.sencha.com/deploy/sencha-touch-2.1.0-b2.zip

Release Notes: http://dev.sencha.com/deploy/sencha-touch-2.1.0-b2/release-notes.html

Hope it helps you

Ram G Athreya
  • 4,892
  • 6
  • 25
  • 57