Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Sencha User
    Join Date
    Jul 2011
    Location
    Melbourne
    Posts
    11
    Vote Rating
    2
    tetchen9 is on a distinguished road

      0  

    Default


    I also get
    Object #<Object> has no method 'orient'
    when adding a simplest legend. How can I fix this?

  2. #12
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    lowlevelbass is on a distinguished road

      0  

    Default no method 'orient'

    no method 'orient'


    I'm experiencing the exact same issue described above. My application is structured within the MVC framework of Touch. If I load a pie chart without a legend, everything is fine. However, if I simply add visible:true to the legend code block I receive the error:

    Uncaught TypeError: Object #<Object> has no method 'orient'

    Have there been any patches or upgrades I have missed?

    Code:
    Application.views.LeadsByMediaType = Ext.extend(Ext.chart.Chart, {
        theme: 'Demo',
        shadow: true,
        store: 'LeadsByMediaTypeStore',
        animate: true,
        legend: {
            visible: true
        },
        interactions: ['rotate', 'reset'],
        series: [{
            type: 'pie',
            field: 'leads',
            donut: 25,
            showInLegend: true,
            highlightDuration: 500,
            highlight: {
                segment: {
                    margin: 20
                }
            },
            label: {
                field: 'type_name'
            }
        }]
    });
    Ext.reg('LeadsByMediaType', Application.views.LeadsByMediaType);


  3. #13
    Sencha User
    Join Date
    Mar 2011
    Posts
    4
    Vote Rating
    0
    eyecom is on a distinguished road

      0  

    Default Any progress here?

    Any progress here?


    I am also using touch-charts-1.0.0-commercial and I get the same error as OP. I have an MVC app and as soon as I add a view containing a chart to my Viewport.js, eg.

    Code:
    Ext.apply(this, {
      items: [
                    { xtype: 'App.views.Home', id: 'Home' },
                    { xtype: 'App.views.Settings', id: 'Settings' },
                    { xtype: 'App.views.Chart', id: 'Chart' },
      ]
    });
    the error occurs. Leaving the axes and series arrays empty will prevent the error, but then I don't have a chart of course...
    Is there still no fix for this problem? The getRefItems patch doesn't seem to address this particular problem.

  4. #14
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
    jj01 is on a distinguished road

      0  

    Default


    I'm having the same issue. This error is thrown when I call .down
    Uncaught TypeError: Object #<Object> has no method 'getItemId'

    Is there a work around/fix for this?

  5. #15
    Sencha User
    Join Date
    Mar 2012
    Posts
    2
    Vote Rating
    0
    jj01 is on a distinguished road

      0  

    Default


    I've managed to fix by changing all my .down('#id') calls to .getComponent('id') - hope this helps someone.