Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Chennai, Tamil Nadu
    Posts
    24
    Vote Rating
    0
    Jay Tanwar is on a distinguished road

      0  

    Default Unanswered: angleField for pie chart

    Unanswered: angleField for pie chart


    Hi,
    I am trying to create a pie chart using "angleField" config. But its showing error in console.
    Also when I am using the "field" config instead of "angleField", the chart is working properly.

    Though "field" config does the work, I need "angleField" for my code.

    The code:
    Code:
    
    Ext.define('senchaChart.view.PieChart',{
        extend: 'Ext.chart.Chart',
        alias: 'widget.piechart',
        requires: [
            'Ext.chart.series.Pie'
        ],
        
        config: {
            cls: 'chartpanel',
            theme: 'Energy',
            animate: true,
            store: 'ChartStore',
            
            series: [
                {
                    type: 'pie',
                    angleField: 'data',
                    highlight: false,
                    label: {
                        field: 'name'
                    }
                }
            ]
        }
    })
    The Error as shown in console:
    Code:
    Uncaught TypeError: Object [object Object] has no method 'getXField'
    Thanks in advance.

  2. #2
    Sencha User
    Join Date
    Apr 2010
    Posts
    48
    Vote Rating
    0
    whippersnapper is on a distinguished road

      0  

    Default


    Think you need to use 'field' instead of 'angleField' instead.

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Location
    Dublin
    Posts
    72
    Vote Rating
    11
    iplanit will become famous soon enough

      0  

    Default


    Quote Originally Posted by whippersnapper View Post
    Think you need to use 'field' instead of 'angleField' instead.
    When using ExtJS4 (Sencha Architect 2.1 not Sencha Touch) there is no field called "field" in the property list.

    Maybe it is generated in the code, but in the list you only have anglefield and lengthfield.



    properties_pie_series.png

  4. #4
    Touch Premium Member suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    445
    Answers
    21
    Vote Rating
    62
    suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough

      0  

    Default


    What version of touch?

    If it is the latest 2.1.0 B3 then a lot has changed.
    Look in the framework source PieChart.js - \touch\examples\kitchensink\app\view
    for direction on charting. API examples are not yet complete.

    It is field not angleField

  5. #5
    Sencha User
    Join Date
    Aug 2012
    Location
    Dublin
    Posts
    72
    Vote Rating
    11
    iplanit will become famous soon enough

      0  

    Default anglefield works using pie chart

    anglefield works using pie chart


    Sencha Architect uses anglefield in the last version.


    Code:
    series: [
                                            {
                                                type: 'pie',
                                                highlight: 'segment: {margin: 10}',
                                                label: {
                                                    field: 'name',
                                                    display: 'rotate',
                                                    contrast: true,
                                                    font: '12px Arial'
                                                },
                                                showInLegend: true,
                                                angleField: 'value'
                                            }
                                        ]
    I am using this code and renders the pie chart, in the examples there is no mention to angleField, and it is using field. However, I am not sure is the correct way since Sencha Architect generates code without using the field.

    In the label they use the "field", but for the series you have anglefield and lenghtfield.

    Regards
    Quote Originally Posted by suzuki1100nz View Post
    What version of touch?

    If it is the latest 2.1.0 B3 then a lot has changed.
    Look in the framework source PieChart.js - \touch\examples\kitchensink\app\view
    for direction on charting. API examples are not yet complete.

    It is field not angleField

  6. #6
    Touch Premium Member suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    445
    Answers
    21
    Vote Rating
    62
    suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough suzuki1100nz is a jewel in the rough

      0  

    Default


    What version of Touch are you using?