Results 1 to 5 of 5

Thread: Force to draw charts in VML

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default Answered: Force to draw charts in VML

    Anyone knows? We need to draw charts and other stuff in VML, not in SVG.

    Thank you.

  2. Sorry, I forgot to return the result of creating draw engine. Try to fix the code as below:
    Code:
        Ext.define('Override.draw.Surface', {
            override: 'Ext.draw.Surface',
            statics: {
                create: function(config, engine){
                    return this.callParent([config, engine || ['Svg']]);
                }
            }
        });

  3. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    117
      0  

    Default

    Try this:
    Code:
    Ext.define('Override.draw.Surface', {
        override: 'Ext.draw.Surface',
        statics: {
            create: function(config, engine){
                this.callParent([config, engine || ['Vml']]);
            }
        }
    });

  4. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Component.js

    setSurfaceSize: function (width, height) {

    this.surface.setSize(width, height);


  5. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    117
      0  

    Default

    Sorry, I forgot to return the result of creating draw engine. Try to fix the code as below:
    Code:
        Ext.define('Override.draw.Surface', {
            override: 'Ext.draw.Surface',
            statics: {
                create: function(config, engine){
                    return this.callParent([config, engine || ['Svg']]);
                }
            }
        });

  6. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default


    • [COLOR=red !important][/COLOR]When using this method:
    • [COLOR=red !important]Uncaught TypeError: Cannot call method 'setSize' of undefined Component.js:306[/COLOR]


    • [COLOR=red !important]Uncaught TypeError: Cannot read property 'length' of undefined Dock.js:228[/COLOR]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •