grumplet
grumplet

Reputation: 285

Are Sencha Touch Charts 1 and Sencha Touch 2 incompatible?

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?

Upvotes: 0

Views: 1442

Answers (3)

Ram G Athreya
Ram G Athreya

Reputation: 4952

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

Upvotes: 0

rdougan
rdougan

Reputation: 7225

No, they are not compatible.

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

Upvotes: 1

Related Questions