Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2013
    Posts
    13
    Vote Rating
    0
    jayasudha is on a distinguished road

      0  

    Default Unanswered: Sencha Pie Chart

    Unanswered: Sencha Pie Chart


    Hi,
    I am using webview in android for loading html page,sencha pie chart is not displaying in webview,
    it is showing error like "Uncaught TypeError: Cannot read property 'height' of undefined",
    can anyone help me to solve this problem.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,846
    Answers
    220
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    Can I see your code for the chart?

  3. #3
    Sencha User
    Join Date
    Jun 2013
    Posts
    13
    Vote Rating
    0
    jayasudha is on a distinguished road

      0  

    Default Sencha Pie Chart

    Sencha Pie Chart


    Hi,
    This is my code for chart

    //CHART START


    window.chartStore = new Ext.data.JsonStore({
    fields: ['name', 'Value'],

    //data:generateData()
    });


    var chartPanel = new Ext.chart.Panel({
    title: 'Policy Portfolio Chart',
    // margin: '-100 0 10 28',


    fullscreen: true,
    items: {
    cls: 'pie1',
    theme: 'Demo',
    store: chartStore,
    shadow: false,
    animate: true,
    insetPadding: 20,
    legend: {
    position: {
    portrait: 'bottom',
    landscape: 'bottom'
    }
    },
    interactions: [{
    type: 'reset',
    confirm: true
    },
    {
    type: 'rotate'
    },
    {
    type: 'iteminfo',
    gesture: 'taphold',
    listeners: {
    show: function(interaction, item, panel) {
    var storeItem = item.storeItem;
    panel.update(['<ul><li><b>Policy: </b>' + storeItem.get('name') + '</li>', '<li><b>Value: </b> ' + storeItem.get('Value') + '</li></ul>'].join(''));
    }
    }
    },
    {
    type: 'piegrouping',
    //snapWhileDragging: true,
    onSelectionChange: function(me, items) {
    if (items.length) {
    var sum = 0,
    i = items.length;
    while(i--) {
    sum += parseInt(items[i].storeItem.get('Value'));
    }
    chartPanel.descriptionPanel.setTitle('Policy Value $ ' + sum);
    chartPanel.headerPanel.setActiveItem(1, {
    type: 'slide',
    direction: 'left'
    });
    }
    else {
    chartPanel.headerPanel.setActiveItem(0, {
    type: 'slide',
    direction: 'right'
    });
    }
    }
    }],
    series: [{
    type: 'pie',
    field: 'Value',
    showInLegend: false,
    highlight: false,
    listeners: {
    'labelOverflow': function(label, item) {
    item.useCallout = true;
    }
    },
    // Example to return as soon as styling arrives for callouts
    callouts: {
    renderer: function(callout, storeItem) {
    callout.label.setAttributes({
    text: storeItem.get('name')
    }, true);
    },
    filter: function() {
    return false;
    },
    box: {
    //no config here.
    },
    lines: {
    'stroke-width': 2,
    offsetFromViz: 20
    },
    label: {
    font: 'italic 14px Arial'
    },
    styles: {
    font: '14px Arial'
    }
    },
    label: {
    field: 'name'
    }
    }]
    }
    });


    //CHART END

  4. #4
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,846
    Answers
    220
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    I could not find Ext.chart.Panel in Touch 2.2.1 what version are you using? I also notice some of the configs you were using on your series field and label were different as well.

  5. #5
    Sencha User
    Join Date
    Jun 2013
    Posts
    13
    Vote Rating
    0
    jayasudha is on a distinguished road

      0  

    Default Sencha Pie Chart

    Sencha Pie Chart


    Hi,
    I am using sencha Touch 1.0,pie chart is working fine in iPad,but it is not working in android tablet.

  6. #6
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,846
    Answers
    220
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    OK I am moving this thread to the Touch 1 forums. In the future please post your Touch 1 issues there.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar